aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Paul Calderone <exarkun@twistedmatrix.com>2013-12-29 14:14:37 -0500
committerJean-Paul Calderone <exarkun@twistedmatrix.com>2013-12-29 14:14:37 -0500
commit6eb15b0925ccf504941b35685afea9eef09d937a (patch)
treeb732958f314a93e28621a2d0bd92a45b6e152162
parent9236a340b5abb008b6bc06ecfe4540c958d5af76 (diff)
downloadcryptography-6eb15b0925ccf504941b35685afea9eef09d937a.tar.gz
cryptography-6eb15b0925ccf504941b35685afea9eef09d937a.tar.bz2
cryptography-6eb15b0925ccf504941b35685afea9eef09d937a.zip
Switch to long for these stand-in constants as suggested by reaperhulk to avoid compiler warnings
-rw-r--r--cryptography/hazmat/backends/openssl/ssl.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cryptography/hazmat/backends/openssl/ssl.py b/cryptography/hazmat/backends/openssl/ssl.py
index cc3b3fe6..48910573 100644
--- a/cryptography/hazmat/backends/openssl/ssl.py
+++ b/cryptography/hazmat/backends/openssl/ssl.py
@@ -323,7 +323,7 @@ const long SSL_OP_NO_COMPRESSION = 0;
static const long Cryptography_HAS_TLSv1_1 = 1;
#else
static const long Cryptography_HAS_TLSv1_1 = 0;
-static const int SSL_OP_NO_TLSv1_1 = 0;
+static const long SSL_OP_NO_TLSv1_1 = 0;
SSL_METHOD* (*TLSv1_1_method)(void) = NULL;
SSL_METHOD* (*TLSv1_1_client_method)(void) = NULL;
SSL_METHOD* (*TLSv1_1_server_method)(void) = NULL;
@@ -333,7 +333,7 @@ SSL_METHOD* (*TLSv1_1_server_method)(void) = NULL;
static const long Cryptography_HAS_TLSv1_2 = 1;
#else
static const long Cryptography_HAS_TLSv1_2 = 0;
-static const int SSL_OP_NO_TLSv1_2 = 0;
+static const long SSL_OP_NO_TLSv1_2 = 0;
SSL_METHOD* (*TLSv1_2_method)(void) = NULL;
SSL_METHOD* (*TLSv1_2_client_method)(void) = NULL;
SSL_METHOD* (*TLSv1_2_server_method)(void) = NULL;