1 .\" DO NOT MODIFY THIS FILE! It was generated by gdoc.
2 .TH "gnutls_x509_crt_get_subject_alt_name2" 3 "2.12.6.1" "gnutls" "gnutls"
4 gnutls_x509_crt_get_subject_alt_name2 \- API function
6 .B #include <gnutls/x509.h>
8 .BI "int gnutls_x509_crt_get_subject_alt_name2(gnutls_x509_crt_t " cert ", unsigned int " seq ", void * " ret ", size_t * " ret_size ", unsigned int * " ret_type ", unsigned int * " critical ");"
10 .IP "gnutls_x509_crt_t cert" 12
11 should contain a \fBgnutls_x509_crt_t\fP structure
12 .IP "unsigned int seq" 12
13 specifies the sequence number of the alt name (0 for the first one, 1 for the second etc.)
15 is the place where the alternative name will be copied to
16 .IP "size_t * ret_size" 12
17 holds the size of ret.
18 .IP "unsigned int * ret_type" 12
19 holds the type of the alternative name (one of gnutls_x509_subject_alt_name_t).
20 .IP "unsigned int * critical" 12
21 will be non zero if the extension is marked as critical (may be null)
23 This function will return the alternative names, contained in the
24 given certificate. It is the same as
25 \fBgnutls_x509_crt_get_subject_alt_name()\fP except for the fact that it
26 will return the type of the alternative name in \fIret_type\fP even if
27 the function fails for some reason (i.e. the buffer provided is
30 the alternative subject name type on success, one of the
31 enumerated \fBgnutls_x509_subject_alt_name_t\fP. It will return
32 \fBGNUTLS_E_SHORT_MEMORY_BUFFER\fP if \fIret_size\fP is not large enough
33 to hold the value. In that case \fIret_size\fP will be updated with
34 the required size. If the certificate does not have an
35 Alternative name with the specified sequence number then
36 \fBGNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE\fP is returned.
38 Report bugs to <bug-gnutls@gnu.org>.
39 GnuTLS home page: http://www.gnu.org/software/gnutls/
40 General help using GNU software: http://www.gnu.org/gethelp/
42 Copyright \(co 2008 Free Software Foundation.
44 Copying and distribution of this file, with or without modification,
45 are permitted in any medium without royalty provided the copyright
46 notice and this notice are preserved.
48 The full documentation for
50 is maintained as a Texinfo manual. If the
54 programs are properly installed at your site, the command
58 should give you access to the complete manual.