1gnutls_ocsp_status_request_is_checkedg(n3ug)tnlustls_ocsp_status_request_is_checked(3)
2
3
4

NAME

6       gnutls_ocsp_status_request_is_checked - API function
7

SYNOPSIS

9       #include <gnutls/gnutls.h>
10
11       unsigned   gnutls_ocsp_status_request_is_checked(gnutls_session_t  ses‐
12       sion, unsigned int flags);
13

ARGUMENTS

15       gnutls_session_t session
16                   is a gnutls session
17
18       unsigned int flags
19                   should be zero or GNUTLS_OCSP_SR_IS_AVAIL
20

DESCRIPTION

22       When flags are zero this function returns non-zero if a valid OCSP sta‐
23       tus response was included in the TLS handshake. That is, an OCSP status
24       response which is not too old, superseded or marks the  certificate  as
25       revoked.  It returns zero otherwise.
26
27       When  the  flag  GNUTLS_OCSP_SR_IS_AVAIL is specified, the function re‐
28       turns non-zero if an OCSP status response was included in the handshake
29       even  if  it was invalid. Otherwise, if no OCSP status response was in‐
30       cluded, it returns zero. The GNUTLS_OCSP_SR_IS_AVAIL  flag  was  intro‐
31       duced in GnuTLS 3.4.0.
32
33       This  is a helper function when needing to decide whether to perform an
34       explicit OCSP validity check  on  the  peer's  certificate.  Should  be
35       called after any of gnutls_certificate_verify_peers*() are called.
36
37       This  function is always usable on client side, but on server side only
38       under  TLS  1.3,  which  is  the  first  version  of  TLS  that  allows
39       cliend-side OCSP responses.
40

RETURNS

42       Non-zero  if  the  response  was valid, or a zero if it wasn't sent, or
43       sent and was invalid.
44

SINCE

46       3.1.4
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 no‐
57       tice 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.g7n.u6tls_ocsp_status_request_is_checked(3)
Impressum