The EVP_MAC functions have been renamed for consistency. The EVP_MAC_CTX_*
[openssl.git] / crypto / cmac / cm_ameth.c
index aa06cdc98a477ba04309593c3e194c72eb686001..ece3d8f91cd56729c597029f6053f404d0137136 100644 (file)
@@ -31,9 +31,9 @@ static int cmac_size(const EVP_PKEY *pkey)
 static void cmac_key_free(EVP_PKEY *pkey)
 {
     EVP_MAC_CTX *cmctx = EVP_PKEY_get0(pkey);
-    EVP_MAC *mac = cmctx == NULL ? NULL : EVP_MAC_CTX_mac(cmctx);
+    EVP_MAC *mac = cmctx == NULL ? NULL : EVP_MAC_get_ctx_mac(cmctx);
 
-    EVP_MAC_CTX_free(cmctx);
+    EVP_MAC_free_ctx(cmctx);
     EVP_MAC_free(mac);
 }