X-Git-Url: http://wagner.pp.ru/gitweb/?a=blobdiff_plain;f=gost_eng.c;h=b7b6b5edd6486c165edd862fd01d54c4819664e7;hb=d9a37e677239c4a9be7ac62b497272480c37d490;hp=aee09145dbeffa89eda869064eadae9f112f8571;hpb=9dec172acb29d4aa16120784b1587edd7f46648c;p=openssl-gost%2Fengine.git diff --git a/gost_eng.c b/gost_eng.c index aee0914..b7b6b5e 100644 --- a/gost_eng.c +++ b/gost_eng.c @@ -122,6 +122,7 @@ static int bind_gost(ENGINE *e, const char *id) gost_digest_nids[4]=NID_gost_mac_12; gost_pkey_meth_nids[2]=NID_gost2012_256; gost_pkey_meth_nids[3]=NID_gost2012_512; + gost_pkey_meth_nids[4]=NID_gost_mac_12; /* EVP_CIPHERs */ cipher_gost_cbc.nid = NID_gost89_cbc; cipher_gost_cpcnt_12.nid = NID_gost89_cnt_12; @@ -264,7 +265,7 @@ static int gost_ciphers(ENGINE *e, const EVP_CIPHER **cipher, int ok = 1; if (!cipher) { *nids = gost_cipher_nids; - return 4; /* three ciphers are supported */ + return 4; /* four ciphers are supported */ } if (nid == NID_id_Gost28147_89) {