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 <[email protected]>

Reviewed-by: Matt Caswell <[email protected]>
Reviewed-by: Tomas Mraz <[email protected]>
(Merged from openssl#23825)
  • Loading branch information
s4ex authored and t8m committed Mar 14, 2024
1 parent 3cb0755 commit c91f0ca
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 c91f0ca

Please sign in to comment.