From 6eb15b0925ccf504941b35685afea9eef09d937a Mon Sep 17 00:00:00 2001 From: Jean-Paul Calderone Date: Sun, 29 Dec 2013 14:14:37 -0500 Subject: Switch to long for these stand-in constants as suggested by reaperhulk to avoid compiler warnings --- cryptography/hazmat/backends/openssl/ssl.py | 4 ++-- 1 file 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; -- cgit v1.2.3