1gnutls_x509_crt_get_subject_alt_name(g3n)utglnsutls_x509_crt_get_subject_alt_name(3)
2
3
4

NAME

6       gnutls_x509_crt_get_subject_alt_name  -  This function returns the cer‐
7       tificate's alternative name, if any
8

SYNOPSIS

10       #include <gnutls/x509.h>
11
12       int    gnutls_x509_crt_get_subject_alt_name(gnutls_x509_crt_t     cert,
13       unsigned  int seq, void * ret, size_t * ret_size, unsigned int * criti‐
14       cal);
15

ARGUMENTS

17       gnutls_x509_crt_t cert
18                   should contain a gnutls_x509_crt_t structure
19
20       unsigned int seq
21                   specifies the sequence number of the alt name  (0  for  the
22                   first one, 1 for the second etc.)
23
24       void * ret  is the place where the alternative name will be copied to
25
26       size_t * ret_size
27                   holds the size of ret.
28
29       unsigned int * critical
30                   will  be  non  zero  if the extension is marked as critical
31                   (may be null)
32

DESCRIPTION

34       This function will return the alternative names, contained in the given
35       certificate.
36
37       This is specified in X509v3 Certificate Extensions.  GNUTLS will return
38       the Alternative name (2.5.29.17), or a negative error code.
39
40       Returns GNUTLS_E_SHORT_MEMORY_BUFFER if &ret_size is not enough to hold
41       the alternative name. In that case &ret_size will be updated. If every‐
42       thing was ok the type of alternative name is returned. The type is  one
43       of the enumerated gnutls_x509_subject_alt_name_t.
44
45       If the certificate does not have an Alternative name with the specified
46       sequence number then returns GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE;
47

REPORTING BUGS

49       Report bugs to <bug-gnutls@gnu.org>.
50
52       Copyright © 2006 Free Software Foundation.
53       Permission is granted to make and distribute verbatim  copies  of  this
54       manual  provided  the  copyright  notice and this permission notice are
55       preserved on all copies.
56

SEE ALSO

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                               1.6g.n3utls_x509_crt_get_subject_alt_name(3)
Impressum