Make sure the already existing X509_STORE->depth variable is initialized
in X509_STORE_new(), but document the fact that this variable is still unused in the certificate verification process.
This commit is contained in:
@@ -231,6 +231,7 @@ X509_STORE *X509_STORE_new()
|
||||
ret->verify_cb=NULL;
|
||||
memset(&ret->ex_data,0,sizeof(CRYPTO_EX_DATA));
|
||||
ret->references=1;
|
||||
ret->depth=0;
|
||||
return(ret);
|
||||
}
|
||||
|
||||
|
@@ -154,7 +154,7 @@ typedef struct x509_store_st
|
||||
|
||||
CRYPTO_EX_DATA ex_data;
|
||||
int references;
|
||||
int depth; /* how deep to look */
|
||||
int depth; /* how deep to look (still unused) */
|
||||
} X509_STORE;
|
||||
|
||||
#define X509_STORE_set_depth(ctx,d) ((ctx)->depth=(d))
|
||||
|
Reference in New Issue
Block a user