1gnutls_x509_crq_get_subject_altg_noutthlesrg_nnxau5mt0el9_s_ocirdq(_3g)et_subject_alt_othername_oid(3)
2
3
4
6 gnutls_x509_crq_get_subject_alt_othername_oid - API function
7
9 #include <gnutls/x509.h>
10
11 int gnutls_x509_crq_get_subject_alt_othername_oid(gnutls_x509_crq_t
12 crq, unsigned int seq, void * ret, size_t * ret_size);
13
15 gnutls_x509_crq_t crq
16 should contain a gnutls_x509_crq_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_crq_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
41 ret_size is not large enough to hold the value. In that case
42 ret_size will be updated with the required size. If the certificate
43 does not have an Alternative name with the specified sequence number
44 and with the otherName type then GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE
45 is returned.
46
48 2.8.0
49
51 Report bugs to <bugs@gnutls.org>.
52 Home page: http://www.gnutls.org
53
54
56 Copyright © 2001-2014 Free Software Foundation, Inc..
57 Copying and distribution of this file, with or without modification,
58 are permitted in any medium without royalty provided the copyright
59 notice and this notice are preserved.
60
62 The full documentation for gnutls is maintained as a Texinfo manual.
63 If the /usr/share/doc/gnutls/ directory does not contain the HTML form
64 visit
65
66 http://www.gnutls.org/manual/
67
68gnutls gnutls3_.x35.0299_crq_get_subject_alt_othername_oid(3)