GNUTLS_CERTIFICATE_SET_X509_CRL_FILE(3)

πŸ’– gnutls_certificate_set_x509_crl_file β€” from the gnutls manual, bestie πŸ’–

okay so this is a page from the gnutls manual (you know, the TLS library that just works), and it's all about the iconic little function gnutls_certificate_set_x509_crl_file. buckle up, it's giving certificate energy ✨


✨ NAME ✨

gnutls_certificate_set_x509_crl_file β€” API function πŸ’…


🌸 SYNOPSIS 🌸

#include <gnutls/gnutls.h>

int
gnutls_certificate_set_x509_crl_file(gnutls_certificate_credentials_t
res, const char * crlfile, gnutls_x509_crt_fmt_t type);

πŸŽ€ ARGUMENTS πŸŽ€

  • gnutls_certificate_credentials_t res β€” this is a gnutls_certificate_credentials_t type, no cap. it's the credentials thing you're loading stuff into 🫢
  • const char * crlfile β€” a file that's holding the list of verified CRLs (that's a DER or PEM list, iykyk) πŸ“„
  • gnutls_x509_crt_fmt_t type β€” is it PEM or is it DER? that's the whole question, bestie 🌈

πŸ¦‹ DESCRIPTION πŸ¦‹

so what this function does is it adds the trusted CRLs so you can verify client or server certificates. very main character behaviour honestly.

in the case of a client, you don't actually have to call this if the certificates aren't being verified using gnutls_certificate_verify_peers2(). so like, chill, it's optional in that situation πŸ’œ

also, you can call this function multiple times. she's flexible. she doesn't mind. πŸ”₯


⭐ RETURNS ⭐

you get back the number of CRLs processed, or a negative error code if something went wrong. that's it, that's the vibe check 😭


πŸ™ˆ REPORTING BUGS πŸ™ˆ

found a bug? not cute. tell the people:


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!! this was gnutls version 3.8.13 β€” go forth and verify those certificates, you absolute icon πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from