1gnutls_x509_rdn_get_by_oid(3) gnutls gnutls_x509_rdn_get_by_oid(3)
2
3
4
6 gnutls_x509_rdn_get_by_oid - This function parses an RDN sequence and
7 returns a string
8
10 #include <gnutls/x509.h>
11
12 int gnutls_x509_rdn_get_by_oid(const gnutls_datum_t * idn, const char *
13 oid, int indx, unsigned int raw_flag, void * buf, size_t * sizeof_buf);
14
16 const gnutls_datum_t * idn
17 should contain a DER encoded RDN sequence
18
19 const char * oid
20 an Object Identifier
21
22 int indx In case multiple same OIDs exist in the RDN indicates which
23 to send. Use 0 for the first one.
24
25 unsigned int raw_flag
26 If non zero then the raw DER data are returned.
27
28 void * buf a pointer to a structure to hold the peer's name
29
30 size_t * sizeof_buf
31 holds the size of buf
32
34 This function will return the name of the given Object identifier, of
35 the RDN sequence. The name will be encoded using the rules from
36 RFC2253.
37
38 Returns GNUTLS_E_SHORT_MEMORY_BUFFER and updates *sizeof_buf if the
39 provided buffer is not long enough, and 0 on success.
40
42 Report bugs to <bug-gnutls@gnu.org>.
43
45 Copyright © 2006 Free Software Foundation.
46 Permission is granted to make and distribute verbatim copies of this
47 manual provided the copyright notice and this permission notice are
48 preserved on all copies.
49
51 The full documentation for gnutls is maintained as a Texinfo manual.
52 If the info and gnutls programs are properly installed at your site,
53 the command
54
55 info gnutls
56
57 should give you access to the complete manual.
58
59
60
61gnutls 1.6.3 gnutls_x509_rdn_get_by_oid(3)