1gnutls_x509_crt_get_extension_by_oid2g(n3ug)tnlustls_x509_crt_get_extension_by_oid2(3)
2
3
4
6 gnutls_x509_crt_get_extension_by_oid2 - API function
7
9 #include <gnutls/x509.h>
10
11 int gnutls_x509_crt_get_extension_by_oid2(gnutls_x509_crt_t cert, const
12 char * oid, int indx, gnutls_datum_t * output, unsigned int * criti‐
13 cal);
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 extensions, this
23 specifies which to send. Use (0) to get the first one.
24
25 gnutls_datum_t * output
26 will hold the allocated extension data
27
28 unsigned int * critical
29 will be non-zero if the extension is marked as critical
30
32 This function will return the extension specified by the OID in the
33 certificate. The extensions will be returned as binary data DER
34 encoded, in the provided buffer.
35
37 On success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative
38 error code is returned. If the certificate does not contain the speci‐
39 fied extension GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE will be returned.
40
42 3.3.8
43
45 Report bugs to <bugs@gnutls.org>.
46 Home page: http://www.gnutls.org
47
48
50 Copyright © 2001-2014 Free Software Foundation, Inc..
51 Copying and distribution of this file, with or without modification,
52 are permitted in any medium without royalty provided the copyright
53 notice 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 http://www.gnutls.org/manual/
61
62gnutls 3.3g.n2u9tls_x509_crt_get_extension_by_oid2(3)