gnutls_x509_aki_get_cert_issuer(3)
β¨ gnutls_x509_aki_get_cert_issuer β the manual page, but make it make sense π
okay bestie, so this whole thing lives in the gnutls manual, and today we're pulling apart gnutls_x509_aki_get_cert_issuer(3). yes it's a mouthful. yes it's worth it. let's go π¦
πΈ NAME πΈ
gnutls_x509_aki_get_cert_issuer β lowkey just an API function, but like, a useful one β¨
π SYNOPSIS π
#include <gnutls/x509-ext.h>
int gnutls_x509_aki_get_cert_issuer(gnutls_x509_aki_t aki, unsigned int
seq, unsigned int * san_type, gnutls_datum_t * san, gnutls_datum_t *
othername_oid, gnutls_datum_t * serial);
not me dropping the exact signature so you can copy-paste it fr fr π
π ARGUMENTS π
gnutls_x509_aki_t akiβ the authority key ID. that's the thing we're digging through π΅οΈββοΈunsigned int seqβ the index of the name you wanna grab. like, which one in the list, bestieunsigned int * san_typeβ this is where the type of the name gets written (it's one of thegnutls_subject_alt_names_ttypes) πgnutls_datum_t * sanβ the alternative name data itselfgnutls_datum_t * othername_oidβ the object identifier, but only ifsan_typeisGNUTLS_SAN_OTHERNAME. otherwise it's giving nothing πgnutls_datum_t * serialβ theauthorityCertSerialNumbernumber. iconic, we love a serial π
π DESCRIPTION π
so what this function does is: it hands you back one specific authorityCertIssuer name exactly as it's stored in the aki type, plus the authorityCertSerialNumber. two for one, we ate π₯
important though β all the returned values should be treated as constant. do not go messing with them, they are not yours to edit, periodt. and if you don't need some of them? you can just set those pointers to NULL and they'll be skipped, no drama π
β RETURNS β
- on success you get
GNUTLS_E_SUCCESS(which is literally0) π«Ά - if your index is out of bounds you get
GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLEβ like, bestie, that name doesn't exist - anything else? a negative error value. and negative means bad vibes, obviously π
π§ SINCE π§
3.3.0 β she's been around a minute, a true veteran π
π REPORTING BUGS π
found a bug? don't suffer in silence, tell the devs:
- 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. so like, go off, just keep the receipts π§Ύβ¨
π 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, go visit:
https://www.gnutls.org/manual/
that's the whole assignment, iykyk π
ok that's the whole page bestie, every flag, every argument, every error code, all of it, no cap π
and a lil sign-off for you: this was gnutls 3.8.13, and she said what she said π stay curious, read your man pages, and slay π π
π¦ 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