1gnutls_x509_crt_set_subject_alt_name(g3n)utglnsutls_x509_crt_set_subject_alt_name(3)
2
3
4

NAME

6       gnutls_x509_crt_set_subject_alt_name - Set the subject Alternative Name
7

SYNOPSIS

9       #include <gnutls/x509.h>
10
11       int     gnutls_x509_crt_set_subject_alt_name(gnutls_x509_crt_t     crt,
12       gnutls_x509_subject_alt_name_t type, const void *  data,  unsigned  int
13       data_size, unsigned int flags);
14

ARGUMENTS

16       gnutls_x509_crt_t crt
17                   a certificate of type gnutls_x509_crt_t
18
19       gnutls_x509_subject_alt_name_t type
20                   is one of the gnutls_x509_subject_alt_name_t enumerations
21
22       const void * data
23                   The data to be set
24
25       unsigned int data_size
26                   The size of data to be set
27
28       unsigned int flags
29                   GNUTLS_FSAN_SET     to     clear     previous    data    or
30                   GNUTLS_FSAN_APPEND to append.
31

DESCRIPTION

33       This function will set the subject alternative name certificate  exten‐
34       sion. It can set the following types:
35
36       &GNUTLS_SAN_DNSNAME: as a text string
37
38       &GNUTLS_SAN_RFC822NAME: as a text string
39
40       &GNUTLS_SAN_URI: as a text string
41
42       &GNUTLS_SAN_IPADDRESS: as a binary IP address (4 or 16 bytes)
43
44       Other values can be set as binary values with the proper DER encoding.
45

RETURNS

47       On  success,  GNUTLS_E_SUCCESS  is returned, otherwise a negative error
48       value.
49

SINCE

51       2.6.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.8g.n6utls_x509_crt_set_subject_alt_name(3)
Impressum