diff options
author | beck <> | 2023-04-28 09:11:35 +0000 |
---|---|---|
committer | beck <> | 2023-04-28 09:11:35 +0000 |
commit | 355e0e012d67b963dc150882581087232ba98014 (patch) | |
tree | b70b39d25a239c8897d1fbfb1740c3687b04a4ff /src/regress/lib | |
parent | aa9e472d9d72843ea797751bd80410137bf694ff (diff) | |
download | openbsd-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/Makefile | 4 | ||||
-rw-r--r-- | 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 @@ | |||
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 | ||
3 | PROGS = constraints verify x509attribute x509name x509req_ext callback | 3 | PROGS = constraints verify x509attribute x509name x509req_ext callback |
4 | PROGS += expirecallback callbackfailures x509_asn1 | 4 | PROGS += expirecallback callbackfailures x509_asn1 |
@@ -13,7 +13,7 @@ CFLAGS += -DLIBRESSL_INTERNAL -Wall -Werror | |||
13 | CFLAGS += -I${.CURDIR}/../../../../lib/libcrypto/x509 | 13 | CFLAGS += -I${.CURDIR}/../../../../lib/libcrypto/x509 |
14 | CFLAGS += -I${.CURDIR}/../../../../lib/libcrypto/bytestring | 14 | CFLAGS += -I${.CURDIR}/../../../../lib/libcrypto/bytestring |
15 | 15 | ||
16 | SUBDIR += bettertls rfc3779 | 16 | SUBDIR += bettertls rfc3779 policy |
17 | 17 | ||
18 | CLEANFILES += x509name.result callback.out | 18 | CLEANFILES += 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 | ||
3 | PROGS = policy | 3 | PROGS = policy |
4 | 4 | ||
@@ -14,6 +14,7 @@ CFLAGS += -I${.CURDIR}/../../../../../lib/libcrypto/bytestring | |||
14 | CFLAGS += -DCERTSDIR=\"${.CURDIR}/../../../libcrypto/x509/policy\" | 14 | CFLAGS += -DCERTSDIR=\"${.CURDIR}/../../../libcrypto/x509/policy\" |
15 | 15 | ||
16 | REGRESS_TARGETS = policy-test | 16 | REGRESS_TARGETS = policy-test |
17 | REGRESS_EXPECTED_FAILURES = policy-test | ||
17 | 18 | ||
18 | policy-test: policy | 19 | policy-test: policy |
19 | ./policy | 20 | ./policy |