1gnutls_x509_crt_get_issuer_alt_name2(g3n)utglnsutls_x509_crt_get_issuer_alt_name2(3)
2
3
4

NAME

6       gnutls_x509_crt_get_issuer_alt_name2 - API function
7

SYNOPSIS

9       #include <gnutls/x509.h>
10
11       int  gnutls_x509_crt_get_issuer_alt_name2(gnutls_x509_crt_t  cert,  un‐
12       signed int seq, void * ian, size_t * ian_size, unsigned int * ian_type,
13       unsigned int * critical);
14

ARGUMENTS

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 * ian  is the place where the alternative name will be copied to
24
25       size_t * ian_size
26                   holds the size of ret.
27
28       unsigned int * ian_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

DESCRIPTION

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

RETURNS

44       the alternative issuer 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  ian_size is not large enough to hold the value.  In that
47       case  ian_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

SINCE

52       2.10.0
53

REPORTING BUGS

55       Report bugs to <bugs@gnutls.org>.
56       Home page: https://www.gnutls.org
57
58
60       Copyright © 2001- Free Software Foundation, Inc., and others.
61       Copying  and  distribution  of this file, with or without modification,
62       are permitted in any medium without royalty provided the copyright  no‐
63       tice and this notice are preserved.
64

SEE ALSO

66       The  full  documentation  for gnutls is maintained as a Texinfo manual.
67       If the /usr/share/doc/gnutls/ directory does not contain the HTML  form
68       visit
69
70       https://www.gnutls.org/manual/
71
72gnutls                               3.7g.n2utls_x509_crt_get_issuer_alt_name2(3)
Impressum