gnutls_certificate_set_x509_crl(3)
π gnutls_certificate_set_x509_crl β the "here's my trust issues, in list form" function π
okay bestie so this is a page straight out of the gnutls manual (you know, the TLS library that's lowkey carrying half the internet's handshakes) and today's main character is gnutls_certificate_set_x509_crl. it's an API function. let's get into it π«Ά
β¨ NAME β¨
gnutls_certificate_set_x509_crl β API function
like. that's the whole name. she's not hiding anything. iconic behavior honestly π
πΈ SYNOPSIS πΈ
#include <gnutls/gnutls.h>
int gnutls_certificate_set_x509_crl(gnutls_certificate_credentials_t
res, gnutls_x509_crl_t * crl_list, int crl_list_size);
yes she takes three things and gives you back an int. the way that this signature is just sitting there being correct... obsessed π
π ARGUMENTS π
gnutls_certificate_credentials_t resβ bestie this is agnutls_certificate_credentials_ttype. that's it. that's the vibe. it's your credentials object and she's the one getting the CRLs handed to her πgnutls_x509_crl_t * crl_listβ this is a list of trusted CRLs. and listen, important part: they should have been verified before. like, do not just roll up with unverified CRLs and expect the universe to protect you, okay? πint crl_list_sizeβ holds the size of thecrl_list. the count. the number. the "how many of these am I actually looking at" value π¦
π DESCRIPTION π
so what does she do? this function adds the trusted CRLs, and it does it specifically so client or server certificates can be verified. no cap, that's the whole job and she's very good at it β¨
now here's the tea for the client side specifically: in case of a client, this is not required to be called if the certificates are not being verified using gnutls_certificate_verify_peers2(). so if you're not verifying, you can just... not. free pass. we love an optional call πΈ
and the best part?? this function may be called multiple times. call her, call her again, she does not care. she is unbothered, moisturized, in her lane π
π RETURNS π
number of CRLs processed. or, if things went sideways, a negative error code on error. so like. check the sign bestie. negative = we're not okay π
β SINCE β
2.4.0 β she's been here since 2.4.0, a true veteran, a legend, we stan a long-running API π«Ά
π REPORTING BUGS π
found a bug? do NOT suffer in silence, tell the people:
- Report bugs to
<bugs@gnutls.org>. - Home page:
https://www.gnutls.org
they literally want to hear from you π
π 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. the license said what it said and she ate π
π¦ 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/
fr fr, that's the whole page. no details skipped, no flags dropped, we kept it 100. π
and that's a wrap bestie!! this was the gnutls manual, version 3.8.13, and the page was gnutls_certificate_set_x509_crl(3). go verify some certificates, stay hydrated, and remember: verify your CRLs before you hand them over. 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