1gnutls_x509_rdn_get(3) gnutls gnutls_x509_rdn_get(3)
2
3
4
6 gnutls_x509_rdn_get - This function parses an RDN sequence and returns
7 a string
8
10 #include <gnutls/x509.h>
11
12 int gnutls_x509_rdn_get(const gnutls_datum_t * idn, char * buf, size_t
13 * sizeof_buf);
14
16 const gnutls_datum_t * idn
17 should contain a DER encoded RDN sequence
18
19 char * buf a pointer to a structure to hold the peer's name
20
21 size_t * sizeof_buf
22 holds the size of buf
23
25 This function will return the name of the given RDN sequence. The name
26 will be in the form "C=xxxx,O=yyyy,CN=zzzz" as described in RFC2253.
27
28 If the provided buffer is not long enough, returns GNUTLS_E_SHORT_MEM‐
29 ORY_BUFFER and *sizeof_buf will be updated. On success 0 is returned.
30
32 Report bugs to <bug-gnutls@gnu.org>.
33
35 Copyright © 2006 Free Software Foundation.
36 Permission is granted to make and distribute verbatim copies of this
37 manual provided the copyright notice and this permission notice are
38 preserved on all copies.
39
41 The full documentation for gnutls is maintained as a Texinfo manual.
42 If the info and gnutls programs are properly installed at your site,
43 the command
44
45 info gnutls
46
47 should give you access to the complete manual.
48
49
50
51gnutls 1.6.3 gnutls_x509_rdn_get(3)