aboutsummaryrefslogtreecommitdiffstats
path: root/src/_cffi_src/openssl
diff options
context:
space:
mode:
Diffstat (limited to 'src/_cffi_src/openssl')
-rw-r--r--src/_cffi_src/openssl/crypto.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/_cffi_src/openssl/crypto.py b/src/_cffi_src/openssl/crypto.py
index d610957a..d6e5de15 100644
--- a/src/_cffi_src/openssl/crypto.py
+++ b/src/_cffi_src/openssl/crypto.py
@@ -9,6 +9,8 @@ INCLUDES = """
"""
TYPES = """
+static const long Cryptography_HAS_LOCKING_CALLBACKS;
+
typedef ... CRYPTO_THREADID;
static const int SSLEAY_VERSION;
@@ -25,6 +27,8 @@ static const int CRYPTO_MEM_CHECK_ON;
static const int CRYPTO_MEM_CHECK_OFF;
static const int CRYPTO_MEM_CHECK_ENABLE;
static const int CRYPTO_MEM_CHECK_DISABLE;
+static const int CRYPTO_LOCK;
+static const int CRYPTO_UNLOCK;
"""
FUNCTIONS = """
@@ -80,4 +84,11 @@ CUSTOMIZATIONS = """
# define OPENSSL_PLATFORM SSLEAY_PLATFORM
# define OPENSSL_DIR SSLEAY_DIR
#endif
+#if !defined(CRYPTO_LOCK)
+static const long Cryptography_HAS_LOCKING_CALLBACKS = 0;
+static const long CRYPTO_LOCK = 0;
+static const long CRYPTO_UNLOCK = 0;
+#else
+static const long Cryptography_HAS_LOCKING_CALLBACKS = 1;
+#endif
"""