Skip to content

Commit

Permalink
Fix dasync_rsa_decrypt to call EVP_PKEY_meth_get_decrypt
Browse files Browse the repository at this point in the history
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 #23825)

(cherry picked from commit c91f0ca)
  • Loading branch information
s4ex authored and t8m committed Mar 14, 2024
1 parent c85827b commit 9fafe34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engines/e_dasync.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 9fafe34

Please sign in to comment.