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 - API function
7
9 #include <gnutls/x509.h>
10
11 int gnutls_x509_crt_set_subject_alternative_name(gnutls_x509_crt_t crt,
12 gnutls_x509_subject_alt_name_t type, const char * data_string);
13
15 gnutls_x509_crt_t crt
16 a certificate of type gnutls_x509_crt_t
17
18 gnutls_x509_subject_alt_name_t type
19 is one of the gnutls_x509_subject_alt_name_t enumerations
20
21 const char * data_string
22 The data to be set, a (0) terminated string
23
25 This function will set the subject alternative name certificate exten‐
26 sion. This function assumes that data can be expressed as a null termi‐
27 nated string.
28
29 The name of the function is unfortunate since it is inconsistent with
30 gnutls_x509_crt_get_subject_alt_name().
31
32 See gnutls_x509_crt_set_subject_alt_name() for more information.
33
35 On success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative er‐
36 ror value.
37
39 Report bugs to <bugs@gnutls.org>.
40 Home page: https://www.gnutls.org
41
42
44 Copyright © 2001-2023 Free Software Foundation, Inc., and others.
45 Copying and distribution of this file, with or without modification,
46 are permitted in any medium without royalty provided the copyright no‐
47 tice and this notice are preserved.
48
50 The full documentation for gnutls is maintained as a Texinfo manual.
51 If the /usr/share/doc/gnutls/ directory does not contain the HTML form
52 visit
53
54 https://www.gnutls.org/manual/
55
56gnutls gnutls3_.x85.029_crt_set_subject_alternative_name(3)