gnutls_x509_ex...uthority_key_id(3)
β¨ gnutls_x509_ex...uthority_key_id β¨
okay bestie, welcome to the gnutls manual, section 3, and today we're decoding an Authority Key Identifier extension like the absolute main character you are π
this page lives in the gnutls manual and it's short, sweet, and lowkey iconic.
πΈ NAME πΈ
gnutls_x509_ext_import_authority_key_id β it's an API function, bestie. that's the whole name. that's the job. π
π¦ SYNOPSIS π¦
#include <gnutls/x509-ext.h>
int gnutls_x509_ext_import_authority_key_id(const gnutls_datum_t * ext,
gnutls_x509_aki_t aki, unsigned int flags);
like look at that signature. it's giving three arguments and a dream β¨
π ARGUMENTS π
const gnutls_datum_t * extβ a DER encoded extension. yes, DER. raw bytes energy. keep it exactly as-is, no vibes-based editing πgnutls_x509_aki_t akiβ an initialized authority key identifier type. key word: initialized. do not come to this function with an uninitializedaki, that's not the move bestie πunsigned int flagsβ should be zero. that's it. zero. nothing else. don't be quirky with it π
π DESCRIPTION π
so what does this actually do? this function will return the subject key ID stored in the provided AuthorityKeyIdentifier extension. that's literally the whole thing. the way that it just... hands you the subject key ID out of the extension you passed in π«Ά
β RETURNS β
- on success,
GNUTLS_E_SUCCESS(0) is returned β slay, zero, we love a zero π GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLEif the extension is not present β like, not there, not happening, go home π«- otherwise, a negative error value β and ngl you should actually check for that one, bestie
π SINCE π
3.3.0 β so this has been around for a minute. certified classic. periodt π
π REPORTING BUGS π
found a bug? not to be dramatic but report it, fr fr:
- 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 legal tea and we're keeping it exactly as written, no cap π§)
π 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/
ok that's the whole page, bestie. no options were skipped, no return values got left on read, no details ghosted. every single one made it through the vibe check π
later babes βοΈ this was gnutls manual, version 3.8.13, page gnutls_x509_ex...uthority_key_id(3) β go read the rest of the manual, it's highkey worth it πΈβ¨
π¦ 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