Enable the new policy checking code in x509_policy.c
authortb <tb@openbsd.org>
Fri, 28 Apr 2023 16:14:46 +0000 (16:14 +0000)
committertb <tb@openbsd.org>
Fri, 28 Apr 2023 16:14:46 +0000 (16:14 +0000)
ok beck jsing

lib/libcrypto/Makefile

index 6d5ef88..7532e32 100644 (file)
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.122 2023/04/26 21:36:42 tb Exp $
+# $OpenBSD: Makefile,v 1.123 2023/04/28 16:14:46 tb Exp $
 
 LIB=   crypto
 LIBREBUILD=y
@@ -15,13 +15,11 @@ CLEANFILES=${PC_FILES} ${VERSION_SCRIPT}
 LCRYPTO_SRC=   ${.CURDIR}
 
 CFLAGS+= -Wall -Wundef
-.ifdef HAS_DAG
-CFLAGS+= -DLIBRESSL_HAS_POLICY_DAG
-.endif
 .if ${COMPILER_VERSION:L} == "clang"
 CFLAGS+= -Werror
 .endif
 CFLAGS+= -DLIBRESSL_INTERNAL -DLIBRESSL_CRYPTO_INTERNAL
+CFLAGS+= -DLIBRESSL_HAS_POLICY_DAG
 .ifdef NAMESPACE
 CFLAGS+= -DLIBRESSL_NAMESPACE -DLIBRESSL_CRYPTO_NAMESPACE
 .endif