summaryrefslogtreecommitdiff
path: root/lib/ext/status_request.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ext/status_request.c')
-rw-r--r--lib/ext/status_request.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/ext/status_request.c b/lib/ext/status_request.c
index 1e892863cc..0c6bfaf47c 100644
--- a/lib/ext/status_request.c
+++ b/lib/ext/status_request.c
@@ -233,6 +233,9 @@ _gnutls_status_request_send_params(gnutls_session_t session,
return 0;
if (session->security_parameters.entity == GNUTLS_CLIENT) {
+ if (session->internals.flags & GNUTLS_NO_STATUS_REQUEST)
+ return 0;
+
ret = _gnutls_hello_ext_get_priv(session,
GNUTLS_EXTENSION_STATUS_REQUEST,
&epriv);
@@ -317,6 +320,10 @@ gnutls_ocsp_status_request_enable_client(gnutls_session_t session,
GNUTLS_EXTENSION_STATUS_REQUEST,
epriv);
+ session->internals.flags &= ~GNUTLS_NO_STATUS_REQUEST;
+ if (session->internals.priorities)
+ session->internals.priorities->no_status_request = 0;
+
return 0;
}