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_lib.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/lib/libcrypto/x509/pcy_lib.c') diff --git a/src/lib/libcrypto/x509/pcy_lib.c b/src/lib/libcrypto/x509/pcy_lib.c index e4d3fd9fa8..0c8978bd70 100644 --- a/src/lib/libcrypto/x509/pcy_lib.c +++ b/src/lib/libcrypto/x509/pcy_lib.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pcy_lib.c,v 1.3 2023/02/16 08:38:17 tb Exp $ */ +/* $OpenBSD: pcy_lib.c,v 1.4 2023/04/26 19:11:33 beck Exp $ */ /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL * project 2004. */ @@ -59,6 +59,8 @@ #include #include +#ifndef LIBRESSL_HAS_POLICY_DAG + #include "pcy_int.h" /* accessor functions */ @@ -164,3 +166,5 @@ X509_policy_node_get0_parent(const X509_POLICY_NODE *node) return node->parent; } LCRYPTO_ALIAS(X509_policy_node_get0_parent); + +#endif /* LIBRESSL_HAS_POLICY_DAG */ -- cgit v1.2.3-55-g6feb