1gnutls_x509_crt_set_subject_altegrnnuattligsvn_eux_t5nl0as9m_ec(r3t)_set_subject_alternative_name(3)
2
3
4
6 gnutls_x509_crt_set_subject_alternative_name - Set the subject Alterna‐
7 tive Name
8
10 #include <gnutls/x509.h>
11
12 int gnutls_x509_crt_set_subject_alternative_name(gnutls_x509_crt_t crt,
13 gnutls_x509_subject_alt_name_t type, const char * data_string);
14
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 char * data_string
23 The data to be set, a zero terminated string
24
26 This function will set the subject alternative name certificate exten‐
27 sion. This function assumes that data can be expressed as a null termi‐
28 nated string.
29
30 The name of the function is unfortunate since it is incosistent with
31 gnutls_x509_crt_get_subject_alt_name().
32
34 On success, GNUTLS_E_SUCCESS is returned, otherwise a negative error
35 value.
36
38 Report bugs to <bug-gnutls@gnu.org>. GnuTLS home page:
39 http://www.gnu.org/software/gnutls/ General help using GNU software:
40 http://www.gnu.org/gethelp/
41
43 Copyright © 2008 Free Software Foundation.
44 Copying and distribution of this file, with or without modification,
45 are permitted in any medium without royalty provided the copyright
46 notice and this notice are preserved.
47
49 The full documentation for gnutls is maintained as a Texinfo manual.
50 If the info and gnutls programs are properly installed at your site,
51 the command
52
53 info gnutls
54
55 should give you access to the complete manual.
56
57
58
59gnutls gnutls2_.x85.069_crt_set_subject_alternative_name(3)