gnutls_x509_dn_import3
Api function
Usage
#include <gnutls/x509.h>
int gnutls_x509_dn_import(gnutls_x509_dn_t dn, const gnutls_datum_t * data);
Arguments
gnutls_x509_dn_t dn
|
the structure that will hold the imported DN |
|---|---|
const gnutls_datum_t * data
|
should contain a DER encoded RDN sequence |
Overview
This function parses an RDN sequence and stores the result to a gnutls_x509_dn_t type. The data must have been initialized with gnutls_x509_dn_init(). You may use gnutls_x509_dn_get_rdn_ava() to decode the DN.
Returns
On success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative error value.
Since
2.4.0
Releases
9 releases since Debian 5.0 (Lenny); the text changed 8 times.