gnutls_x509_cr...extension_data2(3)
β¨ NAME β¨
gnutls_x509_crl_get_extension_data2 β okay bestie, this is an API function π it lives in the gnutls manual and it's your girl for pulling extension data out of a CRL. iykyk π
πΈ SYNOPSIS πΈ
#include <gnutls/x509.h>
int gnutls_x509_crl_get_extension_data2(gnutls_x509_crl_t crl, unsigned
indx, gnutls_datum_t * data);
like. look at her. she's gorgeous. π«Ά
π ARGUMENTS π
gnutls_x509_crl_t crlβ this one should contain agnutls_x509_crl_ttype, no cap. it's the whole CRL you're digging around in πunsigned indxβ Specifies which extension OID to read. Use(0)to get the first one. yes literally zero. start at zero. not one. zero πgnutls_datum_t * dataβ will contain the extension DER-encoded data. so this is where the good stuff lands β¨
π DESCRIPTION π
This function will return the requested by the index extension data in the certificate revocation list. certificate revocation list, bestie, that's the CRL, we're in CRL territory π
The extension data will be allocated using gnutls_malloc(). so like, she allocates for you, that's the vibe π
Use gnutls_x509_crt_get_extension_info() to extract the OID. yes the CRT one. not the CRL one. that's not a typo, that's just what the docs say, so write it down π
β RETURNS β
On success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative error code is returned. π
If you have reached the last extension available GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE will be returned. so when you're at the end, she tells you. that's your sign to stop looping π
π REPORTING BUGS π
Report bugs to <bugs@gnutls.org>. Home page: https://www.gnutls.org
yes actually email them, they want to know π«Ά
π 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. periodt. π
π 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/
go look, it's giving lore π
and that's the whole page, bestie π this one's from the gnutls manual, version 3.8.13, and the page itself is gnutls_x509_cr...extension_data2(3) β mwah, slay, go read your CRL extensions πβ¨π¦πΈ
π¦ 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