aboutsummaryrefslogtreecommitdiffstats
path: root/engines
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2016-04-26 16:28:26 +0100
committerMatt Caswell <matt@openssl.org>2016-05-17 16:37:45 +0100
commit8aac5d2e5a4c5d1c13e0f671d263a9eb59031514 (patch)
tree3aaae83d965a48adeccbc6b831852e4e6dc2177b /engines
parentde0717ebccd7daf6e68b6aae09e900c9cd9ad37d (diff)
downloadopenssl-8aac5d2e5a4c5d1c13e0f671d263a9eb59031514.tar.gz
Fix RSA dasync engine bug
When RSA went opaque a bug was introduced into the dasync engine where the wrong function was being set for the rsa_priv_dec operation. Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
Diffstat (limited to 'engines')
-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 27a5602364..c307998bcf 100644
--- a/engines/e_dasync.c
+++ b/engines/e_dasync.c
@@ -228,7 +228,7 @@ static int bind_dasync(ENGINE *e)
|| RSA_meth_set_pub_enc(dasync_rsa_method, dasync_pub_enc) == 0
|| RSA_meth_set_pub_dec(dasync_rsa_method, dasync_pub_dec) == 0
|| RSA_meth_set_priv_enc(dasync_rsa_method, dasync_rsa_priv_enc) == 0
- || RSA_meth_set_priv_enc(dasync_rsa_method, dasync_rsa_priv_dec) == 0
+ || RSA_meth_set_priv_dec(dasync_rsa_method, dasync_rsa_priv_dec) == 0
|| RSA_meth_set_mod_exp(dasync_rsa_method, dasync_rsa_mod_exp) == 0
|| RSA_meth_set_bn_mod_exp(dasync_rsa_method, BN_mod_exp_mont) == 0
|| RSA_meth_set_init(dasync_rsa_method, dasync_rsa_init) == 0