gnutls_x509_crl_list_import(3)
π gnutls_x509_crl_list_import(3) π
okay bestie, welcome to the gnutls manual, section 3. today's main character is gnutls_x509_crl_list_import β an API function, and she is serving.
β¨ NAME β¨
gnutls_x509_crl_list_import β API function. that's it, that's the name, she's iconic and she knows it π
π¦ SYNOPSIS π¦
#include <gnutls/x509.h>
int gnutls_x509_crl_list_import(gnutls_x509_crl_t * crls, unsigned int *
crl_max, const gnutls_datum_t * data, gnutls_x509_crt_fmt_t format,
unsigned int flags);
like, copy that exactly, don't freestyle it π
πΈ ARGUMENTS πΈ
gnutls_x509_crl_t * crlsβ this is where the parsed CRLs get copied to. and listen, she has rules: this must not be initialized. don't touch it first, don't pre-init it, just hand it over raw. periodt.unsigned int * crl_maxβ okay so going in, this has to already hold the maximum number of crls. and then? the function updates it with the number of crls actually available. it's giving glow-up, it's giving before and after β¨const gnutls_datum_t * dataβ the CRL data. the goods. the material πgnutls_x509_crt_fmt_t formatβ literally just pick one: DER or PEM. that's the whole vibe check.unsigned int flagsβ must be(0)or an OR'd sequence ofgnutls_certificate_import_flags. no random flags bestie, we don't do that here π«Ά
π DESCRIPTION π
so what does she actually do? this function converts the given CRL list into the native gnutls_x509_crl_t format. the output gets stored in crls, and β plot twist β they will be automatically initialized. no manual setup needed, she handles it, main character energy fr fr π
lowkey important: if the Certificate is PEM encoded, it should have a header of "X509 CRL". don't skip the header, bestie, she will not recognize it otherwise π
β RETURNS β
she returns the number of certificates read β or a negative error value if things went sideways π
π SINCE π
3.0 β she's been here since 3.0, a true veteran of the game π
π₯ REPORTING BUGS π₯
found a bug? not me being the messenger butβ
- 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.
(translation: go off, share it, just keep the receipts π§)
π 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, you ate that π β¨
this was the gnutls manual, section 3, page for gnutls_x509_crl_list_import, brought to you by gnutls version 3.8.13 β mwah, take care of her, she's fragile but powerful π¦πΈ
π¦ 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