]> git.ipfire.org Git - thirdparty/openssl.git/blobdiff - crypto/evp/pkey_mac.c
Constify various mostly X509-related parameter types in crypto/ and apps/
[thirdparty/openssl.git] / crypto / evp / pkey_mac.c
index 597498c47cab9db489df11f997dcc32d2c17c26c..c664a87cb1ea003d98a2cb242802a82764cd8054 100644 (file)
@@ -310,8 +310,7 @@ static int pkey_mac_ctrl(EVP_PKEY_CTX *ctx, int type, int p1, void *p2)
 
                 if (ctx->pkey == NULL)
                     return 0;
-                new_mac_ctx = EVP_MAC_CTX_dup((EVP_MAC_CTX *)ctx->pkey
-                                              ->pkey.ptr);
+                new_mac_ctx = EVP_MAC_CTX_dup(ctx->pkey->pkey.ptr);
                 if (new_mac_ctx == NULL)
                     return 0;
                 EVP_MAC_CTX_free(hctx->ctx);