Blame doc/functions/gnutls_x509_dn_get_rdn_ava

Packit Service 4684c1
Packit Service 4684c1
Packit Service 4684c1
Packit Service 4684c1
Packit Service 4684c1
@deftypefun {int} {gnutls_x509_dn_get_rdn_ava} (gnutls_x509_dn_t @var{dn}, int @var{irdn}, int @var{iava}, gnutls_x509_ava_st * @var{ava})
Packit Service 4684c1
@var{dn}: a pointer to DN
Packit Service 4684c1
Packit Service 4684c1
@var{irdn}: index of RDN
Packit Service 4684c1
Packit Service 4684c1
@var{iava}: index of AVA.
Packit Service 4684c1
Packit Service 4684c1
@var{ava}: Pointer to structure which will hold output information.
Packit Service 4684c1
Packit Service 4684c1
Get pointers to data within the DN. The format of the  @code{ava} structure
Packit Service 4684c1
is shown below.
Packit Service 4684c1
Packit Service 4684c1
struct gnutls_x509_ava_st @{
Packit Service 4684c1
gnutls_datum_t oid;
Packit Service 4684c1
gnutls_datum_t value;
Packit Service 4684c1
unsigned long value_tag;
Packit Service 4684c1
@};
Packit Service 4684c1
Packit Service 4684c1
The X.509 distinguished name is a sequence of sequences of strings
Packit Service 4684c1
and this is what the  @code{irdn} and  @code{iava} indexes model.
Packit Service 4684c1
Packit Service 4684c1
Note that  @code{ava} will contain pointers into the  @code{dn} structure which
Packit Service 4684c1
in turns points to the original certificate. Thus you should not
Packit Service 4684c1
modify any data or deallocate any of those.
Packit Service 4684c1
Packit Service 4684c1
This is a low-level function that requires the caller to do the
Packit Service 4684c1
value conversions when necessary (e.g. from UCS-2).
Packit Service 4684c1
Packit Service 4684c1
@strong{Returns:} Returns 0 on success, or an error code.
Packit Service 4684c1
@end deftypefun