gnutls_x509_crt_check_revocation(3)

πŸ’– gnutls_x509_crt_check_revocation πŸ’–

okay bestie, welcome to the gnutls manual, section 3 (that's library calls, iykyk). this one is gnutls_x509_crt_check_revocation and it's literally the "is this cert cancelled or not" detector. let's get into it πŸ¦‹


✨ SYNOPSIS ✨

#include <gnutls/x509.h>

int gnutls_x509_crt_check_revocation(gnutls_x509_crt_t cert, const
gnutls_x509_crl_t * crl_list, unsigned crl_list_length);

there she is. three args, one int coming back at you. slay πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • gnutls_x509_crt_t cert β€” bestie this should hold a gnutls_x509_crt_t type. that's the cert you're side-eyeing. πŸ‘€
  • const gnutls_x509_crl_t * crl_list β€” this one should hold a list of gnutls_x509_crl_t types. yes, a whole roster of CRLs. the group chat, if you will. 🫢
  • unsigned crl_list_length β€” the length of the crl_list. how many CRLs are in that roster, no more no less. count them fr fr. πŸ”’

🌸 DESCRIPTION 🌸

so the way this works is: this function checks whether the certificate you handed it is revoked. that's it. that's the whole vibe check.

⚠️ important, don't skip: it is assumed that the CRLs have been verified before you call this. this function does not verify them for you. do your homework first bestie, no cap. 😭

⭐ RETURNS ⭐

  • 0 β€” the cert is NOT revoked. she's fine. she's valid. iconic. ✨
  • 1 β€” the cert IS revoked. πŸš«πŸ’€
  • a negative error code β€” something went wrong on error. not me getting an error 😭

πŸ™ˆ REPORTING BUGS πŸ™ˆ

found a bug? tell the people. report bugs 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. periodt. πŸ’–


🌈 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/


and that's the whole page, bestie!! go verify those CRLs and stay unrevoked πŸ§šπŸ’œ

kisses, this was gnutls 3.8.13, gnutls_x509_crt_check_revocation(3) β€” mwah πŸ’…πŸŽ€

πŸ“¦ where this page comes from