diff options
Diffstat (limited to 'src/regress/lib/libcrypto/x509/verify.c')
-rw-r--r-- | src/regress/lib/libcrypto/x509/verify.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/regress/lib/libcrypto/x509/verify.c b/src/regress/lib/libcrypto/x509/verify.c index f3e883b8ac..added3bd9f 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.3 2020/09/18 14:58:04 tb Exp $ */ | 1 | /* $OpenBSD: verify.c,v 1.4 2020/10/26 12:11:47 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 Bob Beck <beck@openbsd.org> | 4 | * Copyright (c) 2020 Bob Beck <beck@openbsd.org> |
@@ -144,6 +144,9 @@ verify_cert(const char *roots_file, const char *bundle_file, int *chains, | |||
144 | } | 144 | } |
145 | 145 | ||
146 | verify_err = X509_STORE_CTX_get_error(xsc); | 146 | verify_err = X509_STORE_CTX_get_error(xsc); |
147 | if (verify_err == 0) | ||
148 | errx(1, "Error unset on failure!\n"); | ||
149 | |||
147 | fprintf(stderr, "failed to verify at %d: %s\n", | 150 | fprintf(stderr, "failed to verify at %d: %s\n", |
148 | X509_STORE_CTX_get_error_depth(xsc), | 151 | X509_STORE_CTX_get_error_depth(xsc), |
149 | X509_verify_cert_error_string(verify_err)); | 152 | X509_verify_cert_error_string(verify_err)); |