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 ofPEMorDER. 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 π§
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
- 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