]> wagner.pp.ru Git - openssl-gost/engine.git/blobdiff - gost_eng.c
Missing free
[openssl-gost/engine.git] / gost_eng.c
index 472ba82573f0964a593374f8fb5eeb44a5b07eab..0a2af555127552af0b50aa7a80627733553cecb7 100644 (file)
@@ -125,6 +125,8 @@ static int gost_engine_destroy(ENGINE* e) {
     ameth_GostR3410_2012_512 = NULL;
     ameth_Gost28147_MAC_12 = NULL;
 
+       ERR_unload_GOST_strings();
+       
     return 1;
 }
 
@@ -222,6 +224,7 @@ static int bind_gost(ENGINE* e, const char* id) {
         || !EVP_add_cipher(cipher_gost_grasshopper_cfb())
         || !EVP_add_cipher(cipher_gost_grasshopper_ofb())
         || !EVP_add_cipher(cipher_gost_grasshopper_ctr())
+        || !EVP_add_cipher(cipher_magma_cbc())
         || !EVP_add_digest(digest_gost())
         || !EVP_add_digest(digest_gost2012_512())
         || !EVP_add_digest(digest_gost2012_256())