diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2009-10-18 15:24:16 +0200 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2009-10-18 15:24:16 +0200 |
commit | a5b37fca0a8456d1c572e3a532b3ffd6a7b4fa9f (patch) | |
tree | 49ddb27b7b5ac5702d3205af64e214f6091487c9 /crypto | |
parent | Clarification. (diff) | |
download | openssl-a5b37fca0a8456d1c572e3a532b3ffd6a7b4fa9f.tar.xz openssl-a5b37fca0a8456d1c572e3a532b3ffd6a7b4fa9f.zip |
Add "missing" function X509_STORE_set_verify_cb().
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/x509/x509_lu.c | 6 | ||||
-rw-r--r-- | crypto/x509/x509_vfy.h | 3 |
2 files changed, 9 insertions, 0 deletions
diff --git a/crypto/x509/x509_lu.c b/crypto/x509/x509_lu.c index e29c35c861..fb7d23bbd0 100644 --- a/crypto/x509/x509_lu.c +++ b/crypto/x509/x509_lu.c @@ -695,5 +695,11 @@ int X509_STORE_set1_param(X509_STORE *ctx, X509_VERIFY_PARAM *param) return X509_VERIFY_PARAM_set1(ctx->param, param); } +void X509_STORE_set_verify_cb(X509_STORE *ctx, + int (*verify_cb)(int, X509_STORE_CTX *)) + { + ctx->verify_cb = verify_cb; + } + IMPLEMENT_STACK_OF(X509_LOOKUP) IMPLEMENT_STACK_OF(X509_OBJECT) diff --git a/crypto/x509/x509_vfy.h b/crypto/x509/x509_vfy.h index 4e73806adc..acb713a6e5 100644 --- a/crypto/x509/x509_vfy.h +++ b/crypto/x509/x509_vfy.h @@ -419,6 +419,9 @@ int X509_STORE_set_purpose(X509_STORE *ctx, int purpose); int X509_STORE_set_trust(X509_STORE *ctx, int trust); int X509_STORE_set1_param(X509_STORE *ctx, X509_VERIFY_PARAM *pm); +void X509_STORE_set_verify_cb(X509_STORE *ctx, + int (*verify_cb)(int, X509_STORE_CTX *)); + X509_STORE_CTX *X509_STORE_CTX_new(void); int X509_STORE_CTX_get1_issuer(X509 **issuer, X509_STORE_CTX *ctx, X509 *x); |