summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/x509/x509_internal.h
diff options
context:
space:
mode:
authorbeck <>2021-07-10 15:52:59 +0000
committerbeck <>2021-07-10 15:52:59 +0000
commit1ffcaaaebd86dcca5ac02a53400c2f159167fd10 (patch)
tree7c835a85f59541049cb874aacfb00d3ffb5c4e9b /src/lib/libcrypto/x509/x509_internal.h
parent60010e27a48be3a21b5dae172c9cb896be2532c4 (diff)
downloadopenbsd-1ffcaaaebd86dcca5ac02a53400c2f159167fd10.tar.gz
openbsd-1ffcaaaebd86dcca5ac02a53400c2f159167fd10.tar.bz2
openbsd-1ffcaaaebd86dcca5ac02a53400c2f159167fd10.zip
Add a bunch of workarond in the verifier to support partial chains and
the saving of the first error case so that the "autochain" craziness from openssl will work with the new verifier. This should allow the new verification code to work with a bunch of the autochain using cases in some software. (and should allow us to stop using the legacy verifier with autochain) ok tb@
Diffstat (limited to 'src/lib/libcrypto/x509/x509_internal.h')
-rw-r--r--src/lib/libcrypto/x509/x509_internal.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/libcrypto/x509/x509_internal.h b/src/lib/libcrypto/x509/x509_internal.h
index fe40351228..7160053a8a 100644
--- a/src/lib/libcrypto/x509/x509_internal.h
+++ b/src/lib/libcrypto/x509/x509_internal.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: x509_internal.h,v 1.7 2021/03/12 15:53:38 tb Exp $ */ 1/* $OpenBSD: x509_internal.h,v 1.8 2021/07/10 15:52:59 beck Exp $ */
2/* 2/*
3 * Copyright (c) 2020 Bob Beck <beck@openbsd.org> 3 * Copyright (c) 2020 Bob Beck <beck@openbsd.org>
4 * 4 *
@@ -65,6 +65,9 @@ struct x509_verify_chain {
65struct x509_verify_ctx { 65struct x509_verify_ctx {
66 X509_STORE_CTX *xsc; 66 X509_STORE_CTX *xsc;
67 struct x509_verify_chain **chains; /* Validated chains */ 67 struct x509_verify_chain **chains; /* Validated chains */
68 STACK_OF(X509) *saved_error_chain;
69 int saved_error;
70 int saved_error_depth;
68 size_t chains_count; 71 size_t chains_count;
69 int dump_chain; /* Dump current chain without erroring */ 72 int dump_chain; /* Dump current chain without erroring */
70 STACK_OF(X509) *roots; /* Trusted roots for this validation */ 73 STACK_OF(X509) *roots; /* Trusted roots for this validation */