GNUTLS_X509_CRT_SET_ISSUER_ALT_OTHERNAME(3)
β¨ gnutls_x509_crt_set_issuer_alt_othername β¨
okay bestie, welcome to the gnutls section 3 manual, this one's about gnutls_x509_crt_set_issuer_alt_othername π it lives in the gnutls man pages and it's literally the glow-up your certificate's issuer alt name needed. no cap.
π NAME π
gnutls_x509_crt_set_issuer_alt_othername β API function π
(it's giving "very specific little helper" and honestly? obsessed.)
πΈ SYNOPSIS πΈ
#include <gnutls/x509.h>
int gnutls_x509_crt_set_issuer_alt_othername(gnutls_x509_crt_t crt,
const char * oid, const void * data, unsigned int data_size, unsigned
int flags);
yes queen, that's the whole signature, keep it exactly like that π«Ά
π¦ ARGUMENTS π¦
gnutls_x509_crt_t crtβ a certificate of typegnutls_x509_crt_t. this is the main character, the cert we're decorating β¨const char * oidβ The other name OID. it's the ID that says which othername situation we're doing πconst void * dataβ The data to be set. this is the actual payload, bestie π¦unsigned int data_sizeβ The size of data to be set. gotta tell it how big the payload is or it's just guessing, and we don't guess π₯unsigned int flagsβGNUTLS_FSAN_SETto clear previous data orGNUTLS_FSAN_APPENDto append. pick your fighter π
π DESCRIPTION π
so what does this do? This function will set an "othername" to the issuer alternative name certificate extension. that's it, that's the job. iconic behaviour, truly.
here's the tea though: The values set are set as binary values and are expected to have the proper DER encoding. so like, it's not gonna hold your hand and turn your cute little string into DER, you gotta bring DER yourself π§
BUT β for convenience the flags GNUTLS_FSAN_ENCODE_OCTET_STRING and GNUTLS_FSAN_ENCODE_UTF8_STRING can be used to encode the provided data. so if you're feeling lazy (valid), those two will do the encoding for you. slay π
β¨
β RETURNS β
On success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative error value.
so like, zero means we ate. anything negative means something went sideways π check it, always.
π SINCE π
3.5.0 β she's been here a minute, respect the elders π
π REPORTING BUGS π
found a bug? don't be shy, 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. (basically: keep the receipts, be respectful, and you're free to share π«Ά)
π₯ 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/
ngl that's the whole page, no skipped sections, no missing flags, all facts intact π
okay bye bestie, go set those othernames, this was the gnutls manual, version 3.8.13 β gnutls_x509_crt_set_issuer_alt_othername(3), periodt πβ¨ππ¦πΈπ
π¦ 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