GNUTLS_X509_CRL_GET_EXTENSION_OID(3)
π gnutls_x509_crl_get_extension_oid(3) π
okay bestie, welcome to the gnutls manual, section 3 β the one where we read extension OIDs out of a CRL. yes it's niche. yes it's iconic. let's go π
β¨ NAME β¨
gnutls_x509_crl_get_extension_oid β it's an API function, and it's about to be your new fave, no cap π¦
πΈ SYNOPSIS πΈ
#include <gnutls/x509.h>
int gnutls_x509_crl_get_extension_oid(gnutls_x509_crl_t crl, unsigned
indx, void * oid, size_t * sizeof_oid);
like, look at that signature. it's giving competence. π
π ARGUMENTS π
gnutls_x509_crl_t crlβ this is the one that should contain agnutls_x509_crl_ttype. it's the CRL we're snooping through, periodt.unsigned indxβ tells the function which extension OID you want to get. use(0)to get the very first one. the way that indexing starts at zeroβ¦ math ate, fr fr. π’void * oidβ a pointer where the OID gets stored. and bestie, it may be null β yes, really, that's allowed. πsize_t * sizeof_oidβ initially holds the size ofoid. it's the little size-keeper of the operation. π«Ά
π DESCRIPTION π
so what does this actually do? this function will return the requested extension OID in the CRL. that's it, that's the job. the extension OID gets stored as a string in the provided buffer. clean, simple, lowkey elegant. β¨
π₯ RETURNS π₯
on success, GNUTLS_E_SUCCESS (0) is returned β slay, we love a zero. otherwise you get a negative error code in case of an error. π
and if you've reached the last extension available, you get GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE back. that's not a vibe failure, that's just the end of the list, bestie. π¦
β SINCE β
2.8.0 β she's been here since 2.8.0, a true veteran. π
π REPORTING BUGS π
found a bug? don't be shy, tell the gnutls girlies:
- Report bugs to <bugs@gnutls.org>.
- Home page: https://www.gnutls.org
ngl, if you found something weird, report it. the maintainers 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.
that's the legal bit and we do not touch the legal bit. copy it, distribute it, just keep the notice. 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/
like, if the local docs aren't serving, the website always eats. πΈ
and that's the whole page bestie π this was gnutls version 3.8.13, and yeah β it's the gnutls_x509_crl_get_extension_oid(3) manual, the one and only. go read some CRL extensions, you're doing amazing, 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