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  -  Get  certificate's alternative
7       name
8

SYNOPSIS

10       #include <gnutls/x509.h>
11
12       int    gnutls_x509_crq_get_subject_alt_name(gnutls_x509_crq_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_crq_t cert
18                   should contain a gnutls_x509_crq_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 gnutls_x509_subject_alt_name_t name type
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_crq_get_subject_alt_name()
39       except for the fact that it will return the  type  of  the  alternative
40       name  in ret_type even if the function fails for some reason (i.e.  the
41       buffer provided is not enough).
42

RETURNS

44       the alternative subject 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 ret_size is not large enough to hold the value.  In  that
47       case  ret_size will be updated with the required size.  If the certifi‐
48       cate request does not have  an  Alternative  name  with  the  specified
49       sequence number then GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE is returned.
50

SINCE

52       2.8.0
53

REPORTING BUGS

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

SEE ALSO

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