summaryrefslogtreecommitdiffstats
path: root/crypto/evp/m_sigver.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2010-02-08 16:31:28 +0000
committerDr. Stephen Henson <steve@openssl.org>2010-02-08 16:31:28 +0000
commite3e31ff4824f7d8cdc94127f5988a8e84914822a (patch)
tree182e7057764f80dbdd6d233ec2bfc64ecd30a8b4 /crypto/evp/m_sigver.c
parentbae060c06a0eb2ac290fc7254af74b6b4cb122ea (diff)
Use supplied ENGINE when initialising CMAC. Restore pctx setting.
Diffstat (limited to 'crypto/evp/m_sigver.c')
-rw-r--r--crypto/evp/m_sigver.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/evp/m_sigver.c b/crypto/evp/m_sigver.c
index 2fd35a90e4..c7b7390b5e 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))