File: gnutls_x509_dn_get_rdn_ava

package info (click to toggle)
gnutls28 3.8.10-2
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 81,572 kB
  • sloc: ansic: 390,000; asm: 117,804; sh: 18,712; makefile: 6,754; yacc: 1,858; python: 1,399; cpp: 1,243; perl: 995; sed: 16
file content (34 lines) | stat: -rw-r--r-- 1,001 bytes parent folder | download | duplicates (13)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34




@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})
@var{dn}: a pointer to DN

@var{irdn}: index of RDN

@var{iava}: index of AVA.

@var{ava}: Pointer to structure which will hold output information.

Get pointers to data within the DN. The format of the  @code{ava} structure
is shown below.

struct gnutls_x509_ava_st @{
gnutls_datum_t oid;
gnutls_datum_t value;
unsigned long value_tag;
@};

The X.509 distinguished name is a sequence of sequences of strings
and this is what the  @code{irdn} and  @code{iava} indexes model.

Note that  @code{ava} will contain pointers into the  @code{dn} structure which
in turns points to the original certificate. Thus you should not
modify any data or deallocate any of those.

This is a low-level function that requires the caller to do the
value conversions when necessary (e.g. from UCS-2).

@strong{Returns:} Returns 0 on success, or an error code.
@end deftypefun