]> wagner.pp.ru Git - openssl-gost/engine.git/blobdiff - gost_eng.c
Added option to load engine via configuration file to allow tecting with
[openssl-gost/engine.git] / gost_eng.c
index aee09145dbeffa89eda869064eadae9f112f8571..b7b6b5edd6486c165edd862fd01d54c4819664e7 100644 (file)
@@ -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) {