diff options
author | Ralf S. Engelschall <rse@openssl.org> | 1999-01-03 15:31:11 +0000 |
---|---|---|
committer | Ralf S. Engelschall <rse@openssl.org> | 1999-01-03 15:31:11 +0000 |
commit | cb0f35d71603decd283ffa0df78dd16d010c2e5c (patch) | |
tree | 5d9610baa517f25425f4e5313bde982228f4de45 /crypto/x509 | |
parent | 8a8d8ededd8ef72c2e91b32f27a93dba2bd16007 (diff) | |
download | openssl-cb0f35d71603decd283ffa0df78dd16d010c2e5c.tar.gz |
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.
Diffstat (limited to 'crypto/x509')
-rw-r--r-- | crypto/x509/x509_lu.c | 1 | ||||
-rw-r--r-- | crypto/x509/x509_vfy.h | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/crypto/x509/x509_lu.c b/crypto/x509/x509_lu.c index a740510b07..deec5adae5 100644 --- a/crypto/x509/x509_lu.c +++ b/crypto/x509/x509_lu.c @@ -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); } diff --git a/crypto/x509/x509_vfy.h b/crypto/x509/x509_vfy.h index 6849a8c749..e3c1304de9 100644 --- a/crypto/x509/x509_vfy.h +++ b/crypto/x509/x509_vfy.h @@ -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)) |