mirror of
https://github.com/openssl/openssl.git
synced 2025-03-19 19:50:42 +08:00
EVP_MD_CTX_ctrl(): Remove unnecessary control
A check was present as to what operation is performed with this context. It may have been useful at some point, but isn't any more. Reviewed-by: Shane Lontis <shane.lontis@oracle.com> (Merged from https://github.com/openssl/openssl/pull/10947)
This commit is contained in:
parent
8bee651213
commit
e3b1ccad69
@ -662,10 +662,7 @@ int EVP_MD_CTX_ctrl(EVP_MD_CTX *ctx, int cmd, int p1, void *p2)
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (ctx->digest->prov == NULL
|
||||
&& (ctx->pctx == NULL
|
||||
|| (ctx->pctx->operation != EVP_PKEY_OP_VERIFYCTX
|
||||
&& ctx->pctx->operation != EVP_PKEY_OP_SIGNCTX)))
|
||||
if (ctx->digest->prov == NULL)
|
||||
goto legacy;
|
||||
|
||||
switch (cmd) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user