GNUTLS_CERTIFICATE_EXPIRATION_TIME_PEERS(3)

✨ NAME ✨

gnutls_certificate_expiration_time_peers β€” it's an API function, bestie πŸ’… (from the gnutls manual, if you were wondering who claims her)


🌸 SYNOPSIS 🌸

#include <gnutls/gnutls.h>

time_t gnutls_certificate_expiration_time_peers(gnutls_session_t
session);

πŸŽ€ ARGUMENTS πŸŽ€

  • gnutls_session_t session β€” okay so this is a gnutls session. That's it. That's the whole argument. She's low maintenance. πŸ’–

πŸ¦‹ DESCRIPTION πŸ¦‹

So like… this function will return the peer's certificate expiration time. That's the vibe. That's the whole plot. Your bestie's cert has a little clock ticking on it and this is how you peek at it. ⏰✨


🌈 RETURNS 🌈

It returns (time_t)-1 on error. Not a great sign, but iconic of it to be honest. 😭


πŸ’€ DEPRECATED πŸ’€

Not me having to tell you this… bestie, she's deprecated. gnutls_certificate_verify_peers2() now verifies expiration times. So like, go talk to her instead. 🫢


πŸ™ˆ REPORTING BUGS πŸ™ˆ

Found a bug? Fr fr, report it to <bugs@gnutls.org>.

Home page: https://www.gnutls.org


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. (Slay, and also legally binding, no cap. πŸ’œ)


⭐ SEE ALSO ⭐

The full documentation for gnutls is maintained as a Texinfo manual. If the /usr/share/doc/gnutls/ directory does not contain the HTML form, visit

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

okay that's the whole page bestie, mwah πŸ’– β€” this was gnutls version 3.8.13, and yeah she's the gnutls_certificate_expiration_time_peers(3) girly. periodt. πŸ’…πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from