]> wagner.pp.ru Git - openssl-gost/engine.git/commitdiff
Fix warning
authorDmitry Belyavskiy <beldmit@gmail.com>
Mon, 12 Dec 2016 12:57:00 +0000 (15:57 +0300)
committerDmitry Belyavskiy <beldmit@gmail.com>
Mon, 12 Dec 2016 12:57:00 +0000 (15:57 +0300)
gost_ameth.c

index 1a9361b5fb434ea51c761fbd06bd9e3028c42c29..34f6f8131ce65b839501d4089781f937947b88d2 100644 (file)
@@ -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  -----------------------------*/