gnutls_x509_crl_export2(3)

πŸ’– gnutls_x509_crl_export2 πŸ’–

ok so bestie, you've got a Certificate Revocation List just sitting there in memory and you need it out?? like, as actual bytes you can save or send?? that's literally this function from the gnutls manual, and it's giving "glow up for your CRL." ✨


✨ SYNOPSIS ✨

#include <gnutls/x509.h>

int gnutls_x509_crl_export2(gnutls_x509_crl_t crl, gnutls_x509_crt_fmt_t
format, gnutls_datum_t * out);

πŸŽ€ ARGUMENTS πŸŽ€

  • gnutls_x509_crl_t crl β€” holds the revocation list. that's your girl, the CRL you're about to yeet out into the world πŸ’…
  • gnutls_x509_crt_fmt_t format β€” the format of the output params, bestie. it's one of PEM or DER. pick one, no pressure πŸ¦‹
  • gnutls_datum_t * out β€” will contain a private key PEM or DER encoded. (yes, that's what the docs say, we report it faithfully, no notes 😭)

🌸 DESCRIPTION 🌸

this function will export the revocation list to DER or PEM format. it's the whole job. it does the thing. πŸ”₯

the output buffer is allocated using gnutls_malloc(). so like, heads up, it's their malloc, not yours β€” the memory is theirs to give and yours to eventually free. 🫢

if the structure is PEM encoded, it will have a header of "BEGIN X509 CRL". iconic header, no cap. πŸ‘‘


⭐ RETURNS ⭐

on success, GNUTLS_E_SUCCESS (0) is returned. otherwise it hands you a negative error value β€” so like, if it's not zero, something went sideways, and that's your cue to go read the error, not to spiral. πŸ’€

since 3.1.3 β€” baby this function has been around, it's practically a legacy icon 🌈

πŸ’œ REPORTING BUGS πŸ’œ

found a bug?? spill it, respectfully, to <bugs@gnutls.org>.

home page, if you wanna vibe: https://www.gnutls.org


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. so like, keep the receipts, bestie. that's the whole deal and it slays. πŸŽ€


πŸ¦‹ 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 page!! go forth and export your revocation lists, main character. πŸ’– this was gnutls version 3.8.13 energy, brought to you from the gnutls_x509_crl_export2(3) manual page, and yes we are obsessed. periodt. πŸ‘‘βœ¨

πŸ“¦ where this page comes from