gnutls_x509_crl_import(3)

πŸ’– gnutls_x509_crl_import πŸ’–

okay bestie, so this is one of those pages from the gnutls manual (the 3.8.13 era, we love her) and it's literally just one little function that turns a blob of certificate-revocation-list bytes into something gnutls can actually use. no cap. let's get into it πŸ¦‹


✨ NAME ✨

gnutls_x509_crl_import β€” and yes it's an API function, that's the whole vibe


🌸 SYNOPSIS 🌸

#include <gnutls/x509.h>

int gnutls_x509_crl_import(gnutls_x509_crl_t crl, const gnutls_datum_t *
data, gnutls_x509_crt_fmt_t format);

like, include the header first or nothing works, periodt πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • gnutls_x509_crl_t crl β€” the place where the parsed CRL gets stored. she's the container, she's the moment.
  • const gnutls_datum_t * data β€” the actual CRL, encoded as DER or PEM. this is the raw material, the main character.
  • gnutls_x509_crt_fmt_t format β€” one of DER or PEM. pick one, you can't be both πŸ™ˆ

🫢 DESCRIPTION 🫢

So what she does: this function converts the given DER- or PEM-encoded CRL into the native gnutls_x509_crl_t format. the output lands in 'crl'. iconic behavior honestly.

And the little detail you do NOT want to miss β€” if the CRL is PEM encoded, it needs to have a header of "X509 CRL". that's not optional, that's the law πŸ’€


⭐ RETURNS ⭐

On success, GNUTLS_E_SUCCESS (0) is returned. otherwise you get a negative error value, which is giving "something went wrong bestie" energy 😭


🌈 REPORTING BUGS 🌈

Found a bug? don't just sit there, 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. slay, genuinely.


🧚 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 fr fr πŸ’œ huge thanks to the gnutls crew β€” this came from the gnutls manual, version 3.8.13, page gnutls_x509_crl_import(3). go import some CRLs, bestie, you got this πŸ“βœ¨

πŸ“¦ where this page comes from