]> wagner.pp.ru Git - openssl-gost/engine.git/commitdiff
Bugfix
authorDmitry Belyavskiy <beldmit@gmail.com>
Sun, 3 Jan 2016 21:22:47 +0000 (00:22 +0300)
committerDmitry Belyavskiy <beldmit@gmail.com>
Sun, 3 Jan 2016 21:22:47 +0000 (00:22 +0300)
gost_crypt.c

index 9351bc6dcdca94d60de7405b4b288d18f7278061..e90ce5a04d024d0245d9aa8d4c8f2620b7303dae 100644 (file)
@@ -790,7 +790,7 @@ int gost_imit_ctrl(EVP_MD_CTX *ctx, int type, int arg, void *ptr)
         {
             struct ossl_gost_imit_ctx *gost_imit_ctx = EVP_MD_CTX_md_data(ctx);
 
-            if (EVP_DigestInit(ctx, EVP_MD_CTX_md(ctx)) <= 0) {
+            if (EVP_MD_meth_get_init(EVP_MD_CTX_md(ctx))(ctx) <= 0) {
                 GOSTerr(GOST_F_GOST_IMIT_CTRL, GOST_R_MAC_KEY_NOT_SET);
                 return 0;
             }