1gnutls_ocsp_req_get_extension(3)    gnutls    gnutls_ocsp_req_get_extension(3)
2
3
4

NAME

6       gnutls_ocsp_req_get_extension - API function
7

SYNOPSIS

9       #include <gnutls/ocsp.h>
10
11       int gnutls_ocsp_req_get_extension(gnutls_ocsp_req_const_t req, unsigned
12       indx, gnutls_datum_t * oid, unsigned int * critical,  gnutls_datum_t  *
13       data);
14

ARGUMENTS

16       gnutls_ocsp_req_const_t req
17                   should contain a gnutls_ocsp_req_t type
18
19       unsigned indx
20                   Specifies  which  extension  OID to get. Use (0) to get the
21                   first one.
22
23       gnutls_datum_t * oid
24                   will hold newly allocated buffer with OID of extension, may
25                   be NULL
26
27       unsigned int * critical
28                   output variable with critical flag, may be NULL.
29
30       gnutls_datum_t * data
31                   will  hold  newly allocated buffer with extension data, may
32                   be NULL
33

DESCRIPTION

35       This function will return all information about the requested extension
36       in the OCSP request.  The information returned is the OID, the critical
37       flag, and the data itself.  The extension  OID  will  be  stored  as  a
38       string.   Any  of   oid ,  critical , and  data may be NULL which means
39       that the caller is not interested in getting that information back.
40
41       The caller needs to deallocate memory by calling gnutls_free() on
42        oid ->data and  data ->data.
43
44       Since 3.7.0  oid ->size does not account for the terminating null byte.
45

RETURNS

47       On success, GNUTLS_E_SUCCESS (0) is returned, otherwise a negative  er‐
48       ror code is returned.  If you have reached the last extension available
49       GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE will be returned.
50

REPORTING BUGS

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

SEE ALSO

63       The full documentation for gnutls is maintained as  a  Texinfo  manual.
64       If  the /usr/share/doc/gnutls/ directory does not contain the HTML form
65       visit
66
67       https://www.gnutls.org/manual/
68
69gnutls                               3.8.2    gnutls_ocsp_req_get_extension(3)
Impressum