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 ofDERorPEM. 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:
- Report bugs to
<bugs@gnutls.org>. - Home page:
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. 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
- 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