From 355e0e012d67b963dc150882581087232ba98014 Mon Sep 17 00:00:00 2001 From: beck <> Date: Fri, 28 Apr 2023 09:11:35 +0000 Subject: Hook up the the x509 policy regression tests to x509 regress. These were adapted from BoringSSL's regress tests for x509 policy. They are currently marked as expected to fail as we have not enabled LIBRESSL_HAS_POLICY_DAG by default yet, and the old tree based policy code from OpenSSL is special. These tests pass when we build with LIBRESSL_HAS_POLICY_DAG. --- src/regress/lib/libcrypto/x509/Makefile | 4 ++-- src/regress/lib/libcrypto/x509/policy/Makefile | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/regress/lib/libcrypto/x509/Makefile b/src/regress/lib/libcrypto/x509/Makefile index d6c94f352a..a8796ebe31 100644 --- a/src/regress/lib/libcrypto/x509/Makefile +++ b/src/regress/lib/libcrypto/x509/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.18 2023/04/26 08:58:03 job Exp $ +# $OpenBSD: Makefile,v 1.19 2023/04/28 09:11:35 beck Exp $ PROGS = constraints verify x509attribute x509name x509req_ext callback PROGS += expirecallback callbackfailures x509_asn1 @@ -13,7 +13,7 @@ CFLAGS += -DLIBRESSL_INTERNAL -Wall -Werror CFLAGS += -I${.CURDIR}/../../../../lib/libcrypto/x509 CFLAGS += -I${.CURDIR}/../../../../lib/libcrypto/bytestring -SUBDIR += bettertls rfc3779 +SUBDIR += bettertls rfc3779 policy CLEANFILES += x509name.result callback.out diff --git a/src/regress/lib/libcrypto/x509/policy/Makefile b/src/regress/lib/libcrypto/x509/policy/Makefile index b365499412..89de5a4348 100644 --- a/src/regress/lib/libcrypto/x509/policy/Makefile +++ b/src/regress/lib/libcrypto/x509/policy/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.1 2023/04/27 12:23:31 beck Exp $ +# $OpenBSD: Makefile,v 1.2 2023/04/28 09:11:35 beck Exp $ PROGS = policy @@ -14,6 +14,7 @@ CFLAGS += -I${.CURDIR}/../../../../../lib/libcrypto/bytestring CFLAGS += -DCERTSDIR=\"${.CURDIR}/../../../libcrypto/x509/policy\" REGRESS_TARGETS = policy-test +REGRESS_EXPECTED_FAILURES = policy-test policy-test: policy ./policy -- cgit v1.2.3-55-g6feb