From: Dmitry Belyavskiy Date: Mon, 12 Dec 2016 12:57:00 +0000 (+0300) Subject: Fix warning X-Git-Tag: v1.1.0.2~17 X-Git-Url: http://wagner.pp.ru/gitweb/?a=commitdiff_plain;h=18383fe5a0b32b22fb70e16177406ac777a98453;p=openssl-gost%2Fengine.git Fix warning --- diff --git a/gost_ameth.c b/gost_ameth.c index 1a9361b..34f6f81 100644 --- a/gost_ameth.c +++ b/gost_ameth.c @@ -282,7 +282,7 @@ static int pkey_ctrl_gost(EVP_PKEY *pkey, int op, long arg1, void *arg2) /* --------------------- free functions * ------------------------------*/ static void pkey_free_gost_ec(EVP_PKEY *key) { - EC_KEY_free(EVP_PKEY_get0_EC_KEY(key)); + EC_KEY_free((EC_KEY *)EVP_PKEY_get0(key)); } /* ------------------ private key functions -----------------------------*/