summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbeck <>2023-04-28 09:11:35 +0000
committerbeck <>2023-04-28 09:11:35 +0000
commit311b69e37054669532bd47ce4326b151995b8926 (patch)
treeb70b39d25a239c8897d1fbfb1740c3687b04a4ff /src
parent4ed5c1522c28775d28111ef8f5bf90dcadf2f369 (diff)
downloadopenbsd-311b69e37054669532bd47ce4326b151995b8926.tar.gz
openbsd-311b69e37054669532bd47ce4326b151995b8926.tar.bz2
openbsd-311b69e37054669532bd47ce4326b151995b8926.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')
-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