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_map.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/lib/libcrypto/x509/pcy_map.c') diff --git a/src/lib/libcrypto/x509/pcy_map.c b/src/lib/libcrypto/x509/pcy_map.c index fe21ba14d1..ffbc6f75f0 100644 --- a/src/lib/libcrypto/x509/pcy_map.c +++ b/src/lib/libcrypto/x509/pcy_map.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pcy_map.c,v 1.3 2022/11/26 16:08:54 tb Exp $ */ +/* $OpenBSD: pcy_map.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" #include "x509_local.h" @@ -125,3 +127,5 @@ bad_mapping: sk_POLICY_MAPPING_pop_free(maps, POLICY_MAPPING_free); return ret; } + +#endif /* LIBRESSL_HAS_POLICY_DAG */ -- cgit v1.2.3-55-g6feb