GNUTLS_X509_CRL_GET_EXTENSION_DATA(3)
β¨ NAME β¨
gnutls_x509_crl_get_extension_data β bestie, this is an API function π (and yes, we're in the gnutls manual, welcome to the group chat π«Ά)
πΈ SYNOPSIS πΈ
#include <gnutls/x509.h>
int gnutls_x509_crl_get_extension_data(gnutls_x509_crl_t crl, unsigned
indx, void * data, size_t * sizeof_data);
π ARGUMENTS π
gnutls_x509_crl_t crlβ okay so this one should contain agnutls_x509_crl_ttype, that's literally its whole job πunsigned indxβ tells it which extension OID to send. Start with(0)to get the first one, like the very first slide of the carousel β¨void * dataβ a pointer to a structure that'll hold the data (may be null, no pressure, she's flexible π)size_t * sizeof_dataβ initially holds the size ofoidπ¦
π DESCRIPTION π
So this function will return the requested extension data in the CRL. The extension data gets stored as a string in the buffer you handed over. Iconic behaviour, honestly π
Use gnutls_x509_crl_get_extension_info() to extract the OID and the critical flag. And listen β use gnutls_x509_crl_get_extension_info() instead if you want to get data indexed by the extension OID rather than by sequence. Different vibe, different function, iykyk π₯
β RETURNS β
On success, GNUTLS_E_SUCCESS (0) is returned β slay. Otherwise you get a negative error code because something went wrong π. And if you've reached the last extension available, GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE will be returned. That's not a bug bestie, that's just the end of the line π«
π¦ SINCE π¦
2.8.0 β she's been around a while, a true veteran π
π REPORTING BUGS π
Found a bug? Report it to <bugs@gnutls.org> β they wanna hear it fr fr.
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. (Yes, you can share it, just don't be weird about the notice π)
π« 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/
okay that's the whole page, you ate that π«Ά this was the gnutls man page, version 3.8.13, page gnutls_x509_crl_get_extension_data(3) β go forth and read your CRL extensions, main character π
β¨
π¦ 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