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,  un‐
12       signed int seq, void * ret, size_t * ret_size, unsigned int * ret_type,
13       unsigned int * critical);
14

ARGUMENTS

16       gnutls_x509_crq_t crq
17                   should contain a gnutls_x509_crq_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 * 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 se‐
48       quence number then GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE is returned.
49

SINCE

51       2.8.0
52

REPORTING BUGS

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

SEE ALSO

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