1gnutls_subject_alt_names_set(3) gnutls gnutls_subject_alt_names_set(3)
2
3
4
6 gnutls_subject_alt_names_set - API function
7
9 #include <gnutls/x509-ext.h>
10
11 int gnutls_subject_alt_names_set(gnutls_subject_alt_names_t sans,
12 unsigned int san_type, const gnutls_datum_t * san, const char * other‐
13 name_oid);
14
16 gnutls_subject_alt_names_t sans
17 The alternative names
18
19 unsigned int san_type
20 The type of the name (of gnutls_subject_alt_names_t)
21
22 const gnutls_datum_t * san
23 The alternative name data
24
25 const char * othername_oid
26 The object identifier if san_type is GNUTLS_SAN_OTHERNAME
27
29 This function will store the specified alternative name in the sans .
30
31 Since version 3.5.7 the GNUTLS_SAN_RFC822NAME, GNUTLS_SAN_DNSNAME, and
32 GNUTLS_SAN_OTHERNAME_XMPP are converted to ACE format when necessary.
33
35 On success, GNUTLS_E_SUCCESS (0), otherwise a negative error value.
36
38 3.3.0
39
41 Report bugs to <bugs@gnutls.org>.
42 Home page: https://www.gnutls.org
43
44
46 Copyright © 2001-2020 Free Software Foundation, Inc., and others.
47 Copying and distribution of this file, with or without modification,
48 are permitted in any medium without royalty provided the copyright
49 notice and this notice are preserved.
50
52 The full documentation for gnutls is maintained as a Texinfo manual.
53 If the /usr/share/doc/gnutls/ directory does not contain the HTML form
54 visit
55
56 https://www.gnutls.org/manual/
57
58gnutls 3.6.13 gnutls_subject_alt_names_set(3)