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, unsigned indx, unsigned int raw_flag, void * buf, size_t *
13 buf_size);
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 unsigned indx
23 In case multiple same OIDs exist in the RDN indicates which
24 to send. Use 0 for the first one.
25
26 unsigned int raw_flag
27 If non-zero then the raw DER data are returned.
28
29 void * buf a pointer to a structure to hold the peer's name
30
31 size_t * buf_size
32 holds the size of buf
33
35 This function will return the name of the given Object identifier, of
36 the RDN sequence. The name will be encoded using the rules from
37 RFC4514.
38
40 On success, GNUTLS_E_SUCCESS (0) is returned, or GNUTLS_E_SHORT_MEM‐
41 ORY_BUFFER is returned and * buf_size is updated if the provided buffer
42 is not long enough, otherwise a negative error value.
43
45 Report bugs to <bugs@gnutls.org>.
46 Home page: https://www.gnutls.org
47
48
50 Copyright © 2001-2023 Free Software Foundation, Inc., and others.
51 Copying and distribution of this file, with or without modification,
52 are permitted in any medium without royalty provided the copyright no‐
53 tice and this notice are preserved.
54
56 The full documentation for gnutls is maintained as a Texinfo manual.
57 If the /usr/share/doc/gnutls/ directory does not contain the HTML form
58 visit
59
60 https://www.gnutls.org/manual/
61
62gnutls 3.8.2 gnutls_x509_rdn_get_by_oid(3)