summaryrefslogtreecommitdiffstats
path: root/crypto/cmac
diff options
context:
space:
mode:
authorPauli <paul.dale@oracle.com>2020-06-09 00:53:05 +0200
committerPauli <paul.dale@oracle.com>2020-06-11 03:16:37 +0200
commitd9c2fd51e2e278bc3f7793a104ff7b4879f6d63a (patch)
tree222cd0cb2c3f7ef9d0e61c5b5d50ecfd3be5ba31 /crypto/cmac
parentkdf: make function naming consistent. (diff)
downloadopenssl-d9c2fd51e2e278bc3f7793a104ff7b4879f6d63a.tar.xz
openssl-d9c2fd51e2e278bc3f7793a104ff7b4879f6d63a.zip
The EVP_MAC functions have been renamed for consistency. The EVP_MAC_CTX_*
functions are now EVP_MAC functions, usually with ctx in their names. Before 3.0 is released, the names are mutable and this prevents more inconsistencies being introduced. There are no functional or code changes. Just the renaming and a little reformatting. Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/11997)
Diffstat (limited to 'crypto/cmac')
-rw-r--r--crypto/cmac/cm_ameth.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/cmac/cm_ameth.c b/crypto/cmac/cm_ameth.c
index aa06cdc98a..ece3d8f91c 100644
--- a/crypto/cmac/cm_ameth.c
+++ b/crypto/cmac/cm_ameth.c
@@ -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);
}