aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBodo Möller <bodo@openssl.org>2002-02-13 17:25:27 +0000
committerBodo Möller <bodo@openssl.org>2002-02-13 17:25:27 +0000
commit4f85a2e21e6adec47b55664531b7d871581b27e5 (patch)
tree79eaa04fad96f33297df92bd742c965f29a90699
parent945e15a2536892d1e19345c58462512ac30f4d36 (diff)
downloadopenssl-4f85a2e21e6adec47b55664531b7d871581b27e5.tar.gz
new locks
-rw-r--r--crypto/cryptlib.c4
-rw-r--r--crypto/crypto.h5
2 files changed, 7 insertions, 2 deletions
diff --git a/crypto/cryptlib.c b/crypto/cryptlib.c
index 612b3b93b4..9a7ed2cf75 100644
--- a/crypto/cryptlib.c
+++ b/crypto/cryptlib.c
@@ -103,7 +103,9 @@ static const char* lock_names[CRYPTO_NUM_LOCKS] =
"dynlock",
"engine",
"ui",
-#if CRYPTO_NUM_LOCKS != 31
+ "ecdsa",
+ "ec",
+#if CRYPTO_NUM_LOCKS != 33
# error "Inconsistency between crypto.h and cryptlib.c"
#endif
};
diff --git a/crypto/crypto.h b/crypto/crypto.h
index fc6ff860af..0991cf294c 100644
--- a/crypto/crypto.h
+++ b/crypto/crypto.h
@@ -126,7 +126,9 @@ extern "C" {
#define CRYPTO_LOCK_DYNLOCK 28
#define CRYPTO_LOCK_ENGINE 29
#define CRYPTO_LOCK_UI 30
-#define CRYPTO_NUM_LOCKS 31
+#define CRYPTO_LOCK_ECDSA 31
+#define CRYPTO_LOCK_EC 32
+#define CRYPTO_NUM_LOCKS 33
#define CRYPTO_LOCK 1
#define CRYPTO_UNLOCK 2
@@ -233,6 +235,7 @@ DECLARE_STACK_OF(CRYPTO_EX_DATA_FUNCS)
#define CRYPTO_EX_INDEX_ENGINE 9
#define CRYPTO_EX_INDEX_X509 10
#define CRYPTO_EX_INDEX_UI 11
+#define CRYPTO_EX_INDEX_ECDSA 12
/* Dynamically assigned indexes start from this value (don't use directly, use
* via CRYPTO_ex_data_new_class). */