From: Dmitry Belyavskiy Date: Sun, 3 Jan 2016 21:22:47 +0000 (+0300) Subject: Bugfix X-Git-Tag: v1.1.0.2~22^2~14 X-Git-Url: http://wagner.pp.ru/gitweb/?a=commitdiff_plain;h=7f0bd904ca97985ad989fe10d65568c9d6c5b2b3;p=openssl-gost%2Fengine.git Bugfix --- diff --git a/gost_crypt.c b/gost_crypt.c index 9351bc6..e90ce5a 100644 --- a/gost_crypt.c +++ b/gost_crypt.c @@ -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; }