summaryrefslogtreecommitdiffstats
path: root/crypto/evp
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2020-02-02 13:09:29 +0100
committerRichard Levitte <levitte@openssl.org>2020-02-04 19:32:37 +0100
commite3b1ccad694aabfffbde68c56fb8d44c011f98b1 (patch)
tree6a1c21202714abb42442ec87bfbb392e3af5a3d2 /crypto/evp
parent8bee651213c4755761ed5dd32d416d782cc5fc3c (diff)
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)
Diffstat (limited to 'crypto/evp')
-rw-r--r--crypto/evp/digest.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/crypto/evp/digest.c b/crypto/evp/digest.c
index adde3e13ab..be6fcb58f1 100644
--- a/crypto/evp/digest.c
+++ b/crypto/evp/digest.c
@@ -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) {