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, unsigned
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 type
17
18       unsigned indx
19                   Specifies which extension OID to send. Use (0) to  get  the
20                   first one.
21
22       void * oid  a pointer to a structure to hold the OID
23
24       size_t * oid_size
25                   initially  holds the maximum size of  oid , on return holds
26                   actual size of  oid .
27
28       unsigned int * critical
29                   output variable with critical flag, may be NULL.
30

DESCRIPTION

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

RETURNS

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

REPORTING BUGS

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

SEE ALSO

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