1 .\" DO NOT MODIFY THIS FILE! It was generated by gdoc.
2 .TH "gnutls_x509_crt_get_extension_info" 3 "2.12.6.1" "gnutls" "gnutls"
4 gnutls_x509_crt_get_extension_info \- API function
6 .B #include <gnutls/x509.h>
8 .BI "int gnutls_x509_crt_get_extension_info(gnutls_x509_crt_t " cert ", int " indx ", void * " oid ", size_t * " sizeof_oid ", int * " critical ");"
10 .IP "gnutls_x509_crt_t cert" 12
11 should contain a \fBgnutls_x509_crt_t\fP structure
13 Specifies which extension OID to send. Use zero to get the first one.
15 a pointer to a structure to hold the OID
16 .IP "size_t * sizeof_oid" 12
17 initially holds the maximum size of \fIoid\fP, on return
18 holds actual size of \fIoid\fP.
19 .IP "int * critical" 12
20 output variable with critical flag, may be NULL.
22 This function will return the requested extension OID in the
23 certificate, and the critical flag for it. The extension OID will
24 be stored as a string in the provided buffer. Use
25 \fBgnutls_x509_crt_get_extension_data()\fP to extract the data.
27 If the buffer provided is not long enough to hold the output, then
28 *\fIsizeof_oid\fP is updated and \fBGNUTLS_E_SHORT_MEMORY_BUFFER\fP will be
31 On success, \fBGNUTLS_E_SUCCESS\fP (zero) is returned,
32 otherwise an error code is returned. If you have reached the
33 last extension available \fBGNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE\fP
36 Report bugs to <bug-gnutls@gnu.org>.
37 GnuTLS home page: http://www.gnu.org/software/gnutls/
38 General help using GNU software: http://www.gnu.org/gethelp/
40 Copyright \(co 2008 Free Software Foundation.
42 Copying and distribution of this file, with or without modification,
43 are permitted in any medium without royalty provided the copyright
44 notice and this notice are preserved.
46 The full documentation for
48 is maintained as a Texinfo manual. If the
52 programs are properly installed at your site, the command
56 should give you access to the complete manual.