1gnutls_x509_crt_get_extension_info(3)gnutlsgnutls_x509_crt_get_extension_info(3)
2
3
4

NAME

6       gnutls_x509_crt_get_extension_info - API function
7

SYNOPSIS

9       #include <gnutls/x509.h>
10
11       int   gnutls_x509_crt_get_extension_info(gnutls_x509_crt_t   cert,  int
12       indx, void * oid, size_t * oid_size, unsigned int * critical);
13

ARGUMENTS

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
22
23       size_t * oid_size
24                   initially  holds the maximum size of  oid , on return holds
25                   actual size of  oid .
26
27       unsigned int * critical
28                   output variable with critical flag, may be NULL.
29

DESCRIPTION

31       This function will return the requested extension OID in  the  certifi‐
32       cate,  and  the critical flag for it.  The extension OID will be stored
33       as a string in the  provided  buffer.   Use  gnutls_x509_crt_get_exten‐
34       sion() to extract the data.
35
36       If the buffer provided is not long enough to hold the output, then
37        oid_size is updated and GNUTLS_E_SHORT_MEMORY_BUFFER will be returned.
38       The  oid returned will be null terminated, although
39        oid_size will not account for the trailing null.
40

RETURNS

42       On success, GNUTLS_E_SUCCESS (0)  is  returned,  otherwise  a  negative
43       error  code is returned.  If you have reached the last extension avail‐
44       able GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE will be returned.
45

REPORTING BUGS

47       Report bugs to <bugs@gnutls.org>.
48       Home page: http://www.gnutls.org
49
50
52       Copyright © 2001-2014 Free Software Foundation, Inc..
53       Copying and distribution of this file, with  or  without  modification,
54       are  permitted  in  any  medium  without royalty provided the copyright
55       notice and this notice are preserved.
56

SEE ALSO

58       The full documentation for gnutls is maintained as  a  Texinfo  manual.
59       If  the /usr/share/doc/gnutls/ directory does not contain the HTML form
60       visit
61
62       http://www.gnutls.org/manual/
63
64gnutls                              3.3.29gnutls_x509_crt_get_extension_info(3)
Impressum