GNUTLS_X509_CRL_GET_AUTHORITY_KEY_ID(3)
π gnutls_x509_crl_get_authority_key_id β the manual page, but make it make sense
okay bestie, welcome to the gnutls manual, section 3, and today's main character is gnutls_x509_crl_get_authority_key_id. she's a little function with a big name and one very specific job. let's get into it π
β¨ NAME β¨
gnutls_x509_crl_get_authority_key_id β an API function, fr fr. that's it, that's the name, it does exactly what it says on the tin π
πΈ SYNOPSIS πΈ
#include <gnutls/x509.h>
int gnutls_x509_crl_get_authority_key_id(gnutls_x509_crl_t crl, void *
id, size_t * id_size, unsigned int * critical);
like yes, it's a whole mouthful of a signature, but she's worth it π¦
π ARGUMENTS π
gnutls_x509_crl_t crlβ should contain agnutls_x509_crl_ttype. that's the CRL you're poking at, bestie πvoid * idβ the place where the identifier will be copied. this is where the good stuff lands β¨size_t * id_sizeβ holds the size of the result field. so she knows how much room she's got to work with π«Άunsigned int * criticalβ will be non-zero if the extension is marked as critical. and ngl? she may be null π (yes, nullable, you're welcome)
π DESCRIPTION π
so, what does she actually do. this function will return the CRL authority's key identifier π
and where does that come from? the X.509 Authority Key identifier extension field, aka 2.5.29.35 β write that number down, it's giving very specific π
β οΈ okay important caveat time, no cap: this function only returns thekeyIdentifierfield of the extension, and it'll hand youGNUTLS_E_X509_UNSUPPORTED_EXTENSIONif the extension contains the name and serial number of the certificate instead. in that case,gnutls_x509_crl_get_authority_key_gn_serial()may be used. so if you hit that error, don't panic β just switch functions, she's got a sister for that ππ
π RETURNS π
on success, GNUTLS_E_SUCCESS (0) is returned π otherwise a negative error code in case of an error. so basically: zero = slay, negative = not slay π
β SINCE β
2.8.0 β she's been around, an icon, a veteran, a legend π«Ά
π REPORTING BUGS π
found a bug? don't suffer in silence, tell the gnutls girlies:
- 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. that's the license, and it's honestly so generous of them, we love to see it π
π₯ 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, go forth and read your CRL authority key ids responsibly π¦β¨
this has been the gnutls manual, section 3, version 3.8.13, brought to you with love, glitter, and zero skipped details π stay iconic, bestie π
π¦ 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