GNUTLS_X509_CRL_GET_EXTENSION_INFO(3)
π gnutls_x509_crl_get_extension_info π
okay bestie, so this is a page from the gnutls manual β like, the gnutls_x509_crl..._extension_info(3) one β and it's lowkey one of the cutest little lookup functions in the whole x509 toolkit. it's an API function. that's the whole name section. slay. π
β¨ SYNOPSIS β¨
#include <gnutls/x509.h>
int gnutls_x509_crl_get_extension_info(gnutls_x509_crl_t crl, unsigned
indx, void * oid, size_t * sizeof_oid, unsigned int * critical);
yes that's the whole vibe. one header, one function, five args. π
π¦ ARGUMENTS π¦
gnutls_x509_crl_t crlβ this is the one that should contain agnutls_x509_crl_ttype. like, it has to. that's its whole job. πunsigned indxβ tells the function which extension OID you wanna send. use(0)to grab the very first one, bestie. zero-indexed, as the universe intended. β¨void * oidβ a pointer where the OID gets stored. the lil delivery address. πsize_t * sizeof_oidβ this one's a two-faced icon: initially it holds the maximum size ofoid, and on return it holds the actual size ofoid. character development fr. πΈunsigned int * criticalβ output variable that carries the critical flag. may beNULL, no pressure. π«Ά
π DESCRIPTION π
so what does this diva do? it returns the requested extension OID in the CRL, plus the critical flag for it. the extension OID gets stored as a string in the buffer you hand it. β¨
wanna get the actual data behind that OID? that's not this function's business. use gnutls_x509_crl_get_extension_data() for that. iykyk. π
and now the important part, so listen up: if the buffer you provided is not long enough to hold the output, then * sizeof_oid gets updated and GNUTLS_E_SHORT_MEMORY_BUFFER will be returned. so it's not being rude, it's telling you exactly how much room it needs. iconic behavior honestly. π
π RETURNS π
on success, GNUTLS_E_SUCCESS (0) is returned. π otherwise you get a negative error code in case of an error.
and if you've reached the last extension available, GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE will be returned. that's it, that's the end of the list, no more extensions, go home. π
β SINCE β
2.8.0 β an elder. been here since way back. respect. π§
π REPORTING BUGS π
found a bug? spill the tea 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. so like, go off, but keep the receipts. 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/
and that's the whole page, bestie!! this was gnutls 3.8.13, the gnutls_x509_crl..._extension_info(3) page, brought to you by the Free Software Foundation and everyone else who touched it. go read your CRLs, stay hydrated, mwah πβ¨π¦
π¦ 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