1
.TH "gnutls_x509_crq_get_dn" 3 "1.2.9" "gnutls" "gnutls"
5
.B #include <gnutls/x509.h>
7
.BI "int gnutls_x509_crq_get_dn(gnutls_x509_crq_t " crq ", char * " buf ", size_t * " sizeof_buf ");"
9
.IP "gnutls_x509_crq_t crq" 12
10
should contain a gnutls_x509_crq_t structure
12
a pointer to a structure to hold the name (may be null)
13
.IP "size_t * sizeof_buf" 12
14
initially holds the size of
17
This function will copy the name of the Certificate request
18
subject in the provided buffer. The name will be in the form
19
"C=xxxx,O=yyyy,CN=zzzz" as described in RFC2253. The output string
20
will be ASCII or UTF-8 encoded, depending on the certificate data.
24
is null then only the size will be filled.
26
Returns GNUTLS_E_SHORT_MEMORY_BUFFER if the provided buffer is not
27
long enough, and in that case the *sizeof_buf will be updated with
28
the required size. On success 0 is returned.
30
Report bugs to <bug-gnutls@gnu.org>.
32
Copyright \(co 2004 Free Software Foundation.
34
Permission is granted to make and distribute verbatim copies of this
35
manual provided the copyright notice and this permission notice are
36
preserved on all copies.
38
The full documentation for
40
is maintained as a Texinfo manual. If the
44
programs are properly installed at your site, the command
48
should give you access to the complete manual.