diff options
Diffstat (limited to 'src/lib/libtls/tls.c')
-rw-r--r-- | src/lib/libtls/tls.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/libtls/tls.c b/src/lib/libtls/tls.c index 236ed9185b..ac9262a4fc 100644 --- a/src/lib/libtls/tls.c +++ b/src/lib/libtls/tls.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: tls.c,v 1.31 2015/09/14 12:29:16 jsing Exp $ */ | 1 | /* $OpenBSD: tls.c,v 1.32 2015/09/14 16:16:38 jsing Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2014 Joel Sing <jsing@openbsd.org> |
4 | * | 4 | * |
@@ -257,6 +257,11 @@ tls_configure_ssl(struct tls *ctx) | |||
257 | } | 257 | } |
258 | } | 258 | } |
259 | 259 | ||
260 | if (ctx->config->verify_time == 0) { | ||
261 | X509_VERIFY_PARAM_set_flags(ctx->ssl_ctx->param, | ||
262 | X509_V_FLAG_NO_CHECK_TIME); | ||
263 | } | ||
264 | |||
260 | return (0); | 265 | return (0); |
261 | 266 | ||
262 | err: | 267 | err: |