1 .\" DO NOT MODIFY THIS FILE! It was generated by gdoc.
2 .TH "gnutls_x509_crq_set_subject_alt_name" 3 "2.12.6.1" "gnutls" "gnutls"
4 gnutls_x509_crq_set_subject_alt_name \- API function
6 .B #include <gnutls/x509.h>
8 .BI "int gnutls_x509_crq_set_subject_alt_name(gnutls_x509_crq_t " crq ", gnutls_x509_subject_alt_name_t " nt ", const void * " data ", unsigned int " data_size ", unsigned int " flags ");"
10 .IP "gnutls_x509_crq_t crq" 12
11 a certificate request of type \fBgnutls_x509_crq_t\fP
12 .IP "gnutls_x509_subject_alt_name_t nt" 12
13 is one of the \fBgnutls_x509_subject_alt_name_t\fP enumerations
14 .IP "const void * data" 12
16 .IP "unsigned int data_size" 12
17 The size of data to be set
18 .IP "unsigned int flags" 12
19 \fBGNUTLS_FSAN_SET\fP to clear previous data or
20 \fBGNUTLS_FSAN_APPEND\fP to append.
22 This function will set the subject alternative name certificate
23 extension. It can set the following types:
25 &GNUTLS_SAN_DNSNAME: as a text string
27 &GNUTLS_SAN_RFC822NAME: as a text string
29 &GNUTLS_SAN_URI: as a text string
31 &GNUTLS_SAN_IPADDRESS: as a binary IP address (4 or 16 bytes)
33 Other values can be set as binary values with the proper DER encoding.
35 On success, \fBGNUTLS_E_SUCCESS\fP is returned, otherwise a
40 Report bugs to <bug-gnutls@gnu.org>.
41 GnuTLS home page: http://www.gnu.org/software/gnutls/
42 General help using GNU software: http://www.gnu.org/gethelp/
44 Copyright \(co 2008 Free Software Foundation.
46 Copying and distribution of this file, with or without modification,
47 are permitted in any medium without royalty provided the copyright
48 notice and this notice are preserved.
50 The full documentation for
52 is maintained as a Texinfo manual. If the
56 programs are properly installed at your site, the command
60 should give you access to the complete manual.