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 * san, size_t * san_size, unsigned int *
13 san_type, unsigned int * critical);
14
16 gnutls_x509_crt_t cert
17 should contain a gnutls_x509_crt_t type
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 * san is the place where the alternative name will be copied to
24
25 size_t * san_size
26 holds the size of ret.
27
28 unsigned int * san_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 san_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 san_size is not large enough to hold the value. In that
47 case san_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 <bugs@gnutls.org>.
53 Home page: http://www.gnutls.org
54
55
57 Copyright © 2001-2018 Free Software Foundation, Inc., and others.
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 /usr/share/doc/gnutls/ directory does not contain the HTML form
65 visit
66
67 http://www.gnutls.org/manual/
68
69gnutls 3.g6n.u5tls_x509_crt_get_subject_alt_name2(3)