aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/crypto.h
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2003-10-06 09:09:44 +0000
committerRichard Levitte <levitte@openssl.org>2003-10-06 09:09:44 +0000
commitc40b9bdefb59be7e640cd7a10bfd2fa26ea1fe7b (patch)
tree9264f58ab5c0cbe3824adc5c8ecc3883ddb1e83f /crypto/crypto.h
parent6895cca89d47b30708e41da5a7f86277f526cbe6 (diff)
downloadopenssl-c40b9bdefb59be7e640cd7a10bfd2fa26ea1fe7b.tar.gz
Setting the ex_data index is unsafe in a threaded environment, so
let's wrap it with a lock.
Diffstat (limited to 'crypto/crypto.h')
-rw-r--r--crypto/crypto.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/crypto.h b/crypto/crypto.h
index dd90cfa55d..5238e53066 100644
--- a/crypto/crypto.h
+++ b/crypto/crypto.h
@@ -203,7 +203,8 @@ typedef struct openssl_item_st
#define CRYPTO_LOCK_BN 35
#define CRYPTO_LOCK_EC_PRE_COMP 36
#define CRYPTO_LOCK_STORE 37
-#define CRYPTO_NUM_LOCKS 38
+#define CRYPTO_LOCK_COMP 38
+#define CRYPTO_NUM_LOCKS 39
#define CRYPTO_LOCK 1
#define CRYPTO_UNLOCK 2