gnutls_x509_aki_set_cert_issuer(3)
π gnutls_x509_aki_set_cert_issuer π
okay bestie, welcome to the gnutls girlies' corner πΈ this one lives in section 3 of the manual (that's the library-functions girlies, iykyk), and it's literally just one tiny little function that goes SO hard. it's giving "I only do one thing but I do it flawlessly." periodt. π
β¨ NAME β¨
gnutls_x509_aki_set_cert_issuer β no fr, it's an API function, that's the whole vibe π
π¦ SYNOPSIS π¦
#include <gnutls/x509-ext.h>
int gnutls_x509_aki_set_cert_issuer(gnutls_x509_aki_t aki, unsigned int
san_type, const gnutls_datum_t * san, const char * othername_oid, const
gnutls_datum_t * serial);
like. five whole arguments. she's a lot but she's worth it π
π ARGUMENTS π
gnutls_x509_aki_t akiβ the authority key ID. that's the thing we're decorating, bestie, she's our main character πunsigned int san_typeβ the type of the name (ofgnutls_subject_alt_names_t), and lowkey it may be null πconst gnutls_datum_t * sanβ the alternative name data. the actual goods. the moment. β¨const char * othername_oidβ the object identifier, but ONLY ifsan_typeisGNUTLS_SAN_OTHERNAME. otherwise it's not her turn πconst gnutls_datum_t * serialβ theauthorityCertSerialNumbernumber (and yes, she may be null too) πΈ
π DESCRIPTION π
okay so here's the tea β this function will set the authorityCertIssuer name AND the authorityCertSerialNumber so they get stored up in the aki type. that's the whole job. she ate. π₯
now the important bit β when you're storing multiple names, the serial should be set on the first call, and then every subsequent call should use a NULL serial. like, the serial is a one-time thing, she said it once and that's enough, no need to repeat yourself bestie π
and since version 3.5.7, GNUTLS_SAN_RFC822NAME, GNUTLS_SAN_DNSNAME, and GNUTLS_SAN_OTHERNAME_XMPP get converted to ACE format when necessary. the way she just handles that for you? iconic behaviour, no notes π§
β RETURNS β
on success you get GNUTLS_E_SUCCESS (which is literally 0, cute) π otherwise you get a negative error value and you're gonna have to have a little sit-down about it π
π SINCE π
3.3.0 β an elder, a legend, been here since before it was cool π
π REPORTING BUGS π
found a bug? don't be shy, tell the 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. slay, and legally so π
πΈ 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/
and that's the whole page, bestie!! π«Ά go forth and set those cert issuers. this one's from gnutls 3.8.13, section 3, and yeah the footer is a whole mood but honestly so is she. 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