make GOST MAC work again
authorDr. Stephen Henson <steve@openssl.org>
Thu, 8 Apr 2010 10:55:04 +0000 (10:55 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Thu, 8 Apr 2010 10:55:04 +0000 (10:55 +0000)
engines/ccgost/gost_ameth.c

index 16a99ac..f620a21 100644 (file)
@@ -801,7 +801,7 @@ static int mac_ctrl_gost(EVP_PKEY *pkey, int op, long arg1, void *arg2)
        switch (op)
                {
                case ASN1_PKEY_CTRL_DEFAULT_MD_NID:
-                       *(int *)arg2 = NID_undef;
+                       *(int *)arg2 = NID_id_Gost28147_89_MAC;
                        return 2;
                }
        return -2;