1gnutls_x509_crt_get_subject_alt_name2g(n3ug)tnlustls_x509_crt_get_subject_alt_name2(3)
2
3
4

NAME

6       gnutls_x509_crt_get_subject_alt_name2  -  Get certificate's alternative
7       name, if any
8

SYNOPSIS

10       #include <gnutls/x509.h>
11
12       int    gnutls_x509_crt_get_subject_alt_name2(gnutls_x509_crt_t    cert,
13       unsigned  int  seq,  void  *  ret,  size_t  *  ret_size, unsigned int *
14       ret_type, unsigned int * critical);
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 * ret_type
30                   holds   the   type   of   the   alternative  name  (one  of
31                   gnutls_x509_subject_alt_name_t).
32
33       unsigned int * critical
34                   will be non zero if the extension  is  marked  as  critical
35                   (may be null)
36

DESCRIPTION

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

RETURNS

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

REPORTING BUGS

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

SEE ALSO

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