summaryrefslogtreecommitdiffstats
path: root/crypto/rsa/rsa_crpt.c
diff options
context:
space:
mode:
authorAlessandro Ghedini <alessandro@ghedini.me>2016-03-08 22:37:01 +0000
committerAlessandro Ghedini <alessandro@ghedini.me>2016-03-08 23:52:48 +0000
commit0b1a07c8a70486534526d8967f03e32806da5661 (patch)
tree973c6ac96312d6e14adfeaecfd053f7f1fd76a04 /crypto/rsa/rsa_crpt.c
parent16203f7b71bd343550f89f266eaf9fb9693f6148 (diff)
Convert RSA blinding to new multi-threading API
Reviewed-by: Matt Caswell <matt@openssl.org> Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'crypto/rsa/rsa_crpt.c')
-rw-r--r--crypto/rsa/rsa_crpt.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/crypto/rsa/rsa_crpt.c b/crypto/rsa/rsa_crpt.c
index 466eefc658..cec4a7c2bd 100644
--- a/crypto/rsa/rsa_crpt.c
+++ b/crypto/rsa/rsa_crpt.c
@@ -217,7 +217,9 @@ BN_BLINDING *RSA_setup_blinding(RSA *rsa, BN_CTX *in_ctx)
RSAerr(RSA_F_RSA_SETUP_BLINDING, ERR_R_BN_LIB);
goto err;
}
- CRYPTO_THREADID_current(BN_BLINDING_thread_id(ret));
+
+ BN_BLINDING_set_current_thread(ret);
+
err:
BN_CTX_end(ctx);
if (ctx != in_ctx)