aboutsummaryrefslogtreecommitdiffstats
path: root/src/_cffi_src
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2019-02-26 21:29:26 +0800
committerAlex Gaynor <alex.gaynor@gmail.com>2019-02-26 08:29:26 -0500
commit8b2f5485d3ce673b8cd6e6934004915b1aa82cff (patch)
tree21376a9a5cbc98302c59a57ff85dc98bc6a46cf0 /src/_cffi_src
parent177ba1cca189f7065f1577deee04f0ba503be5c3 (diff)
downloadcryptography-8b2f5485d3ce673b8cd6e6934004915b1aa82cff.tar.gz
cryptography-8b2f5485d3ce673b8cd6e6934004915b1aa82cff.tar.bz2
cryptography-8b2f5485d3ce673b8cd6e6934004915b1aa82cff.zip
remove unused locking functions (#4780)
* remove unused locking functions we do all this in C when necessary * oops, need this
Diffstat (limited to 'src/_cffi_src')
-rw-r--r--src/_cffi_src/openssl/crypto.py26
1 files changed, 2 insertions, 24 deletions
diff --git a/src/_cffi_src/openssl/crypto.py b/src/_cffi_src/openssl/crypto.py
index 03672d55..d8835442 100644
--- a/src/_cffi_src/openssl/crypto.py
+++ b/src/_cffi_src/openssl/crypto.py
@@ -27,22 +27,15 @@ 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;
-static const int CRYPTO_READ;
-static const int CRYPTO_LOCK_SSL;
"""
FUNCTIONS = """
int CRYPTO_mem_ctrl(int);
-void CRYPTO_cleanup_all_ex_data(void);
void OPENSSL_cleanup(void);
-/* as of 1.1.0 OpenSSL does its own locking *angelic chorus*. These functions
- have become macros that are no ops */
-int CRYPTO_num_locks(void);
-void CRYPTO_set_locking_callback(void(*)(int, int, const char *, int));
+/* as of 1.1.0 OpenSSL does its own locking *angelic chorus*. This function
+ is now a noop macro. We can delete this once we drop 1.0.2 support. */
void (*CRYPTO_get_locking_callback(void))(int, int, const char *, int);
/* SSLeay was removed in 1.1.0 */
@@ -56,8 +49,6 @@ const char *OpenSSL_version(int);
void *OPENSSL_malloc(size_t);
void OPENSSL_free(void *);
-/* This was removed in 1.1.0 */
-void CRYPTO_lock(int, int, const char *, int);
/* Signature changed significantly in 1.1.0, only expose there for sanity */
int Cryptography_CRYPTO_set_mem_functions(
@@ -98,19 +89,6 @@ CUSTOMIZATIONS = """
static const long Cryptography_HAS_LOCKING_CALLBACKS = 1;
#else
static const long Cryptography_HAS_LOCKING_CALLBACKS = 0;
-#if !defined(CRYPTO_LOCK)
-static const long CRYPTO_LOCK = 0;
-#endif
-#if !defined(CRYPTO_UNLOCK)
-static const long CRYPTO_UNLOCK = 0;
-#endif
-#if !defined(CRYPTO_READ)
-static const long CRYPTO_READ = 0;
-#endif
-#if !defined(CRYPTO_LOCK_SSL)
-static const long CRYPTO_LOCK_SSL = 0;
-#endif
-void (*CRYPTO_lock)(int, int, const char *, int) = NULL;
#endif
#if CRYPTOGRAPHY_OPENSSL_LESS_THAN_110