gnutls_subject_alt_names_set(3)
β¨ gnutls_subject_alt_names_set(3) β¨
okay bestie, so this one lives in the gnutls manual, and it's literally all about stuffing a Subject Alternative Name into a little SAN container. let's get into it π
π NAME π
gnutls_subject_alt_names_set β it's an API function, bestie. that's the whole name. no notes. π
πΈ SYNOPSIS πΈ
#include <gnutls/x509-ext.h>
int gnutls_subject_alt_names_set(gnutls_subject_alt_names_t sans,
unsigned int san_type, const gnutls_datum_t * san, const char *
othername_oid);
like, look at her. four args. she's serving. π
π¦ ARGUMENTS π¦
gnutls_subject_alt_names_t sansβ the alternative names container itself. the little handbag where we're putting the name πunsigned int san_typeβ the type of the name, and yes it's one of thegnutls_subject_alt_names_ttypes. it's giving "what flavour of name are we doing today" πconst gnutls_datum_t * sanβ the actual alternative name data. the content, the moment, the girl herself β¨const char * othername_oidβ the object identifier, but ONLY ifsan_typeisGNUTLS_SAN_OTHERNAME. otherwise she's just vibing in the corner, not being used π
π DESCRIPTION π
so this function will store the specified alternative name in the sans. that's it. that's the job. she puts the name in the bag. iconic behaviour, no cap π«Ά
and here's the lil glow-up: since version 3.5.7, the GNUTLS_SAN_RFC822NAME, GNUTLS_SAN_DNSNAME, and GNUTLS_SAN_OTHERNAME_XMPP get converted to ACE format when necessary. so if it needs converting, bestie, it gets converted. periodt. π
β RETURNS β
on success you get GNUTLS_E_SUCCESS which is 0 β slay! π
otherwise you get a negative error value. so like, if the number is negative, something went wrong, and you should probably go look at it π
π SINCE π
3.3.0 β she's been around. an elder. a legend. a founding mother π
π REPORTING BUGS π
found a bug? don't be shy, tell the girlies:
- Report bugs to <bugs@gnutls.org>.
- Home page: https://www.gnutls.org
they wanna hear it fr fr π
π§ 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.
(translation: you can copy and share this file however you want, no royalty needed, just keep the copyright notice and this notice with it. we love a permissive queen π)
π₯ 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/
like, the whole manual is right there. go read it. it's giving comprehensive π
and that's the page, bestie!! this was gnutls 3.8.13, and honestly the date situation is a lil mysterious on this one but the version is right there and she's serving. mwah π go set some SANs, you absolute legend πβ¨ππ¦πΈπ π«Ά
π¦ 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