GNUTLS_X509_CRQ_GET_SUBJECT_ALT_NAME(3)
β¨ gnutls_x509_crq_get_subject_alt_name β¨
okay bestie, welcome to the gnutls manual, page gnutls_x509_crq_get_subject_alt_name(3) π this one is a little API function and she is serving certificate request subject alternative names and honestly? iconic.
πΈ NAME πΈ
gnutls_x509_crq_get_subject_alt_name β API function π
π¦ SYNOPSIS π¦
#include <gnutls/x509.h>
int gnutls_x509_crq_get_subject_alt_name(gnutls_x509_crq_t crq, unsigned
int seq, void * ret, size_t * ret_size, unsigned int * ret_type,
unsigned int * critical);
π ARGUMENTS π
gnutls_x509_crq_t crqβ should contain agnutls_x509_crq_ttype. yes bestie, that's literally what the manpage says, it's giving "the type is the type" πunsigned int seqβ the sequence number of the alt name, okay?0for the first one,1for the second etc. counting from zero like a true girlboss π₯void * retβ this is the place where the alternative name will be copied to. the drop-off spot π¦β¨size_t * ret_sizeβ holds the size ofret. she's the vibe check on how much room you gave her π«Άunsigned int * ret_typeβ holds thegnutls_x509_subject_alt_name_tname type. the what kind of name is this info πunsigned int * criticalβ will be non-zero if the extension is marked as critical (may be null). so like, is this a big deal or not π
π DESCRIPTION π
This function will return the alternative names, contained in the given certificate. no cap, that's the whole gig.
It is the same as gnutls_x509_crq_get_subject_alt_name() except for the fact that it will return the type of the alternative name in ret_type even if the function fails for some reason (i.e. the buffer provided is not enough). so even when things go wrong she still tells you the type β she's not gatekeeping, periodt π
β RETURNS β
the alternative subject name type on success, one of the enumerated gnutls_x509_subject_alt_name_t. slay.
It will return GNUTLS_E_SHORT_MEMORY_BUFFER if ret_size is not large enough to hold the value. in that case ret_size will be updated with the required size. so like, she tells you exactly how much room she needs β very main character of her π
If the certificate request does not have an Alternative name with the specified sequence number then GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE is returned. she looked. it's not there. moving on π
π SINCE π
2.8.0 β old money, honestly. been iconic since way back π°οΈβ¨
π REPORTING BUGS π
Report bugs to <bugs@gnutls.org>. Home page: https://www.gnutls.org
bestie if you found a bug, tell the gnutls girlies directly, they want to know 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. so yes, share it, remix it, it's giving open source generosity πΈ
π 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/
and that's the whole page, bestie π§ go forth and read those subject alt names π this was page gnutls_x509_crq_get_subject_alt_name(3) from the gnutls manual, version 3.8.13, copyright vibes spanning 2001-2023 β mwah, no notes, byeee πβ¨
π¦ 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