summaryrefslogtreecommitdiff
path: root/crypto/evp/pmeth_lib.c
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2019-10-20 20:49:32 +0200
committerRichard Levitte <levitte@openssl.org>2019-10-21 07:20:37 +0200
commit48bb979252deb4ca51ac9b3cdad70ee92937da4f (patch)
treef11b3959e2bd2c0f160a0f893979cdf21e87012b /crypto/evp/pmeth_lib.c
parent187753e09ceab4c85a0041844e749658e8f712d3 (diff)
downloadopenssl-new-48bb979252deb4ca51ac9b3cdad70ee92937da4f.tar.gz
crypto/evp/pmeth_lib.c: Fix copy'n'paste error
Reviewed-by: Shane Lontis <shane.lontis@oracle.com> (Merged from https://github.com/openssl/openssl/pull/10227)
Diffstat (limited to 'crypto/evp/pmeth_lib.c')
-rw-r--r--crypto/evp/pmeth_lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/evp/pmeth_lib.c b/crypto/evp/pmeth_lib.c
index c840a12b00..1186e5ba3a 100644
--- a/crypto/evp/pmeth_lib.c
+++ b/crypto/evp/pmeth_lib.c
@@ -634,7 +634,7 @@ int EVP_PKEY_CTX_ctrl(EVP_PKEY_CTX *ctx, int keytype, int optype,
}
if ((EVP_PKEY_CTX_IS_DERIVE_OP(ctx) && ctx->op.kex.exchprovctx != NULL)
- || (EVP_PKEY_CTX_IS_DERIVE_OP(ctx)
+ || (EVP_PKEY_CTX_IS_SIGNATURE_OP(ctx)
&& ctx->op.sig.sigprovctx != NULL))
return legacy_ctrl_to_param(ctx, keytype, optype, cmd, p1, p2);