diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2014-06-30 13:41:38 +0100 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2014-06-30 13:59:29 +0100 |
commit | 6006e352ad59c7aa53fe225795989537645ee277 (patch) | |
tree | 43a2c5f459802cce2f8dfcebd23fa40b7bb48302 /crypto/evp | |
parent | 2af68ef7747fa44089c61ab76d1b35f3fd3bf2c5 (diff) |
Make EVP_Digest* work again.
Diffstat (limited to 'crypto/evp')
-rw-r--r-- | crypto/evp/m_sigver.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/evp/m_sigver.c b/crypto/evp/m_sigver.c index 7614d36c0f..b694991dbf 100644 --- a/crypto/evp/m_sigver.c +++ b/crypto/evp/m_sigver.c @@ -113,6 +113,8 @@ static int do_sigver_init(EVP_MD_CTX *ctx, EVP_PKEY_CTX **pctx, } if (EVP_PKEY_CTX_set_signature_md(ctx->pctx, type) <= 0) return 0; + if (pctx) + *pctx = ctx->pctx; if (ctx->pctx->pmeth->flags & EVP_PKEY_FLAG_SIGCTX_CUSTOM) return 1; if (!EVP_DigestInit_ex(ctx, type, e)) |