summaryrefslogtreecommitdiffstats
path: root/crypto/cmac/cm_ameth.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2016-01-19 01:21:12 +0100
committerDr. Stephen Henson <steve@openssl.org>2016-01-20 04:24:59 +0100
commit3aeb93486588e7dd01379c50b8fd496d55cf8858 (patch)
treee5d5793ef4786dbfac5c724e8235a3aa1ce323b2 /crypto/cmac/cm_ameth.c
parentRemove the GOST engine (diff)
downloadopenssl-3aeb93486588e7dd01379c50b8fd496d55cf8858.tar.xz
openssl-3aeb93486588e7dd01379c50b8fd496d55cf8858.zip
make EVP_PKEY opaque
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'crypto/cmac/cm_ameth.c')
-rw-r--r--crypto/cmac/cm_ameth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/cmac/cm_ameth.c b/crypto/cmac/cm_ameth.c
index 223631c3c0..d9a550e72b 100644
--- a/crypto/cmac/cm_ameth.c
+++ b/crypto/cmac/cm_ameth.c
@@ -69,7 +69,7 @@ static int cmac_size(const EVP_PKEY *pkey)
static void cmac_key_free(EVP_PKEY *pkey)
{
- CMAC_CTX *cmctx = (CMAC_CTX *)pkey->pkey.ptr;
+ CMAC_CTX *cmctx = EVP_PKEY_get0(pkey);
CMAC_CTX_free(cmctx);
}