GNUTLS_X509_CRT_GET_ISSUER_ALT_OTHERNAME_OID(3)
π gnutls_x509_crt_get_issuer_alt_othername_oid(3) π
okay bestie, welcome to the gnutls manual, this one's a whole API function and honestly it's giving "cryptic but iconic" π
it lives in the gnutls section of the man pages and it's about digging an OID out of a certificate's issuer alt name. no cap.
β¨ NAME β¨
gnutls_x509_crt_get_issuer_alt_othername_oid β an API function, fr fr π
πΈ SYNOPSIS πΈ
#include <gnutls/x509.h>
int gnutls_x509_crt_get_issuer_alt_othername_oid(gnutls_x509_crt_t cert,
unsigned int seq, void * ret, size_t * ret_size);
π¦ ARGUMENTS π¦
gnutls_x509_crt_t certβ bestie this should contain agnutls_x509_crt_ttype, that's literally the vibe it needs to have.unsigned int seqβ which alt name we're talking about, by sequence number (0for the first one,1for the second etc., you know the drill β¨).void * retβ the place where the otherName OID will be copied to. it's the destination, the moment, the main character spot πsize_t * ret_sizeβ holds the size ofret. it's the receipts π
π DESCRIPTION π
So this function will extract the type OID of an otherName Subject Alternative Name contained in the given certificate, and it returns the type as an enumerated element. periodt.
If oid is null then only the size will be filled. The oid returned will be null terminated, although oid_size will not account for the trailing null. (yes, that's exactly what it says, we don't make the rules π)
This function is only useful ifgnutls_x509_crt_get_issuer_alt_name()returnedGNUTLS_SAN_OTHERNAME. if it didn't, you're lowkey in the wrong place bestie π
π₯ RETURNS π₯
On success you get the alternative issuer name type, one of the enumerated gnutls_x509_subject_alt_name_t β slay. π
For supported OIDs, it will return one of the virtual (GNUTLS_SAN_OTHERNAME_*) types, e.g. GNUTLS_SAN_OTHERNAME_XMPP, and GNUTLS_SAN_OTHERNAME for unknown OIDs.
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 it's not a fail, it's a glow-up moment, it's telling you how much room it needs π
If the certificate does not have an Alternative name with the specified sequence number and with the otherName type then GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE is returned. not me getting rejected by a cert π
β SINCE β
2.10.0 β an elder, an OG, we respect her π«Ά
π REPORTING BUGS π
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.
π« 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 π this was gnutls 3.8.13, brought to you by the gnutls girlies β go read the docs, hydrate, and may your buffers always be big enough π§β¨
π¦ 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