From 2cba445c1c41ec54d86a111a88edbbdb237d91fa Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Tue, 28 Jul 2020 00:49:10 -0400 Subject: tls: Use SSL_CTX_get0_param and X509_STORE_get0_param --- tls.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tls.c b/tls.c index f4d9cf0..2a42510 100644 --- a/tls.c +++ b/tls.c @@ -445,7 +445,7 @@ tls_configure_ssl(struct tls *ctx, SSL_CTX *ssl_ctx) } if (ctx->config->verify_time == 0) { - X509_VERIFY_PARAM_set_flags(ssl_ctx->param, + X509_VERIFY_PARAM_set_flags(SSL_CTX_get0_param(ssl_ctx), X509_V_FLAG_NO_CHECK_TIME); } @@ -555,7 +555,7 @@ tls_configure_ssl_verify(struct tls *ctx, SSL_CTX *ssl_ctx, int verify) } xi->crl = NULL; } - X509_VERIFY_PARAM_set_flags(store->param, + X509_VERIFY_PARAM_set_flags(X509_STORE_get0_param(store), X509_V_FLAG_CRL_CHECK | X509_V_FLAG_CRL_CHECK_ALL); } -- cgit 1.4.1