summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2021-02-24 18:01:32 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2021-02-24 18:01:32 +0000
commitbf5b80242800ab1cd1dda87d67008a6875fb6100 (patch)
treefdf908502d0b3513f12e0ee81207309bf038f477
parentb6df0de22363e25022e4db7932d655056c22b0c6 (diff)
Fix comment explaining last_untrusted. This should really be called
num_untrusted, but unfortunately it's public... ok jsing tobhe
-rw-r--r--lib/libcrypto/x509/x509_vfy.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libcrypto/x509/x509_vfy.h b/lib/libcrypto/x509/x509_vfy.h
index a68d5c08400..57189b9d0f5 100644
--- a/lib/libcrypto/x509/x509_vfy.h
+++ b/lib/libcrypto/x509/x509_vfy.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: x509_vfy.h,v 1.31 2020/09/13 15:06:17 beck Exp $ */
+/* $OpenBSD: x509_vfy.h,v 1.32 2021/02/24 18:01:31 tb Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -247,7 +247,7 @@ struct x509_store_ctx_st /* X509_STORE_CTX */
/* The following is built up */
int valid; /* if 0, rebuild chain */
- int last_untrusted; /* index of last untrusted cert */
+ int last_untrusted; /* XXX: number of untrusted certs in chain!!! */
STACK_OF(X509) *chain; /* chain of X509s - built up and trusted */
X509_POLICY_TREE *tree; /* Valid policy tree */