From: Vladimirs Ambrosovs Date: Tue, 12 Mar 2024 16:23:55 +0000 (+0200) Subject: Fix dasync_rsa_decrypt to call EVP_PKEY_meth_get_decrypt X-Git-Tag: openssl-3.3.0-alpha1~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c91f0ca95881d03a54aedee197bbf5ffffc02935;p=thirdparty%2Fopenssl.git Fix dasync_rsa_decrypt to call EVP_PKEY_meth_get_decrypt Signed-off-by: Vladimirs Ambrosovs Reviewed-by: Matt Caswell Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/23825) --- diff --git a/engines/e_dasync.c b/engines/e_dasync.c index 63b13d3d450..4d92fef7042 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); }