Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/boringssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Langley <agl@google.com>2015-04-13 21:04:14 +0300
committerAdam Langley <agl@google.com>2015-04-14 23:10:27 +0300
commit683d7bd20a96a34d85341cd04b4c6309b0730852 (patch)
treee6f9f01d41862b133f97936b973f7e4e825bc802 /include/openssl/dsa.h
parentccdfbd9834511a473684caf4517bc5dcdf00fc58 (diff)
Convert BN_MONT_CTX to new-style locking.
This introduces a per-RSA/DSA/DH lock. This is good for lock contention, although pthread locks are depressingly bloated. Change-Id: I07c4d1606fc35135fc141ebe6ba904a28c8f8a0c Reviewed-on: https://boringssl-review.googlesource.com/4324 Reviewed-by: Adam Langley <agl@google.com>
Diffstat (limited to 'include/openssl/dsa.h')
-rw-r--r--include/openssl/dsa.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/openssl/dsa.h b/include/openssl/dsa.h
index 69dd56b6..47270f86 100644
--- a/include/openssl/dsa.h
+++ b/include/openssl/dsa.h
@@ -64,6 +64,7 @@
#include <openssl/engine.h>
#include <openssl/ex_data.h>
+#include <openssl/thread.h>
#if defined(__cplusplus)
extern "C" {
@@ -351,6 +352,7 @@ struct dsa_st {
int flags;
/* Normally used to cache montgomery values */
+ CRYPTO_MUTEX method_mont_p_lock;
BN_MONT_CTX *method_mont_p;
int references;
CRYPTO_EX_DATA ex_data;