gnutls_x509_cr...t_alt_othername(3)
π gnutls_x509_crq_set_subject_alt_othername β API function π
okay bestie, so this page lives in the gnutls manual (that's the manual name, and yes it's giving cryptography main character energy π), and it's all about one very specific little function. let's get into it π¦
β¨ SYNOPSIS β¨
#include <gnutls/x509.h>
int gnutls_x509_crq_set_subject_alt_othername(gnutls_x509_crq_t crq,
const char * oid, const void * data, unsigned int data_size, unsigned
int flags);
like, five arguments, no notes. she's thorough π
πΈ ARGUMENTS πΈ
gnutls_x509_crq_t crqβ a certificate request of typegnutls_x509_crq_t. yes the type is the same as the name, it's just like that, we don't question it πconst char * oidβ this is the othername OID. the little dotted identifier that says which othername we're talking about πconst void * dataβ the data to be set. that's it, that's the data πunsigned int data_sizeβ the size of data to be set. gotta tell her how big it is, she's not psychic β¨unsigned int flagsβ your vibe selector:GNUTLS_FSAN_SETto clear previous data, orGNUTLS_FSAN_APPENDto append. so like, fresh start or add-to-the-pile, pick one π«Ά
π¦ DESCRIPTION π¦
so this function will set the subject alternative name certificate extension. iconic behaviour, truly.
it can set the following types:
and then... nothing. the list is empty in the source text, bestie. the types are implied, the types are mysterious. iykyk π
the important part though, fr fr: the values set must be binary values and must be properly DER encoded. no cap. if you're handing her something that isn't binary and DER-encoded, that's not it, and she will not be slaying.
β RETURNS β
on success, GNUTLS_E_SUCCESS (that's 0) is returned π
otherwise you get a negative error value. sad girl hours, but at least she tells you π
π SINCE π
3.5.0 β she's been around, she's got history, respect the elders π
π REPORTING BUGS π
found a bug? spill. report bugs to <bugs@gnutls.org>.
home page, for the girlies who like to browse: 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, visit:
https://www.gnutls.org/manual/
that's your girl. she has everything πΈ
and that's the whole page, bestie π
this one's from gnutls version 3.8.13, dated alongside the gnutls_x509_cr...t_alt_othername(3) page β so go forth, set that othername, DER-encode responsibly, and stay slaying π¦β¨π
π¦ 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