summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/x509/x509_vfy.c
diff options
context:
space:
mode:
authortb <>2023-04-25 18:28:05 +0000
committertb <>2023-04-25 18:28:05 +0000
commit1e19be2bbd27af0df9ea06c8c0a46f5ab687d976 (patch)
tree5e6300823f61fe1b218fefd7cfb03d499e067bcd /src/lib/libcrypto/x509/x509_vfy.c
parentcab021af4c7b73bac13f4b68c8b8360639242879 (diff)
downloadopenbsd-1e19be2bbd27af0df9ea06c8c0a46f5ab687d976.tar.gz
openbsd-1e19be2bbd27af0df9ea06c8c0a46f5ab687d976.tar.bz2
openbsd-1e19be2bbd27af0df9ea06c8c0a46f5ab687d976.zip
Move the policy tree code to internal-only
A few hooks remain in the legacy validator, which will soon be replaced with something better. The rest of the tentacles are now largely contained.
Diffstat (limited to 'src/lib/libcrypto/x509/x509_vfy.c')
-rw-r--r--src/lib/libcrypto/x509/x509_vfy.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/src/lib/libcrypto/x509/x509_vfy.c b/src/lib/libcrypto/x509/x509_vfy.c
index d54ba783e8..30118475d1 100644
--- a/src/lib/libcrypto/x509/x509_vfy.c
+++ b/src/lib/libcrypto/x509/x509_vfy.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: x509_vfy.c,v 1.113 2023/04/16 18:48:58 tb Exp $ */ 1/* $OpenBSD: x509_vfy.c,v 1.114 2023/04/25 18:28:05 tb Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -2601,20 +2601,6 @@ X509_STORE_CTX_set0_verified_chain(X509_STORE_CTX *ctx, STACK_OF(X509) *sk)
2601} 2601}
2602LCRYPTO_ALIAS(X509_STORE_CTX_set0_verified_chain); 2602LCRYPTO_ALIAS(X509_STORE_CTX_set0_verified_chain);
2603 2603
2604X509_POLICY_TREE *
2605X509_STORE_CTX_get0_policy_tree(X509_STORE_CTX *ctx)
2606{
2607 return ctx->tree;
2608}
2609LCRYPTO_ALIAS(X509_STORE_CTX_get0_policy_tree);
2610
2611int
2612X509_STORE_CTX_get_explicit_policy(X509_STORE_CTX *ctx)
2613{
2614 return ctx->explicit_policy;
2615}
2616LCRYPTO_ALIAS(X509_STORE_CTX_get_explicit_policy);
2617
2618int 2604int
2619X509_STORE_CTX_get_num_untrusted(X509_STORE_CTX *ctx) 2605X509_STORE_CTX_get_num_untrusted(X509_STORE_CTX *ctx)
2620{ 2606{