From: Matt Caswell Date: Fri, 31 Jan 2020 22:44:56 +0000 (+0000) Subject: Revert "Legacy digests can have custom control values" X-Git-Tag: openssl-3.0.0-alpha1~568 X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff_plain;h=5a8848fa7fec532fee30fd6131a3ebd59a5c5902;hp=7f293d9f3b5cee4f4b15624fff15a45e0517334f;ds=sidebyside Revert "Legacy digests can have custom control values" This reverts commit 1f457256ce6a1b2fd7e3f62eee8faa74cd5c835e. This is causing Travis failures. [extended tests] Reviewed-by: Paul Dale Reviewed-by: Matthias St. Pierre (Merged from https://github.com/openssl/openssl/pull/10989) --- diff --git a/crypto/evp/digest.c b/crypto/evp/digest.c index 9808b66bbd..adde3e13ab 100644 --- a/crypto/evp/digest.c +++ b/crypto/evp/digest.c @@ -663,7 +663,7 @@ int EVP_MD_CTX_ctrl(EVP_MD_CTX *ctx, int cmd, int p1, void *p2) } if (ctx->digest->prov == NULL - || (ctx->pctx == NULL + && (ctx->pctx == NULL || (ctx->pctx->operation != EVP_PKEY_OP_VERIFYCTX && ctx->pctx->operation != EVP_PKEY_OP_SIGNCTX))) goto legacy;