Debian Codegraph @

doc/functions/gnutls_ocsp_status_request_get2

raw
1
2
3
4
5 @deftypefun {int} {gnutls_ocsp_status_request_get2} (gnutls_session_t @var{session}, unsigned @var{idx}, gnutls_datum_t * @var{response})
6 @var{session}: is a @code{gnutls_session_t} type.
7
8 @var{idx}: the index of peer's certificate
9
10 @var{response}: a @code{gnutls_datum_t} with DER encoded OCSP response
11
12 This function returns the OCSP status response received
13 from the TLS server for the certificate index provided.
14 The index corresponds to certificates as returned by
15 gnutls_certificate_get_peers. When index is zero this
16 function operates identically to @code{gnutls_ocsp_status_request_get()} .
17
18 The returned @code{response} should be treated as
19 constant. If no OCSP response is available for the
20 given index then @code{GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE}
21 is returned.
22
23 @strong{Returns:} On success, @code{GNUTLS_E_SUCCESS} (0) is returned,
24 otherwise a negative error code is returned.
25
26 @strong{Since:} 3.6.3
27 @end deftypefun