Adjust all accesses to EVP_MD_CTX to use accessor functions.
[openssl.git] / engines / ccgost / gost_pmeth.c
index e70e297..f0f331e 100644 (file)
@@ -388,7 +388,8 @@ static int pkey_gost_mac_ctrl(EVP_PKEY_CTX *ctx, int type, int p1, void *p2)
             } else {
                 key = &(data->key);
             }
-            return mctx->digest->md_ctrl(mctx, EVP_MD_CTRL_SET_KEY, 32, key);
+            return EVP_MD_CTX_md(mctx)->md_ctrl(mctx, EVP_MD_CTRL_SET_KEY,
+                                                32, key);
         }
     }
     return -2;