diff options
author | Alessandro Ghedini <alessandro@ghedini.me> | 2016-03-08 23:37:01 +0100 |
---|---|---|
committer | Alessandro Ghedini <alessandro@ghedini.me> | 2016-03-09 00:52:48 +0100 |
commit | 0b1a07c8a70486534526d8967f03e32806da5661 (patch) | |
tree | 973c6ac96312d6e14adfeaecfd053f7f1fd76a04 /crypto/rsa/rsa_crpt.c | |
parent | Convert CRYPTO_LOCK_SSL_* to new multi-threading API (diff) | |
download | openssl-0b1a07c8a70486534526d8967f03e32806da5661.tar.xz openssl-0b1a07c8a70486534526d8967f03e32806da5661.zip |
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.c | 4 |
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) |