提交 d9b8b89b 编写于 作者: V Viktor Dukhovni

X509_verify_cert() cleanup

Reviewed-by: NRichard Levitte <levitte@openssl.org>
上级 63c6aa6b
...@@ -71,6 +71,7 @@ ...@@ -71,6 +71,7 @@
static ERR_STRING_DATA X509_str_functs[] = { static ERR_STRING_DATA X509_str_functs[] = {
{ERR_FUNC(X509_F_ADD_CERT_DIR), "add_cert_dir"}, {ERR_FUNC(X509_F_ADD_CERT_DIR), "add_cert_dir"},
{ERR_FUNC(X509_F_BUILD_CHAIN), "build_chain"},
{ERR_FUNC(X509_F_BY_FILE_CTRL), "by_file_ctrl"}, {ERR_FUNC(X509_F_BY_FILE_CTRL), "by_file_ctrl"},
{ERR_FUNC(X509_F_CHECK_POLICY), "check_policy"}, {ERR_FUNC(X509_F_CHECK_POLICY), "check_policy"},
{ERR_FUNC(X509_F_DIR_CTRL), "dir_ctrl"}, {ERR_FUNC(X509_F_DIR_CTRL), "dir_ctrl"},
......
此差异已折叠。
...@@ -1070,6 +1070,7 @@ void ERR_load_X509_strings(void); ...@@ -1070,6 +1070,7 @@ void ERR_load_X509_strings(void);
/* Function codes. */ /* Function codes. */
# define X509_F_ADD_CERT_DIR 100 # define X509_F_ADD_CERT_DIR 100
# define X509_F_BUILD_CHAIN 106
# define X509_F_BY_FILE_CTRL 101 # define X509_F_BY_FILE_CTRL 101
# define X509_F_CHECK_POLICY 145 # define X509_F_CHECK_POLICY 145
# define X509_F_DIR_CTRL 102 # define X509_F_DIR_CTRL 102
......
...@@ -240,8 +240,8 @@ struct x509_store_ctx_st { /* X509_STORE_CTX */ ...@@ -240,8 +240,8 @@ struct x509_store_ctx_st { /* X509_STORE_CTX */
/* The following is built up */ /* The following is built up */
/* if 0, rebuild chain */ /* if 0, rebuild chain */
int valid; int valid;
/* index of last untrusted cert */ /* number of untrusted certs */
int last_untrusted; int num_untrusted;
/* chain of X509s - built up and trusted */ /* chain of X509s - built up and trusted */
STACK_OF(X509) *chain; STACK_OF(X509) *chain;
/* Valid policy tree */ /* Valid policy tree */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册