aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/cmac
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/cmac
parentbae060c06a0eb2ac290fc7254af74b6b4cb122ea (diff)
downloadopenssl-e3e31ff4824f7d8cdc94127f5988a8e84914822a.tar.gz
Use supplied ENGINE when initialising CMAC. Restore pctx setting.
Diffstat (limited to 'crypto/cmac')
-rw-r--r--crypto/cmac/cm_pmeth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/cmac/cm_pmeth.c b/crypto/cmac/cm_pmeth.c
index 585fc8e4bb..c581e789f7 100644
--- a/crypto/cmac/cm_pmeth.c
+++ b/crypto/cmac/cm_pmeth.c
@@ -138,7 +138,7 @@ static int pkey_cmac_ctrl(EVP_PKEY_CTX *ctx, int type, int p1, void *p2)
break;
case EVP_PKEY_CTRL_CIPHER:
- if (!CMAC_Init(cmctx, NULL, 0, p2, NULL))
+ if (!CMAC_Init(cmctx, NULL, 0, p2, ctx->engine))
return 0;
break;