aboutsummaryrefslogtreecommitdiffstats
path: root/src/_cffi_src/openssl/ecdh.py
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2017-06-26 15:07:48 -1000
committerAlex Gaynor <alex.gaynor@gmail.com>2017-06-26 21:07:48 -0400
commit62c3421a73053af5cf09d110f927632dd19f00aa (patch)
treeb7160115209be11da6a113bea1e46bdc245f82e4 /src/_cffi_src/openssl/ecdh.py
parentcaad666d34835265b9ebf9bb57d0ef53691c6388 (diff)
downloadcryptography-62c3421a73053af5cf09d110f927632dd19f00aa.tar.gz
cryptography-62c3421a73053af5cf09d110f927632dd19f00aa.tar.bz2
cryptography-62c3421a73053af5cf09d110f927632dd19f00aa.zip
enable wconversion and finish fixes (#3728)
* enable wconversion and finish fixes * don't pass -Wconversion if it's win32
Diffstat (limited to 'src/_cffi_src/openssl/ecdh.py')
-rw-r--r--src/_cffi_src/openssl/ecdh.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/_cffi_src/openssl/ecdh.py b/src/_cffi_src/openssl/ecdh.py
index 5ed426aa..7f658808 100644
--- a/src/_cffi_src/openssl/ecdh.py
+++ b/src/_cffi_src/openssl/ecdh.py
@@ -19,7 +19,7 @@ FUNCTIONS = """
MACROS = """
int ECDH_compute_key(void *, size_t, const EC_POINT *, EC_KEY *,
void *(*)(const void *, size_t, void *, size_t *));
-int SSL_CTX_set_ecdh_auto(SSL_CTX *, int);
+long SSL_CTX_set_ecdh_auto(SSL_CTX *, int);
"""
CUSTOMIZATIONS = """
@@ -27,7 +27,7 @@ static const long Cryptography_HAS_ECDH = 1;
#ifndef SSL_CTX_set_ecdh_auto
static const long Cryptography_HAS_SET_ECDH_AUTO = 0;
-int (*SSL_CTX_set_ecdh_auto)(SSL_CTX *, int) = NULL;
+long (*SSL_CTX_set_ecdh_auto)(SSL_CTX *, int) = NULL;
#else
static const long Cryptography_HAS_SET_ECDH_AUTO = 1;
#endif