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 - API function
7
9 #include <gnutls/x509.h>
10
11 int gnutls_x509_rdn_get_by_oid(const gnutls_datum_t * idn, const char *
12 oid, int indx, unsigned int raw_flag, void * buf, size_t * buf_size);
13
15 const gnutls_datum_t * idn
16 should contain a DER encoded RDN sequence
17
18 const char * oid
19 an Object Identifier
20
21 int indx In case multiple same OIDs exist in the RDN indicates which
22 to send. Use 0 for the first one.
23
24 unsigned int raw_flag
25 If non-zero then the raw DER data are returned.
26
27 void * buf a pointer to a structure to hold the peer's name
28
29 size_t * buf_size
30 holds the size of buf
31
33 This function will return the name of the given Object identifier, of
34 the RDN sequence. The name will be encoded using the rules from
35 RFC4514.
36
38 On success, GNUTLS_E_SUCCESS [22m(0) is returned, or GNUTLS_E_SHORT_MEM‐
39 ORY_BUFFER is returned and * buf_size is updated if the provided buffer
40 is not long enough, otherwise a negative error value.
41
43 Report bugs to <bugs@gnutls.org>.
44 Home page: http://www.gnutls.org
45
46
48 Copyright © 2001-2014 Free Software Foundation, Inc..
49 Copying and distribution of this file, with or without modification,
50 are permitted in any medium without royalty provided the copyright
51 notice and this notice are preserved.
52
54 The full documentation for gnutls is maintained as a Texinfo manual.
55 If the /usr/share/doc/gnutls/ directory does not contain the HTML form
56 visit
57
58 http://www.gnutls.org/manual/
59
60gnutls 3.3.29 gnutls_x509_rdn_get_by_oid(3)