aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorViktor Dukhovni <openssl-users@dukhovni.org>2015-12-29 12:42:57 -0500
committerViktor Dukhovni <openssl-users@dukhovni.org>2016-01-03 17:21:16 -0500
commitd9b8b89bec4480de3a10bdaf9425db371c19145b (patch)
treec37a335444699803a4f1670f61133e6aa1708e85 /include
parent63c6aa6b9311d2834cbfea2b6311d44be9075dd0 (diff)
downloadopenssl-d9b8b89bec4480de3a10bdaf9425db371c19145b.tar.gz
X509_verify_cert() cleanup
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'include')
-rw-r--r--include/openssl/x509.h1
-rw-r--r--include/openssl/x509_vfy.h4
2 files changed, 3 insertions, 2 deletions
diff --git a/include/openssl/x509.h b/include/openssl/x509.h
index 167aae89b5..4133fc1e74 100644
--- a/include/openssl/x509.h
+++ b/include/openssl/x509.h
@@ -1070,6 +1070,7 @@ void ERR_load_X509_strings(void);
/* Function codes. */
# define X509_F_ADD_CERT_DIR 100
+# define X509_F_BUILD_CHAIN 106
# define X509_F_BY_FILE_CTRL 101
# define X509_F_CHECK_POLICY 145
# define X509_F_DIR_CTRL 102
diff --git a/include/openssl/x509_vfy.h b/include/openssl/x509_vfy.h
index f949bd9399..b78b59c8f5 100644
--- a/include/openssl/x509_vfy.h
+++ b/include/openssl/x509_vfy.h
@@ -240,8 +240,8 @@ struct x509_store_ctx_st { /* X509_STORE_CTX */
/* The following is built up */
/* if 0, rebuild chain */
int valid;
- /* index of last untrusted cert */
- int last_untrusted;
+ /* number of untrusted certs */
+ int num_untrusted;
/* chain of X509s - built up and trusted */
STACK_OF(X509) *chain;
/* Valid policy tree */