summaryrefslogtreecommitdiffstats
path: root/engines
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2007-05-22 12:58:39 +0000
committerDr. Stephen Henson <steve@openssl.org>2007-05-22 12:58:39 +0000
commit7b8b7973750f65ecce161af012f004b9c7be45f9 (patch)
treee99b760a4b1f3f8f50d93455ff790ae1998bb7c5 /engines
parenta1a382dbc91f5ad4021788de8bc61be5f82fd381 (diff)
Revert broken change to ccgost.
Initialize context properly for HMAC pkey method.
Diffstat (limited to 'engines')
-rw-r--r--engines/ccgost/gost_pmeth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/ccgost/gost_pmeth.c b/engines/ccgost/gost_pmeth.c
index 03e0244027..746e681db1 100644
--- a/engines/ccgost/gost_pmeth.c
+++ b/engines/ccgost/gost_pmeth.c
@@ -545,7 +545,7 @@ static int pkey_gost_mac_ctrl (EVP_PKEY_CTX *ctx, int type, int p1, void *p2)
{
case EVP_PKEY_CTRL_MD:
{
- if (p2 != NULL)
+ if (EVP_MD_type((const EVP_MD *)p2) != NID_id_Gost28147_89_MAC)
{
GOSTerr(GOST_F_PKEY_GOST_MAC_CTRL, GOST_R_INVALID_DIGEST_TYPE);
return 0;