1gnutls_x509_rdn_get2(3)             gnutls             gnutls_x509_rdn_get2(3)
2
3
4

NAME

6       gnutls_x509_rdn_get2 - API function
7

SYNOPSIS

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

ARGUMENTS

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

DESCRIPTION

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

RETURNS

33       On  success,  GNUTLS_E_SUCCESS  (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

REPORTING BUGS

38       Report bugs to <bugs@gnutls.org>.
39       Home page: http://www.gnutls.org
40
41
43       Copyright © 2001-2018 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
46       notice and this notice are preserved.
47

SEE ALSO

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       http://www.gnutls.org/manual/
54
55gnutls                               3.6.5             gnutls_x509_rdn_get2(3)
Impressum