summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/libtls/tls_init.38
-rw-r--r--src/lib/libtls/tls_ocsp.c5
2 files changed, 8 insertions, 5 deletions
diff --git a/src/lib/libtls/tls_init.3 b/src/lib/libtls/tls_init.3
index 06634efa6f..d0b6292b4a 100644
--- a/src/lib/libtls/tls_init.3
+++ b/src/lib/libtls/tls_init.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: tls_init.3,v 1.75 2016/11/02 18:26:14 jmc Exp $ 1.\" $OpenBSD: tls_init.3,v 1.76 2016/11/03 12:54:16 beck Exp $
2.\" 2.\"
3.\" Copyright (c) 2014 Ted Unangst <tedu@openbsd.org> 3.\" Copyright (c) 2014 Ted Unangst <tedu@openbsd.org>
4.\" 4.\"
@@ -14,7 +14,7 @@
14.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 14.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16.\" 16.\"
17.Dd $Mdocdate: November 2 2016 $ 17.Dd $Mdocdate: November 3 2016 $
18.Dt TLS_INIT 3 18.Dt TLS_INIT 3
19.Os 19.Os
20.Sh NAME 20.Sh NAME
@@ -445,7 +445,7 @@ the default.
445clears any secret keys from memory. 445clears any secret keys from memory.
446.It 446.It
447.Fn tls_config_insecure_noverifycert 447.Fn tls_config_insecure_noverifycert
448disables certificate verification. 448disables certificate verification and OCSP validation.
449Be extremely careful when using this option. 449Be extremely careful when using this option.
450.It 450.It
451.Fn tls_config_insecure_noverifyname 451.Fn tls_config_insecure_noverifyname
@@ -453,7 +453,7 @@ disables server name verification (client only).
453Be careful when using this option. 453Be careful when using this option.
454.It 454.It
455.Fn tls_config_insecure_noverifytime 455.Fn tls_config_insecure_noverifytime
456disables validity checking of certificates. 456disables validity checking of certificates and OCSP validation.
457Be careful when using this option. 457Be careful when using this option.
458.It 458.It
459.Fn tls_config_verify 459.Fn tls_config_verify
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}