new locks
authorBodo Möller <bodo@openssl.org>
Wed, 13 Feb 2002 17:25:27 +0000 (17:25 +0000)
committerBodo Möller <bodo@openssl.org>
Wed, 13 Feb 2002 17:25:27 +0000 (17:25 +0000)
crypto/cryptlib.c
crypto/crypto.h

index 612b3b93b447b38180f411a1d11d243f086189b1..9a7ed2cf754d994ab108f33e7544b1e72947b2f0 100644 (file)
@@ -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
        };
index fc6ff860afc6ada3a1e7bc100c8e833441a778e5..0991cf294c28ade11bd00679d4ef89ccf4e2d399 100644 (file)
@@ -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). */