提交 4f85a2e2 编写于 作者: B Bodo Möller

new locks

上级 945e15a2
...@@ -103,7 +103,9 @@ static const char* lock_names[CRYPTO_NUM_LOCKS] = ...@@ -103,7 +103,9 @@ static const char* lock_names[CRYPTO_NUM_LOCKS] =
"dynlock", "dynlock",
"engine", "engine",
"ui", "ui",
#if CRYPTO_NUM_LOCKS != 31 "ecdsa",
"ec",
#if CRYPTO_NUM_LOCKS != 33
# error "Inconsistency between crypto.h and cryptlib.c" # error "Inconsistency between crypto.h and cryptlib.c"
#endif #endif
}; };
......
...@@ -126,7 +126,9 @@ extern "C" { ...@@ -126,7 +126,9 @@ extern "C" {
#define CRYPTO_LOCK_DYNLOCK 28 #define CRYPTO_LOCK_DYNLOCK 28
#define CRYPTO_LOCK_ENGINE 29 #define CRYPTO_LOCK_ENGINE 29
#define CRYPTO_LOCK_UI 30 #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_LOCK 1
#define CRYPTO_UNLOCK 2 #define CRYPTO_UNLOCK 2
...@@ -233,6 +235,7 @@ DECLARE_STACK_OF(CRYPTO_EX_DATA_FUNCS) ...@@ -233,6 +235,7 @@ DECLARE_STACK_OF(CRYPTO_EX_DATA_FUNCS)
#define CRYPTO_EX_INDEX_ENGINE 9 #define CRYPTO_EX_INDEX_ENGINE 9
#define CRYPTO_EX_INDEX_X509 10 #define CRYPTO_EX_INDEX_X509 10
#define CRYPTO_EX_INDEX_UI 11 #define CRYPTO_EX_INDEX_UI 11
#define CRYPTO_EX_INDEX_ECDSA 12
/* Dynamically assigned indexes start from this value (don't use directly, use /* Dynamically assigned indexes start from this value (don't use directly, use
* via CRYPTO_ex_data_new_class). */ * via CRYPTO_ex_data_new_class). */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册