1gnutls_x509_crt_get_extension_oid(3)gnutlsgnutls_x509_crt_get_extension_oid(3)
2
3
4
6 gnutls_x509_crt_get_extension_oid - API function
7
9 #include <gnutls/x509.h>
10
11 int gnutls_x509_crt_get_extension_oid(gnutls_x509_crt_t cert, int indx,
12 void * oid, size_t * oid_size);
13
15 gnutls_x509_crt_t cert
16 should contain a gnutls_x509_crt_t structure
17
18 int indx Specifies which extension OID to send. Use (0) to get the
19 first one.
20
21 void * oid a pointer to a structure to hold the OID (may be null)
22
23 size_t * oid_size
24 initially holds the size of oid
25
27 This function will return the requested extension OID in the certifi‐
28 cate. The extension OID will be stored as a string in the provided
29 buffer.
30
31 The oid returned will be null terminated, although oid_size will not
32 account for the trailing null.
33
35 On success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative
36 error code is returned. If you have reached the last extension avail‐
37 able GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE will be returned.
38
40 Report bugs to <bugs@gnutls.org>.
41 Home page: http://www.gnutls.org
42
43
45 Copyright © 2001-2014 Free Software Foundation, Inc..
46 Copying and distribution of this file, with or without modification,
47 are permitted in any medium without royalty provided the copyright
48 notice and this notice are preserved.
49
51 The full documentation for gnutls is maintained as a Texinfo manual.
52 If the /usr/share/doc/gnutls/ directory does not contain the HTML form
53 visit
54
55 http://www.gnutls.org/manual/
56
57gnutls 3.3.29gnutls_x509_crt_get_extension_oid(3)