1
2
3
4
5@deftypefun {int} {gnutls_x509_dn_get_str} (gnutls_x509_dn_t @var{dn}, gnutls_datum_t * @var{str})
6@var{dn}: a pointer to DN
7
8@var{str}: a datum that will hold the name
9
10This function will allocate buffer and copy the name in the provided DN.
11The name will be in the form "C=xxxx,O=yyyy,CN=zzzz" as
12described in RFC4514. The output string will be ASCII or UTF-8
13encoded, depending on the certificate data.
14
15@strong{Returns:} On success, @code{GNUTLS_E_SUCCESS}  (0) is returned, otherwise a
16negative error value.
17
18@strong{Since:} 3.4.2
19@end deftypefun
20