summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbeck <>2023-05-29 15:52:46 +0000
committerbeck <>2023-05-29 15:52:46 +0000
commit565d557c2f3c569f8052462ac644e135b015cf8f (patch)
tree08ba4cd358a5e0e4119eee28e3c5e643f6e3c140 /src
parentec96bb7cd92d9f4bd12be38b79757c0afc3a0e0f (diff)
downloadopenbsd-565d557c2f3c569f8052462ac644e135b015cf8f.tar.gz
openbsd-565d557c2f3c569f8052462ac644e135b015cf8f.tar.bz2
openbsd-565d557c2f3c569f8052462ac644e135b015cf8f.zip
Correct test that was pasto'ed incorrectly
This now tests what the comment says it does
Diffstat (limited to 'src')
-rw-r--r--src/regress/lib/libcrypto/x509/policy/policy.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/regress/lib/libcrypto/x509/policy/policy.c b/src/regress/lib/libcrypto/x509/policy/policy.c
index 70f60af0a3..98650b21d0 100644
--- a/src/regress/lib/libcrypto/x509/policy/policy.c
+++ b/src/regress/lib/libcrypto/x509/policy/policy.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: policy.c,v 1.10 2023/04/28 16:50:16 beck Exp $ */ 1/* $OpenBSD: policy.c,v 1.11 2023/05/29 15:52:46 beck Exp $ */
2/* 2/*
3 * Copyright (c) 2020 Joel Sing <jsing@openbsd.org> 3 * Copyright (c) 2020 Joel Sing <jsing@openbsd.org>
4 * Copyright (c) 2020-2023 Bob Beck <beck@openbsd.org> 4 * Copyright (c) 2020-2023 Bob Beck <beck@openbsd.org>
@@ -558,9 +558,13 @@ struct verify_cert_test verify_cert_tests[] = {
558 .root_file = CERTSDIR "/" "policy_root.pem", 558 .root_file = CERTSDIR "/" "policy_root.pem",
559 .intermediate_file = CERTSDIR "/" "policy_intermediate.pem", 559 .intermediate_file = CERTSDIR "/" "policy_intermediate.pem",
560 .leaf_file = CERTSDIR "/" "policy_leaf_any.pem", 560 .leaf_file = CERTSDIR "/" "policy_leaf_any.pem",
561 .policy_oid_to_check = OID1, 561 .policy_oid_to_check = OID3,
562 .verify_flags = X509_V_FLAG_EXPLICIT_POLICY, 562 .verify_flags = X509_V_FLAG_EXPLICIT_POLICY,
563 .want_chains = 1, 563 .want_chains = 0,
564 .want_error = X509_V_ERR_NO_EXPLICIT_POLICY,
565 .want_error_depth = 0,
566 .want_legacy_error = X509_V_ERR_NO_EXPLICIT_POLICY,
567 .want_legacy_error_depth = 0,
564 }, 568 },
565 /* Both assert anyPolicy. All policies are valid. */ 569 /* Both assert anyPolicy. All policies are valid. */
566 { 570 {