diff options
author | Viktor Dukhovni <openssl-users@dukhovni.org> | 2016-04-25 21:02:02 +0200 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2016-04-25 21:26:04 +0200 |
commit | 51227177b13b53ff5d6c77fd701f5172b6c1b358 (patch) | |
tree | 01734441edfdb43c15988c6ac9a128e998d2a3b8 /crypto/x509/x509_vfy.c | |
parent | Document the enhancements for DEPEND and INCLUDE and use a better example (diff) | |
download | openssl-51227177b13b53ff5d6c77fd701f5172b6c1b358.tar.xz openssl-51227177b13b53ff5d6c77fd701f5172b6c1b358.zip |
Added missing X509_STORE_CTX_set_error_depth() accessor
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'crypto/x509/x509_vfy.c')
-rw-r--r-- | crypto/x509/x509_vfy.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/crypto/x509/x509_vfy.c b/crypto/x509/x509_vfy.c index efa6bcaa67..b895ffe33e 100644 --- a/crypto/x509/x509_vfy.c +++ b/crypto/x509/x509_vfy.c @@ -1989,6 +1989,11 @@ int X509_STORE_CTX_get_error_depth(X509_STORE_CTX *ctx) return ctx->error_depth; } +void X509_STORE_CTX_set_error_depth(X509_STORE_CTX *ctx, int depth) +{ + ctx->error_depth = depth; +} + X509 *X509_STORE_CTX_get_current_cert(X509_STORE_CTX *ctx) { return ctx->current_cert; |