diff options
author | Viktor Dukhovni <openssl-users@dukhovni.org> | 2016-04-27 14:36:48 -0400 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2016-04-28 13:50:13 -0400 |
commit | c96548737363689e6444e424b39279e14c61c80d (patch) | |
tree | 91e791bf995325dd21bbef0f27d41092f75e309b /crypto/x509 | |
parent | 68423b146151a15c5373a24506506c588ae08729 (diff) | |
download | openssl-c96548737363689e6444e424b39279e14c61c80d.tar.gz |
Implement X509_STORE_CTX_set_current_cert() accessor
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'crypto/x509')
-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 30eabcb558..2b17b29f1d 100644 --- a/crypto/x509/x509_vfy.c +++ b/crypto/x509/x509_vfy.c @@ -1999,6 +1999,11 @@ X509 *X509_STORE_CTX_get_current_cert(X509_STORE_CTX *ctx) return ctx->current_cert; } +void X509_STORE_CTX_set_current_cert(X509_STORE_CTX *ctx, X509 *x) +{ + ctx->current_cert = x; +} + STACK_OF(X509) *X509_STORE_CTX_get0_chain(X509_STORE_CTX *ctx) { return ctx->chain; |