From 7b8b7973750f65ecce161af012f004b9c7be45f9 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Tue, 22 May 2007 12:58:39 +0000 Subject: Revert broken change to ccgost. Initialize context properly for HMAC pkey method. --- engines/ccgost/gost_pmeth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines') 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; -- cgit v1.2.3