summaryrefslogtreecommitdiff
path: root/src/regress/lib
diff options
context:
space:
mode:
authorbeck <>2023-04-28 09:11:35 +0000
committerbeck <>2023-04-28 09:11:35 +0000
commit355e0e012d67b963dc150882581087232ba98014 (patch)
treeb70b39d25a239c8897d1fbfb1740c3687b04a4ff /src/regress/lib
parentaa9e472d9d72843ea797751bd80410137bf694ff (diff)
downloadopenbsd-355e0e012d67b963dc150882581087232ba98014.tar.gz
openbsd-355e0e012d67b963dc150882581087232ba98014.tar.bz2
openbsd-355e0e012d67b963dc150882581087232ba98014.zip
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.
Diffstat (limited to 'src/regress/lib')
-rw-r--r--src/regress/lib/libcrypto/x509/Makefile4
-rw-r--r--src/regress/lib/libcrypto/x509/policy/Makefile3
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 @@
1# $OpenBSD: Makefile,v 1.18 2023/04/26 08:58:03 job Exp $ 1# $OpenBSD: Makefile,v 1.19 2023/04/28 09:11:35 beck Exp $
2 2
3PROGS = constraints verify x509attribute x509name x509req_ext callback 3PROGS = constraints verify x509attribute x509name x509req_ext callback
4PROGS += expirecallback callbackfailures x509_asn1 4PROGS += expirecallback callbackfailures x509_asn1
@@ -13,7 +13,7 @@ CFLAGS += -DLIBRESSL_INTERNAL -Wall -Werror
13CFLAGS += -I${.CURDIR}/../../../../lib/libcrypto/x509 13CFLAGS += -I${.CURDIR}/../../../../lib/libcrypto/x509
14CFLAGS += -I${.CURDIR}/../../../../lib/libcrypto/bytestring 14CFLAGS += -I${.CURDIR}/../../../../lib/libcrypto/bytestring
15 15
16SUBDIR += bettertls rfc3779 16SUBDIR += bettertls rfc3779 policy
17 17
18CLEANFILES += x509name.result callback.out 18CLEANFILES += x509name.result callback.out
19 19
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 @@
1# $OpenBSD: Makefile,v 1.1 2023/04/27 12:23:31 beck Exp $ 1# $OpenBSD: Makefile,v 1.2 2023/04/28 09:11:35 beck Exp $
2 2
3PROGS = policy 3PROGS = policy
4 4
@@ -14,6 +14,7 @@ CFLAGS += -I${.CURDIR}/../../../../../lib/libcrypto/bytestring
14CFLAGS += -DCERTSDIR=\"${.CURDIR}/../../../libcrypto/x509/policy\" 14CFLAGS += -DCERTSDIR=\"${.CURDIR}/../../../libcrypto/x509/policy\"
15 15
16REGRESS_TARGETS = policy-test 16REGRESS_TARGETS = policy-test
17REGRESS_EXPECTED_FAILURES = policy-test
17 18
18policy-test: policy 19policy-test: policy
19 ./policy 20 ./policy