From d2576ff178ab71d730ed11f6d244e0035b9203c2 Mon Sep 17 00:00:00 2001 From: beck <> Date: Wed, 26 Apr 2023 19:11:33 +0000 Subject: Make the new policy code in x509_policy.c to be selectable at compile time. The old policy codes remains the default, with the new policy code selectable by defining LIBRESSL_HAS_POLICY_DAG. ok tb@ jsing@ --- src/lib/libcrypto/x509/pcy_node.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/lib/libcrypto/x509/pcy_node.c') diff --git a/src/lib/libcrypto/x509/pcy_node.c b/src/lib/libcrypto/x509/pcy_node.c index 3a0f230bb3..1daf7e2aff 100644 --- a/src/lib/libcrypto/x509/pcy_node.c +++ b/src/lib/libcrypto/x509/pcy_node.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pcy_node.c,v 1.1 2020/06/04 15:19:31 jsing Exp $ */ +/* $OpenBSD: pcy_node.c,v 1.2 2023/04/26 19:11:33 beck Exp $ */ /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL * project 2004. */ @@ -60,6 +60,8 @@ #include #include +#ifndef LIBRESSL_HAS_POLICY_DAG + #include "pcy_int.h" static int @@ -198,3 +200,5 @@ policy_node_match(const X509_POLICY_LEVEL *lvl, const X509_POLICY_NODE *node, } return 0; } + +#endif /* LIBRESSL_HAS_POLICY_DAG */ -- cgit v1.2.3-55-g6feb