summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2021-10-21 14:31:22 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2021-10-21 14:31:22 +0000
commitb4247e44ce61debbff5bfb96a4a020301f8992e2 (patch)
tree14afb6996c86cb81c3660e62481ae21a6aa55526
parent1cb498e69fc5aab6f03a9f4f5b50713f353a113b (diff)
Switch from X509_VERIFY_PARAM_set_flags() to X509_STORE_set_flags().
This reduces the number of reacharounds into libcrypto internals. ok jsing
-rw-r--r--lib/libtls/tls.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libtls/tls.c b/lib/libtls/tls.c
index 650610a5159..608f0a3acd0 100644
--- a/lib/libtls/tls.c
+++ b/lib/libtls/tls.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tls.c,v 1.91 2021/10/21 08:31:51 tb Exp $ */
+/* $OpenBSD: tls.c,v 1.92 2021/10/21 14:31:21 tb Exp $ */
/*
* Copyright (c) 2014 Joel Sing <jsing@openbsd.org>
*
@@ -631,7 +631,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_STORE_set_flags(store,
X509_V_FLAG_CRL_CHECK | X509_V_FLAG_CRL_CHECK_ALL);
}