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:42 +0100
commit17d12183797033f55aec03376ffd3969cd703c0e (patch)
tree7ab693a1860458a762b19f8c62e588da4a5c87bf
parent650cac22ed95430d15cff9b0ade9edce6c4145aa (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) (cherry picked from commit c91f0ca95881d03a54aedee197bbf5ffffc02935)
-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 7974106ae2..aa7b2bce2f 100644
--- a/engines/e_dasync.c
+++ b/engines/e_dasync.c
@@ -985,7 +985,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);
}