diff options
author | Dr. Stephen Henson <steve@openssl.org> | 1999-11-24 01:31:49 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 1999-11-24 01:31:49 +0000 |
commit | 1126239111a89c52d301c3439d20dc0fd61649c2 (patch) | |
tree | 6fd2adc2e9e9569b892123538f5a59d4ead28e73 /crypto/x509/x509_lu.c | |
parent | 6d3724d3b0e0b2dff99feb815d46ef41e65db0d2 (diff) |
Initial chain verify code: not tested probably not working
at present. However nothing enables it yet so this doesn't
matter :-)
Diffstat (limited to 'crypto/x509/x509_lu.c')
-rw-r--r-- | crypto/x509/x509_lu.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/crypto/x509/x509_lu.c b/crypto/x509/x509_lu.c index 18bfecb11e..82e7fa50a7 100644 --- a/crypto/x509/x509_lu.c +++ b/crypto/x509/x509_lu.c @@ -381,6 +381,17 @@ X509_OBJECT *X509_OBJECT_retrieve_by_subject(LHASH *h, int type, return(tmp); } +X509_STORE_CTX *X509_STORE_CTX_new(void) +{ + return (X509_STORE_CTX *)Malloc(sizeof(X509_STORE_CTX)); +} + +void X509_STORE_CTX_free(X509_STORE_CTX *ctx) +{ + X509_STORE_CTX_cleanup(ctx); + Free(ctx); +} + void X509_STORE_CTX_init(X509_STORE_CTX *ctx, X509_STORE *store, X509 *x509, STACK_OF(X509) *chain) { @@ -389,6 +400,8 @@ void X509_STORE_CTX_init(X509_STORE_CTX *ctx, X509_STORE *store, X509 *x509, ctx->cert=x509; ctx->untrusted=chain; ctx->last_untrusted=0; + ctx->chain_purpose=0; + ctx->trust_purpose=0; ctx->valid=0; ctx->chain=NULL; ctx->depth=9; |