gnutls_x509_cr...expiration_time(3)

✨ gnutls_x509_crt_get_expiration_time ✨

okay bestie, welcome to the gnutls manual page for gnutls_x509_crt_get_expiration_time πŸ’– this is the tea on one single API function, and honestly? it's a lil bop. sit down, hydrate, let's go 🫢


🌸 NAME 🌸

gnutls_x509_crt_get_expiration_time β€” it's an API function, bestie. that's literally what it is. πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

the way you get this party started:

#include <gnutls/x509.h>

time_t gnutls_x509_crt_get_expiration_time(gnutls_x509_crt_t cert);

like. that's it. that's the whole vibe. ✨


πŸ¦‹ ARGUMENTS πŸ¦‹

  • gnutls_x509_crt_t cert β€” okay so this one should contain a gnutls_x509_crt_t type, no cap. it's the cert we're interrogating. be nice to it. 🌈

πŸ’œ DESCRIPTION πŸ’œ

bestie. this function is gonna hand you the time this certificate was or will be expired. that's it. that's the whole job. past tense or future tense, doesn't matter, she reports it either way. lowkey iconic of her honestly πŸ‘‘


⭐ RETURNS ⭐

  • the expiration time ✨ β€” slay, everything worked
  • or (time_t)-1 on error πŸ’€ β€” not slay, something went wrong
no but fr fr, always vibe check that return value. (time_t)-1 is the "it's giving disaster" signal and you do not want to mistake it for an actual timestamp. πŸ™ˆ

πŸ› REPORTING BUGS πŸ›

found a bug? don't just scream into the group chat, bestie, actually report it:

they wanna hear from you, fr. 🫢


Copyright Β© 2001-2023 Free Software Foundation, Inc., and others. πŸ’–

copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. periodt. no notes. πŸŽ€


🌈 SEE ALSO 🌈

the full documentation for gnutls is maintained as a Texinfo manual. and if the /usr/share/doc/gnutls/ directory does not contain the HTML form β€” rude, honestly β€” then visit:

https://www.gnutls.org/manual/

iykyk πŸ“šβœ¨


that's the whole page, bestie! every flag, every return value, every copyright line β€” all of it, none of it skipped, we ate and left zero crumbs πŸ’…πŸ“

gnutls 3.8.13 β€” gnutls_x509_cr...expiration_time(3) β€” signing off, mwah! πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from