1gnutls_x509_rdn_get_oid(3) gnutls gnutls_x509_rdn_get_oid(3)
2
3
4
6 gnutls_x509_rdn_get_oid - API function
7
9 #include <gnutls/x509.h>
10
11 int gnutls_x509_rdn_get_oid(const gnutls_datum_t * idn, int indx, void
12 * buf, size_t * buf_size);
13
15 const gnutls_datum_t * idn
16 should contain a DER encoded RDN sequence
17
18 int indx Indicates which OID to return. Use 0 for the first one.
19
20 void * buf a pointer to a structure to hold the peer's name OID
21
22 size_t * buf_size
23 holds the size of buf
24
26 This function will return the specified Object identifier, of the RDN
27 sequence.
28
30 On success, GNUTLS_E_SUCCESS [22m(0) is returned, or GNUTLS_E_SHORT_MEM‐
31 ORY_BUFFER is returned and * buf_size is updated if the provided buffer
32 is not long enough, otherwise a negative error value.
33
35 2.4.0
36
38 Report bugs to <bugs@gnutls.org>.
39 Home page: http://www.gnutls.org
40
41
43 Copyright © 2001-2014 Free Software Foundation, Inc..
44 Copying and distribution of this file, with or without modification,
45 are permitted in any medium without royalty provided the copyright
46 notice and this notice are preserved.
47
49 The full documentation for gnutls is maintained as a Texinfo manual.
50 If the /usr/share/doc/gnutls/ directory does not contain the HTML form
51 visit
52
53 http://www.gnutls.org/manual/
54
55gnutls 3.3.29 gnutls_x509_rdn_get_oid(3)