1gnutls_x509_crt_get_subject_altg_noutthlesrg_nnxau5mt0el9_s_ocirdt(_3g)et_subject_alt_othername_oid(3)
2
3
4
6 gnutls_x509_crt_get_subject_alt_othername_oid - Get SAN otherName OID
7
9 #include <gnutls/x509.h>
10
11 int gnutls_x509_crt_get_subject_alt_othername_oid(gnutls_x509_crt_t
12 cert, unsigned int seq, void * ret, size_t * ret_size);
13
15 gnutls_x509_crt_t cert
16 should contain a gnutls_x509_crt_t structure
17
18 unsigned int seq
19 specifies the sequence number of the alt name (0 for the
20 first one, 1 for the second etc.)
21
22 void * ret is the place where the otherName OID will be copied to
23
24 size_t * ret_size
25 holds the size of ret.
26
28 This function will extract the type OID of an otherName Subject Alter‐
29 native Name, contained in the given certificate, and return the type as
30 an enumerated element.
31
32 This function is only useful if gnutls_x509_crt_get_subject_alt_name()
33 returned GNUTLS_SAN_OTHERNAME.
34
36 the alternative subject name type on success, one of the enumerated
37 gnutls_x509_subject_alt_name_t. For supported OIDs, it will return one
38 of the virtual (GNUTLS_SAN_OTHERNAME_*) types, e.g. GNUTLS_SAN_OTHER‐
39 NAME_XMPP, and GNUTLS_SAN_OTHERNAME for unknown OIDs. It will return
40 GNUTLS_E_SHORT_MEMORY_BUFFER if ret_size is not large enough to hold
41 the value. In that case ret_size will be updated with the required
42 size. If the certificate does not have an Alternative name with the
43 specified sequence number and with the otherName type then
44 GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE is returned.
45
47 Report bugs to <bug-gnutls@gnu.org>. GnuTLS home page:
48 http://www.gnu.org/software/gnutls/ General help using GNU software:
49 http://www.gnu.org/gethelp/
50
52 Copyright © 2008 Free Software Foundation.
53 Copying and distribution of this file, with or without modification,
54 are permitted in any medium without royalty provided the copyright
55 notice and this notice are preserved.
56
58 The full documentation for gnutls is maintained as a Texinfo manual.
59 If the info and gnutls programs are properly installed at your site,
60 the command
61
62 info gnutls
63
64 should give you access to the complete manual.
65
66
67
68gnutls gnutls_2x.580.96_crt_get_subject_alt_othername_oid(3)