1gnutls_x509_rdn_get2(3) gnutls gnutls_x509_rdn_get2(3)
2
3
4
6 gnutls_x509_rdn_get2 - API function
7
9 #include <gnutls/x509.h>
10
11 int gnutls_x509_rdn_get2(const gnutls_datum_t * idn, gnutls_datum_t *
12 str, unsigned flags);
13
15 const gnutls_datum_t * idn
16 should contain a DER encoded RDN sequence
17
18 gnutls_datum_t * str
19 a datum that will hold the name
20
21 unsigned flags
22 zero of GNUTLS_X509_DN_FLAG_COMPAT
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 RFC4514.
27
28 When the flag GNUTLS_X509_DN_FLAG_COMPAT is specified, the output for‐
29 mat will match the format output by previous to 3.5.6 versions of
30 GnuTLS which was not not fully RFC4514-compliant.
31
33 On success, GNUTLS_E_SUCCESS [22m(0) is returned, or GNUTLS_E_SHORT_MEM‐
34 ORY_BUFFER is returned and * buf_size is updated if the provided buffer
35 is not long enough, otherwise a negative error value.
36
38 Report bugs to <bugs@gnutls.org>.
39 Home page: https://www.gnutls.org
40
41
43 Copyright © 2001- Free Software Foundation, Inc., and others.
44 Copying and distribution of this file, with or without modification,
45 are permitted in any medium without royalty provided the copyright no‐
46 tice and this notice are preserved.
47
49 The full documentation for gnutls is maintained as a Texinfo manual.
50 If the /usr/share/doc/gnutls/ directory does not contain the HTML form
51 visit
52
53 https://www.gnutls.org/manual/
54
55gnutls 3.7.8 gnutls_x509_rdn_get2(3)