| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
@deftypefun {unsigned} {gnutls_ocsp_status_request_is_checked} (gnutls_session_t @var{session}, unsigned int @var{flags}) |
| 6 |
@var{session}: is a gnutls session |
| 7 |
|
| 8 |
@var{flags}: should be zero or @code{GNUTLS_OCSP_SR_IS_AVAIL} |
| 9 |
|
| 10 |
When flags are zero this function returns non-zero if a valid OCSP status |
| 11 |
response was included in the TLS handshake. That is, an OCSP status response |
| 12 |
which is not too old, superseded or marks the certificate as revoked. |
| 13 |
It returns zero otherwise. |
| 14 |
|
| 15 |
When the flag @code{GNUTLS_OCSP_SR_IS_AVAIL} is specified, the function |
| 16 |
returns non-zero if an OCSP status response was included in the handshake |
| 17 |
even if it was invalid. Otherwise, if no OCSP status response was included, |
| 18 |
it returns zero. The @code{GNUTLS_OCSP_SR_IS_AVAIL} flag was introduced in GnuTLS 3.4.0. |
| 19 |
|
| 20 |
This is a helper function when needing to decide whether to perform an |
| 21 |
explicit OCSP validity check on the peer's certificate. Should be called after |
| 22 |
any of gnutls_certificate_verify_peers*() are called. |
| 23 |
|
| 24 |
This function is always usable on client side, but on server side only under |
| 25 |
TLS 1.3, which is the first version of TLS that allows clients to send OCSP |
| 26 |
responses. |
| 27 |
|
| 28 |
@strong{Returns:} Non-zero if the response was valid, or a zero if it wasn't sent, |
| 29 |
or sent and was invalid. |
| 30 |
|
| 31 |
@strong{Since:} 3.1.4 |
| 32 |
@end deftypefun |