diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2012-11-27 23:47:48 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2012-11-27 23:47:48 +0000 |
commit | 2c340864be11a523507f71d8be144f9c593b2be6 (patch) | |
tree | c68a1f01153bd63b624aad913dd20b3760f2cee6 /crypto/x509/x509_lu.c | |
parent | 84bafb747108486ea8e9716abb7a61285e9126ee (diff) | |
download | openssl-2c340864be11a523507f71d8be144f9c593b2be6.tar.gz |
New functions to set lookup_crls callback and to retrieve internal X509_STORE
from X509_STORE_CTX.
Diffstat (limited to 'crypto/x509/x509_lu.c')
-rw-r--r-- | crypto/x509/x509_lu.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/crypto/x509/x509_lu.c b/crypto/x509/x509_lu.c index 72121f6bec..cce90848a2 100644 --- a/crypto/x509/x509_lu.c +++ b/crypto/x509/x509_lu.c @@ -725,5 +725,16 @@ void X509_STORE_set_verify_cb(X509_STORE *ctx, ctx->verify_cb = verify_cb; } +void X509_STORE_set_lookup_crls_cb(X509_STORE *ctx, + STACK_OF(X509_CRL)* (*cb)(X509_STORE_CTX *ctx, X509_NAME *nm)) + { + ctx->lookup_crls = cb; + } + +X509_STORE *X509_STORE_CTX_get0_store(X509_STORE_CTX *ctx) + { + return ctx->ctx; + } + IMPLEMENT_STACK_OF(X509_LOOKUP) IMPLEMENT_STACK_OF(X509_OBJECT) |