Debian Codegraph @

doc/functions/gnutls_ocsp_req_get_extension

raw
1
2
3
4
5 @deftypefun {int} {gnutls_ocsp_req_get_extension} (gnutls_ocsp_req_const_t @var{req}, unsigned @var{indx}, gnutls_datum_t * @var{oid}, unsigned int * @var{critical}, gnutls_datum_t * @var{data})
6 @var{req}: should contain a @code{gnutls_ocsp_req_t} type
7
8 @var{indx}: Specifies which extension OID to get. Use (0) to get the first one.
9
10 @var{oid}: will hold newly allocated buffer with OID of extension, may be NULL
11
12 @var{critical}: output variable with critical flag, may be NULL.
13
14 @var{data}: will hold newly allocated buffer with extension data, may be NULL
15
16 This function will return all information about the requested
17 extension in the OCSP request. The information returned is the
18 OID, the critical flag, and the data itself. The extension OID
19 will be stored as a string. Any of @code{oid} , @code{critical} , and @code{data} may
20 be NULL which means that the caller is not interested in getting
21 that information back.
22
23 The caller needs to deallocate memory by calling @code{gnutls_free()} on
24 @code{oid} ->data and @code{data} ->data.
25
26 Since 3.7.0 @code{oid} ->size does not account for the terminating null byte.
27
28 @strong{Returns:} On success, @code{GNUTLS_E_SUCCESS} (0) is returned, otherwise a
29 negative error code is returned. If you have reached the last
30 extension available @code{GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE} will
31 be returned.
32 @end deftypefun