summaryrefslogtreecommitdiff
path: root/src/lib/libtls/tls_ocsp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libtls/tls_ocsp.c')
-rw-r--r--src/lib/libtls/tls_ocsp.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/libtls/tls_ocsp.c b/src/lib/libtls/tls_ocsp.c
index a30e363e6e..aa085bd245 100644
--- a/src/lib/libtls/tls_ocsp.c
+++ b/src/lib/libtls/tls_ocsp.c
@@ -309,8 +309,11 @@ tls_ocsp_verify_cb(SSL *ssl, void *arg)
309 309
310 tls_ocsp_ctx_free(ctx->ocsp_ctx); 310 tls_ocsp_ctx_free(ctx->ocsp_ctx);
311 ctx->ocsp_ctx = tls_ocsp_setup_from_peer(ctx); 311 ctx->ocsp_ctx = tls_ocsp_setup_from_peer(ctx);
312 if (ctx->ocsp_ctx != NULL) 312 if (ctx->ocsp_ctx != NULL) {
313 if (ctx->config->verify_cert == 0 || ctx->config->verify_time == 0)
314 return 1;
313 res = tls_ocsp_process_response_internal(ctx, raw, size); 315 res = tls_ocsp_process_response_internal(ctx, raw, size);
316 }
314 317
315 return (res == 0) ? 1 : 0; 318 return (res == 0) ? 1 : 0;
316} 319}