summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVladimirs Ambrosovs <rodriguez.twister@gmail.com>2024-03-12 18:23:55 +0200
committerTomas Mraz <tomas@openssl.org>2024-03-14 08:49:01 +0100
commitc91f0ca95881d03a54aedee197bbf5ffffc02935 (patch)
tree5edd99703f61eb4527a5e255efd684476951cc3f
parent3cb0755323281267211fbe951b94a2552e99d32a (diff)
Fix dasync_rsa_decrypt to call EVP_PKEY_meth_get_decrypt
Signed-off-by: Vladimirs Ambrosovs <rodriguez.twister@gmail.com> Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/23825)
-rw-r--r--engines/e_dasync.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/e_dasync.c b/engines/e_dasync.c
index 63b13d3d45..4d92fef704 100644
--- a/engines/e_dasync.c
+++ b/engines/e_dasync.c
@@ -981,7 +981,7 @@ static int dasync_rsa_decrypt(EVP_PKEY_CTX *ctx, unsigned char *out,
size_t inlen);
if (pdecrypt == NULL)
- EVP_PKEY_meth_get_encrypt(dasync_rsa_orig, NULL, &pdecrypt);
+ EVP_PKEY_meth_get_decrypt(dasync_rsa_orig, NULL, &pdecrypt);
return pdecrypt(ctx, out, outlen, in, inlen);
}