diff options
Diffstat (limited to 'src/_cffi_src/build_openssl.py')
-rw-r--r-- | src/_cffi_src/build_openssl.py | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/src/_cffi_src/build_openssl.py b/src/_cffi_src/build_openssl.py index 14ba5b35..3dcece58 100644 --- a/src/_cffi_src/build_openssl.py +++ b/src/_cffi_src/build_openssl.py @@ -37,25 +37,13 @@ def _osx_libraries(build_static): return ["ssl", "crypto"] -_PRE_INCLUDE = """ -#include <openssl/opensslv.h> -/* - LibreSSL removed e_os2.h from the public headers so we'll only include it - if we're using vanilla OpenSSL. -*/ -#if !defined(LIBRESSL_VERSION_NUMBER) -#include <openssl/e_os2.h> -#endif -#if defined(_WIN32) -#include <windows.h> -#endif -""" - - ffi = build_ffi_for_binding( module_name="_openssl", module_prefix="_cffi_src.openssl.", modules=[ + # This goes first so we can define some cryptography-wide symbols. + "cryptography", + "aes", "asn1", "bignum", @@ -88,7 +76,6 @@ ffi = build_ffi_for_binding( "pkcs7", "callbacks", ], - pre_include=_PRE_INCLUDE, libraries=_get_openssl_libraries(sys.platform), extra_link_args=extra_link_args(compiler_type()), ) |