gnutls_subject_alt_names_get(3)
β¨ gnutls_subject_alt_names_get(3) β the gnutls manual's lil' bestie π
okay bestie, gather round π«Ά this is a page straight out of the gnutls manual, version 3.8.13, and it's all about grabbing one single subject alternative name out of a whole little collection of them. yes, one. at a time. we're being β¨specificβ¨.
πΈ NAME πΈ
gnutls_subject_alt_names_get β an API function, and it's giving "let me fetch that alt name for you, queen" π
π¦ SYNOPSIS π¦
#include <gnutls/x509-ext.h>
int gnutls_subject_alt_names_get(gnutls_subject_alt_names_t sans,
unsigned int seq, unsigned int * san_type, gnutls_datum_t * san,
gnutls_datum_t * othername_oid);
like, there it is. five whole arguments. she's thorough π
π ARGUMENTS π
gnutls_subject_alt_names_t sansβ the alternative names, the whole squad of them, the main character collection itself πunsigned int seqβ the index of the name to get, aka which one in the lineup you're pointing at π’unsigned int * san_typeβ this is where the type of the name gets dropped off, and yes, the type is "ofgnutls_subject_alt_names_t" π·οΈgnutls_datum_t * sanβ the alternative name data itself. heads up bestie: this should be treated as constant πgnutls_datum_t * othername_oidβ the object identifier, but only ifsan_typeisGNUTLS_SAN_OTHERNAME. also should be treated as constant π
π DESCRIPTION π
so the way this works is, this function returns a specific alternative name, exactly as it's stored in the sans type. one name. the one you asked for with your index. no cap π
and here's the part you can't skip, bestie: the returned values should be treated as constant and they're only valid for the lifetime of sans. so don't go holding onto them after sans dips, okay? they're not sticking around π periodt.
β RETURNS β
- when it eats:
GNUTLS_E_SUCCESS(0) is returned π - when you asked for an index that doesn't exist:
GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLEβ out of bounds, bestie, she's not there π - otherwise: a negative error value π
π§ SINCE π§
3.3.0 β she's been iconic for a minute π
π REPORTING BUGS π
found a bug? don't be shy, tell the gnutls 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 also legally binding, but mostly slay π
π 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/
like, go read the whole thing, it's a vibe, iykyk πβ¨
and that's the page, bestie π«Ά written under the gnutls name, version 3.8.13, for the gnutls_subject_alt_names_get(3) manual entry. go get your alt names, 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