| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
@deftypefun {int} {gnutls_x509_dn_import} (gnutls_x509_dn_t @var{dn}, const gnutls_datum_t * @var{data}) |
| 6 |
@var{dn}: the structure that will hold the imported DN |
| 7 |
|
| 8 |
@var{data}: should contain a DER encoded RDN sequence |
| 9 |
|
| 10 |
This function parses an RDN sequence and stores the result to a |
| 11 |
@code{gnutls_x509_dn_t} type. The data must have been initialized |
| 12 |
with @code{gnutls_x509_dn_init()} . You may use @code{gnutls_x509_dn_get_rdn_ava()} to |
| 13 |
decode the DN. |
| 14 |
|
| 15 |
@strong{Returns:} On success, @code{GNUTLS_E_SUCCESS} (0) is returned, otherwise a |
| 16 |
negative error value. |
| 17 |
|
| 18 |
@strong{Since:} 2.4.0 |
| 19 |
@end deftypefun |