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_data.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/lib/libcrypto/x509/pcy_data.c') diff --git a/src/lib/libcrypto/x509/pcy_data.c b/src/lib/libcrypto/x509/pcy_data.c index dadacb5266..f0fdfe18ef 100644 --- a/src/lib/libcrypto/x509/pcy_data.c +++ b/src/lib/libcrypto/x509/pcy_data.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pcy_data.c,v 1.1 2020/06/04 15:19:31 jsing Exp $ */ +/* $OpenBSD: pcy_data.c,v 1.2 2023/04/26 19:11:32 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" /* Policy Node routines */ @@ -127,3 +129,5 @@ err: ASN1_OBJECT_free(id); return NULL; } + +#endif /* LIBRESSL_HAS_POLICY_DAG */ -- cgit v1.2.3-55-g6feb