1gnutls_x509_crt_get_subject_alt_name2g(n3ug)tnlustls_x509_crt_get_subject_alt_name2(3)
2
3
4
6 gnutls_x509_crt_get_subject_alt_name2 - API function
7
9 #include <gnutls/x509.h>
10
11 int gnutls_x509_crt_get_subject_alt_name2(gnutls_x509_crt_t cert,
12 unsigned int seq, void * ret, size_t * ret_size, unsigned int *
13 ret_type, unsigned int * critical);
14
16 gnutls_x509_crt_t cert
17 should contain a gnutls_x509_crt_t structure
18
19 unsigned int seq
20 specifies the sequence number of the alt name (0 for the
21 first one, 1 for the second etc.)
22
23 void * ret is the place where the alternative name will be copied to
24
25 size_t * ret_size
26 holds the size of ret.
27
28 unsigned int * ret_type
29 holds the type of the alternative name (one of
30 gnutls_x509_subject_alt_name_t).
31
32 unsigned int * critical
33 will be non zero if the extension is marked as critical
34 (may be null)
35
37 This function will return the alternative names, contained in the given
38 certificate. It is the same as gnutls_x509_crt_get_subject_alt_name()
39 except for the fact that it will return the type of the alternative
40 name in ret_type even if the function fails for some reason (i.e. the
41 buffer provided is not enough).
42
44 the alternative subject name type on success, one of the enumerated
45 gnutls_x509_subject_alt_name_t. It will return GNUTLS_E_SHORT_MEM‐
46 ORY_BUFFER if ret_size is not large enough to hold the value. In that
47 case ret_size will be updated with the required size. If the certifi‐
48 cate does not have an Alternative name with the specified sequence num‐
49 ber then GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE is returned.
50
52 Report bugs to <bug-gnutls@gnu.org>. GnuTLS home page:
53 http://www.gnu.org/software/gnutls/ General help using GNU software:
54 http://www.gnu.org/gethelp/
55
57 Copyright © 2008 Free Software Foundation.
58 Copying and distribution of this file, with or without modification,
59 are permitted in any medium without royalty provided the copyright
60 notice and this notice are preserved.
61
63 The full documentation for gnutls is maintained as a Texinfo manual.
64 If the info and gnutls programs are properly installed at your site,
65 the command
66
67 info gnutls
68
69 should give you access to the complete manual.
70
71
72
73gnutls 2.12g.n6u.t1ls_x509_crt_get_subject_alt_name2(3)