summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Beck <beck@cvs.openbsd.org>2023-05-29 15:52:47 +0000
committerBob Beck <beck@cvs.openbsd.org>2023-05-29 15:52:47 +0000
commit1a57494a9ef6a7c82e5c75c60147eb1219b37990 (patch)
tree3477ddaca8714405a014bac3cc64c242f43dcd62
parentb0ef14898df6629785a3edef1c45d93472da6341 (diff)
Correct test that was pasto'ed incorrectly
This now tests what the comment says it does
-rw-r--r--regress/lib/libcrypto/x509/policy/policy.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/regress/lib/libcrypto/x509/policy/policy.c b/regress/lib/libcrypto/x509/policy/policy.c
index 70f60af0a34..98650b21d0a 100644
--- a/regress/lib/libcrypto/x509/policy/policy.c
+++ b/regress/lib/libcrypto/x509/policy/policy.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: policy.c,v 1.10 2023/04/28 16:50:16 beck Exp $ */
+/* $OpenBSD: policy.c,v 1.11 2023/05/29 15:52:46 beck Exp $ */
/*
* Copyright (c) 2020 Joel Sing <jsing@openbsd.org>
* Copyright (c) 2020-2023 Bob Beck <beck@openbsd.org>
@@ -558,9 +558,13 @@ struct verify_cert_test verify_cert_tests[] = {
.root_file = CERTSDIR "/" "policy_root.pem",
.intermediate_file = CERTSDIR "/" "policy_intermediate.pem",
.leaf_file = CERTSDIR "/" "policy_leaf_any.pem",
- .policy_oid_to_check = OID1,
+ .policy_oid_to_check = OID3,
.verify_flags = X509_V_FLAG_EXPLICIT_POLICY,
- .want_chains = 1,
+ .want_chains = 0,
+ .want_error = X509_V_ERR_NO_EXPLICIT_POLICY,
+ .want_error_depth = 0,
+ .want_legacy_error = X509_V_ERR_NO_EXPLICIT_POLICY,
+ .want_legacy_error_depth = 0,
},
/* Both assert anyPolicy. All policies are valid. */
{