1gnutls_x509_crq_get_subject_alt_name(g3n)utglnsutls_x509_crq_get_subject_alt_name(3)
2
3
4

NAME

6       gnutls_x509_crq_get_subject_alt_name - API function
7

SYNOPSIS

9       #include <gnutls/x509.h>
10
11       int     gnutls_x509_crq_get_subject_alt_name(gnutls_x509_crq_t     crq,
12       unsigned int seq, void  *  ret,  size_t  *  ret_size,  unsigned  int  *
13       ret_type, unsigned int * critical);
14

ARGUMENTS

16       gnutls_x509_crq_t crq
17                   should contain a gnutls_x509_crq_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 gnutls_x509_subject_alt_name_t name type
30
31       unsigned int * critical
32                   will be non zero if the extension  is  marked  as  critical
33                   (may be null)
34

DESCRIPTION

36       This function will return the alternative names, contained in the given
37       certificate.  It is the same as  gnutls_x509_crq_get_subject_alt_name()
38       except  for  the  fact  that it will return the type of the alternative
39       name in ret_type even if the function fails for some reason (i.e.   the
40       buffer provided is not enough).
41

RETURNS

43       the  alternative  subject  name  type on success, one of the enumerated
44       gnutls_x509_subject_alt_name_t.   It  will  return  GNUTLS_E_SHORT_MEM‐
45       ORY_BUFFER  if ret_size is not large enough to hold the value.  In that
46       case ret_size will be updated with the required size.  If the  certifi‐
47       cate  request  does  not  have  an  Alternative name with the specified
48       sequence number then GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE is returned.
49

SINCE

51       2.8.0
52

REPORTING BUGS

54       Report   bugs   to    <bug-gnutls@gnu.org>.     GnuTLS    home    page:
55       http://www.gnu.org/software/gnutls/  General  help  using GNU software:
56       http://www.gnu.org/gethelp/
57
59       Copyright © 2008 Free Software Foundation.
60       Copying and distribution of this file, with  or  without  modification,
61       are  permitted  in  any  medium  without royalty provided the copyright
62       notice and this notice are preserved.
63

SEE ALSO

65       The full documentation for gnutls is maintained as  a  Texinfo  manual.
66       If  the  info  and gnutls programs are properly installed at your site,
67       the command
68
69              info gnutls
70
71       should give you access to the complete manual.
72
73
74
75gnutls                             2.12.g6n.u1tls_x509_crq_get_subject_alt_name(3)
Impressum