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 agnutls_x509_crt_ttype. that's the cert you're side-eyeing. πconst gnutls_x509_crl_t * crl_listβ this one should hold a list ofgnutls_x509_crl_ttypes. yes, a whole roster of CRLs. the group chat, if you will. π«Άunsigned crl_list_lengthβ the length of thecrl_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 π
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
- alpine 3.22: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- alpine 3.23: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- alpine 3.24: gnutls-doc 3.8.13-r0 Β· LGPL-2.1-or-later
- arch rolling: gnutls 3.8.13-3 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 43: gnutls-devel 3.8.13-1.fc43 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 43: gnutls-devel 3.8.13-1.fc43 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 44: gnutls-devel 3.8.13-1.fc44 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- fedora 44: gnutls-devel 3.8.13-1.fc44 Β· GPL-3.0-or-later AND LGPL-2.1-or-later
- ubuntu stonking: gnutls-doc 3.8.13-1ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms