1gnutls_x509_crt_get_issuer_dn_by_oid(g3n)utglnsutls_x509_crt_get_issuer_dn_by_oid(3)
2
3
4

NAME

6       gnutls_x509_crt_get_issuer_dn_by_oid  -  This function returns the Cer‐
7       tificate's issuer distinguished name
8

SYNOPSIS

10       #include <gnutls/x509.h>
11
12       int gnutls_x509_crt_get_issuer_dn_by_oid(gnutls_x509_crt_t cert,  const
13       char  *  oid,  int  indx,  unsigned  int raw_flag, void * buf, size_t *
14       sizeof_buf);
15

ARGUMENTS

17       gnutls_x509_crt_t cert
18                   should contain a gnutls_x509_crt_t structure
19
20       const char * oid
21                   holds an Object Identified in null terminated string
22
23       int indx    In case multiple same OIDs exist in the RDN, this specifies
24                   which to send. Use zero to get the first one.
25
26       unsigned int raw_flag
27                   If non zero returns the raw DER data of the DN part.
28
29       void * buf  a pointer to a structure to hold the name (may be null)
30
31       size_t * sizeof_buf
32                   initially holds the size of buf
33

DESCRIPTION

35       This  function  will  extract  the  part of the name of the Certificate
36       issuer specified by the given OID. The output, if the raw flag  is  not
37       used,  will  be  encoded as described in RFC2253. Thus a string that is
38       ASCII or UTF-8 encoded, depending on the certificate data.
39
40       Some helper macros with popular OIDs can be found in  gnutls/x509.h  If
41       raw  flag  is  zero, this function will only return known OIDs as text.
42       Other OIDs will be DER encoded, as described in RFC2253 -- in hex  for‐
43       mat with a 'using gnutls_x509_dn_oid_known().
44
45       If buf is null then only the size will be filled.
46
47       Returns GNUTLS_E_SHORT_MEMORY_BUFFER if the provided buffer is not long
48       enough, and in that case the  *sizeof_buf  will  be  updated  with  the
49       required size.  On success 0 is returned.
50

REPORTING BUGS

52       Report bugs to <bug-gnutls@gnu.org>.
53
55       Copyright © 2006 Free Software Foundation.
56       Permission  is  granted  to make and distribute verbatim copies of this
57       manual provided the copyright notice and  this  permission  notice  are
58       preserved on all copies.
59

SEE ALSO

61       The  full  documentation  for gnutls is maintained as a Texinfo manual.
62       If the info and gnutls programs are properly installed  at  your  site,
63       the command
64
65              info gnutls
66
67       should give you access to the complete manual.
68
69
70
71gnutls                               1.6g.n3utls_x509_crt_get_issuer_dn_by_oid(3)
Impressum