aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcyli <cyli@twistedmatrix.com>2013-11-11 14:34:14 -0800
committercyli <cyli@twistedmatrix.com>2013-11-11 14:34:14 -0800
commit0165629344d8eddfac95c10fc6e103e4b21f2e07 (patch)
treee736b7d9eabc42a38f0ce6155febffaa150dd2e3
parenta9c9092a50e0c862207865dc9915c3ecccb852e2 (diff)
downloadcryptography-0165629344d8eddfac95c10fc6e103e4b21f2e07.tar.gz
cryptography-0165629344d8eddfac95c10fc6e103e4b21f2e07.tar.bz2
cryptography-0165629344d8eddfac95c10fc6e103e4b21f2e07.zip
Handle customizations in another PR as per @alex
-rw-r--r--cryptography/hazmat/bindings/openssl/ssl.py25
1 files changed, 0 insertions, 25 deletions
diff --git a/cryptography/hazmat/bindings/openssl/ssl.py b/cryptography/hazmat/bindings/openssl/ssl.py
index f95a8342..0a6a6fdc 100644
--- a/cryptography/hazmat/bindings/openssl/ssl.py
+++ b/cryptography/hazmat/bindings/openssl/ssl.py
@@ -16,12 +16,6 @@ INCLUDES = """
"""
TYPES = """
-/* Internally invented symbol to tell us if SSLv2 is supported */
-static const int PYOPENSSL_NO_SSL2;
-
-/* Internally invented symbol to tell us if SNI is supported */
-static const int PYOPENSSL_TLSEXT_HOSTNAME;
-
static const int SSL_FILETYPE_PEM;
static const int SSL_FILETYPE_ASN1;
static const int SSL_ERROR_NONE;
@@ -128,23 +122,4 @@ MACROS = """
"""
CUSTOMIZATIONS = """
-#ifdef OPENSSL_NO_SSL2
-static const int PYOPENSSL_NO_SSL2 = 1;
-SSL_METHOD* (*SSLv2_method)() = NULL;
-SSL_METHOD* (*SSLv2_client_method)() = NULL;
-SSL_METHOD* (*SSLv2_server_method)() = NULL;
-#else
-static const int PYOPENSSL_NO_SSL2 = 0;
-#endif
-
-#ifdef SSL_CTRL_SET_TLSEXT_HOSTNAME
-static const int PYOPENSSL_TLSEXT_HOSTNAME = 1;
-#else
-static const int PYOPENSSL_TLSEXT_HOSTNAME = 0;
-void (*SSL_set_tlsext_host_name)(SSL *, char *) = NULL;
-const char* (*SSL_get_servername)(const SSL *, const int) = NULL;
-void (*SSL_CTX_set_tlsext_servername_callback)(
- SSL_CTX *,
- int (*cb)(const SSL *, int *, void *)) = NULL;
-#endif
"""