num_untrusted, but unfortunately it's public...
ok jsing tobhe
-/* $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.
*
/* 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 */