gnutls_certifi...et_x509_crl_mem(3)
π gnutls_certifi...et_x509_crl_mem β bestie's guide to loading CRLs from memory β¨
okay so this is a page from the gnutls manual, section 3 β yes the name is literally abbreviated with ... in the middle, that's just how these pages roll, don't @ me π
πΈ NAME πΈ
gnutls_certificate_set_x509_crl_mem β it's an API function, and it's the one that hands gnutls your trusted CRLs straight from memory. no filesystem drama, no cap. π
β¨ SYNOPSIS β¨
#include <gnutls/gnutls.h>
int gnutls_certificate_set_x509_crl_mem(gnutls_certificate_credentials_t
res, const gnutls_datum_t * CRL, gnutls_x509_crt_fmt_t type);
like, that's the whole vibe right there. you pull in the header, you call the thing, it returns an int. slay. π¦
π«Ά ARGUMENTS π«Ά
gnutls_certificate_credentials_t resβ bestie this is agnutls_certificate_credentials_ttype. it's the credentials object you're loading the CRLs into. main character energy, honestly. πconst gnutls_datum_t * CRLβ this is a list of trusted CRLs. and listen, listen: they should have been verified before. like, gnutls is trusting you on this one, so please don't hand it random unverified bytes. πgnutls_x509_crt_fmt_t typeβ it's eitherDERorPEM. pick one. that's the whole menu. β
π DESCRIPTION π
so what does this actually do? it adds the trusted CRLs so gnutls can verify client or server certificates. that's the job. that's the assignment. π―
and here's a lil nuance for you, iykyk: if you're on the client side, you lowkey don't have to call this at all if the certificates aren't being verified with gnutls_certificate_verify_peers2(). no verification happening, no CRLs needed. makes sense, right? π
also β and this is the good part β you can call this function multiple times. it just keeps adding. stack 'em up, bestie. π₯
π RETURNS π
it gives you back the number of CRLs processed β or, if things went sideways, a negative error code. so like, negative number = not the vibe, check your error handling. π
π REPORTING BUGS π
found a bug? don't suffer in silence, tell the gnutls people:
- bugs go to <bugs@gnutls.org>
- home page is over at <https://www.gnutls.org>
they want to hear from you fr fr. π
π COPYRIGHT π
Copyright Β© 2001-2023 Free Software Foundation, Inc., and others.
and the legal tea: copying and distribution of this file, with or without modification, are permitted in any medium without royalty β as long as you keep the copyright notice and this notice intact. so share it, remix it, just keep the receipts. π§Ύβ¨
π SEE ALSO π
the full documentation for gnutls lives as a Texinfo manual. so if /usr/share/doc/gnutls/ does not have the HTML version sitting in it, go here instead:
<https://www.gnutls.org/manual/>
and that's the page, bestie!! every flag, every type, every warning β nothing skipped, nothing invented. you're officially fluent in CRL memory loading. periodt. π
signing off from the gnutls manual, version 3.8.13 β mwah, go verify some certificates responsibly π«ΆπΈ
π¦ 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