summaryrefslogtreecommitdiff
path: root/src/regress/lib/libcrypto/x509/verify.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/regress/lib/libcrypto/x509/verify.c')
-rw-r--r--src/regress/lib/libcrypto/x509/verify.c19
1 files changed, 18 insertions, 1 deletions
diff --git a/src/regress/lib/libcrypto/x509/verify.c b/src/regress/lib/libcrypto/x509/verify.c
index b4b4e06cf7..77cdbfd915 100644
--- a/src/regress/lib/libcrypto/x509/verify.c
+++ b/src/regress/lib/libcrypto/x509/verify.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: verify.c,v 1.12 2024/08/23 12:56:26 anton Exp $ */ 1/* $OpenBSD: verify.c,v 1.14 2026/04/01 14:39:11 jsing 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-2021 Bob Beck <beck@openbsd.org> 4 * Copyright (c) 2020-2021 Bob Beck <beck@openbsd.org>
@@ -460,6 +460,20 @@ struct verify_cert_test verify_cert_tests[] = {
460 .want_legacy_error_depth = 2, 460 .want_legacy_error_depth = 2,
461 .failing = 1, 461 .failing = 1,
462 }, 462 },
463 {
464 .id = "14a",
465 .want_chains = 1,
466 .want_error_depth = 0,
467 },
468 {
469 .id = "14b",
470 .want_chains = 0,
471 .want_error = X509_V_ERR_CERT_CHAIN_TOO_LONG,
472 .want_error_depth = 31,
473 .want_legacy_error = 0,
474 .want_legacy_error_depth = 0,
475 .failing = 1,
476 },
463}; 477};
464 478
465#define N_VERIFY_CERT_TESTS \ 479#define N_VERIFY_CERT_TESTS \
@@ -557,10 +571,13 @@ main(int argc, char **argv)
557 571
558 fprintf(stderr, "\n\nTesting legacy x509_vfy\n"); 572 fprintf(stderr, "\n\nTesting legacy x509_vfy\n");
559 failed |= verify_cert_test(argv[1], MODE_LEGACY_VFY); 573 failed |= verify_cert_test(argv[1], MODE_LEGACY_VFY);
574
560 fprintf(stderr, "\n\nTesting modern x509_vfy\n"); 575 fprintf(stderr, "\n\nTesting modern x509_vfy\n");
561 failed |= verify_cert_test(argv[1], MODE_MODERN_VFY); 576 failed |= verify_cert_test(argv[1], MODE_MODERN_VFY);
577
562 fprintf(stderr, "\n\nTesting modern x509_vfy by_dir\n"); 578 fprintf(stderr, "\n\nTesting modern x509_vfy by_dir\n");
563 failed |= verify_cert_test(argv[1], MODE_MODERN_VFY_DIR); 579 failed |= verify_cert_test(argv[1], MODE_MODERN_VFY_DIR);
580
564 fprintf(stderr, "\n\nTesting x509_verify\n"); 581 fprintf(stderr, "\n\nTesting x509_verify\n");
565 failed |= verify_cert_test(argv[1], MODE_VERIFY); 582 failed |= verify_cert_test(argv[1], MODE_VERIFY);
566 583