projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Convert RSA blinding to new multi-threading API
[openssl.git]
/
crypto
/
rsa
/
rsa_crpt.c
diff --git
a/crypto/rsa/rsa_crpt.c
b/crypto/rsa/rsa_crpt.c
index 466eefc65845b06cad36a45270516de560c636cf..cec4a7c2bdfe30dbaaa5e6e5c4fae8146a5714b5 100644
(file)
--- 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;
}
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)
err:
BN_CTX_end(ctx);
if (ctx != in_ctx)