1gnutls_x509_crt_get_issuer_dn_by_oid(g3n)utglnsutls_x509_crt_get_issuer_dn_by_oid(3)
2
3
4
6 gnutls_x509_crt_get_issuer_dn_by_oid - API function
7
9 #include <gnutls/x509.h>
10
11 int gnutls_x509_crt_get_issuer_dn_by_oid(gnutls_x509_crt_t cert, const
12 char * oid, int indx, unsigned int raw_flag, void * buf, size_t *
13 buf_size);
14
16 gnutls_x509_crt_t cert
17 should contain a gnutls_x509_crt_t structure
18
19 const char * oid
20 holds an Object Identified in null terminated string
21
22 int indx In case multiple same OIDs exist in the RDN, this specifies
23 which to send. Use (0) to get the first one.
24
25 unsigned int raw_flag
26 If non-zero returns the raw DER data of the DN part.
27
28 void * buf a pointer to a structure to hold the name (may be null)
29
30 size_t * buf_size
31 initially holds the size of buf
32
34 This function will extract the part of the name of the Certificate
35 issuer specified by the given OID. The output, if the raw flag is not
36 used, will be encoded as described in RFC4514. Thus a string that is
37 ASCII or UTF-8 encoded, depending on the certificate data.
38
39 Some helper macros with popular OIDs can be found in gnutls/x509.h If
40 raw flag is (0), this function will only return known OIDs as text.
41 Other OIDs will be DER encoded, as described in RFC4514 -- in hex for‐
42 mat with a '#' prefix. You can check about known OIDs using
43 gnutls_x509_dn_oid_known().
44
45 If buf is null then only the size will be filled. If the raw_flag is
46 not specified the output is always null terminated, although the
47 buf_size will not include the null character.
48
50 GNUTLS_E_SHORT_MEMORY_BUFFER if the provided buffer is not long enough,
51 and in that case the buf_size will be updated with the required size.
52 GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE if there are no data in the cur‐
53 rent index. On success 0 is returned.
54
56 Report bugs to <bugs@gnutls.org>.
57 Home page: http://www.gnutls.org
58
59
61 Copyright © 2001-2014 Free Software Foundation, Inc..
62 Copying and distribution of this file, with or without modification,
63 are permitted in any medium without royalty provided the copyright
64 notice and this notice are preserved.
65
67 The full documentation for gnutls is maintained as a Texinfo manual.
68 If the /usr/share/doc/gnutls/ directory does not contain the HTML form
69 visit
70
71 http://www.gnutls.org/manual/
72
73gnutls 3.3.g2n9utls_x509_crt_get_issuer_dn_by_oid(3)