about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-07-28 00:49:10 -0400
committerJune McEnroe <june@causal.agency>2020-07-31 12:12:53 -0400
commit2cba445c1c41ec54d86a111a88edbbdb237d91fa (patch)
treecaa07b7e37ac7c7a6d768af8102680b912d50a5d
parenttls_server: Remove SSL_OP_NO_CLIENT_RENEGOTIATION (diff)
downloadlibretls-2cba445c1c41ec54d86a111a88edbbdb237d91fa.tar.gz
libretls-2cba445c1c41ec54d86a111a88edbbdb237d91fa.zip
tls: Use SSL_CTX_get0_param and X509_STORE_get0_param
-rw-r--r--tls.c4
1 files 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);
 	}