# This file is dual licensed under the terms of the Apache License, Version # 2.0, and the BSD License. See the LICENSE file in the root of this repository # for complete details. from __future__ import absolute_import, division, print_function import os import sys from _cffi_src.utils import build_ffi, extra_link_args with open(os.path.join( os.path.dirname(__file__), "hazmat_src/padding.h" )) as f: types = f.read() with open(os.path.join( os.path.dirname(__file__), "hazmat_src/padding.c" )) as f: functions = f.read() ffi = build_ffi( module_name="_padding", cdef_source=types, verify_source=functions, extra_link_args=extra_link_args(sys.platform), )
"conf", "crypto", "dh", "dsa", "ec", "ecdh", "ecdsa", "engine", "err", "evp", "hmac", "nid", "objects", "ocsp", "opensslv", "pem", "pkcs12", "rand", "rsa", "ssl", "x509", "x509name", "x509v3", "x509_vfy", "pkcs7", "callbacks", ], libraries=_get_openssl_libraries(sys.platform), extra_link_args=extra_link_args(compiler_type()), )
"conf", "crypto", "dh", "dsa", "ec", "ecdh", "ecdsa", "engine", "err", "evp", "hmac", "nid", "objects", "opensslv", "pem", "pkcs7", "pkcs12", "rand", "rsa", "ssl", "x509", "x509name", "x509v3", "x509_vfy" ], pre_include=_OSX_PRE_INCLUDE, post_include=_OSX_POST_INCLUDE, libraries=_get_openssl_libraries(sys.platform), extra_link_args=extra_link_args(sys.platform), )
"fips", "hmac", "nid", "objects", "ocsp", "opensslv", "osrandom_engine", "pem", "pkcs12", "rand", "rsa", "ssl", "x509", "x509name", "x509v3", "x509_vfy", "pkcs7", "callbacks", ], libraries=_get_openssl_libraries(sys.platform), # These args are passed here so that we only do Wconversion checks on the # code we're compiling and not on cffi itself (as passing -Wconversion in # CFLAGS would do). We set no error on sign convesrion because some # function signatures in OpenSSL have changed from long -> unsigned long # in the past. Since that isn't a precision issue we don't care. # When we drop support for CRYPTOGRAPHY_OPENSSL_LESS_THAN_110 we can # revisit this. extra_compile_args=_extra_compile_args(sys.platform), extra_link_args=extra_link_args(compiler_type()), )
# This file is dual licensed under the terms of the Apache License, Version # 2.0, and the BSD License. See the LICENSE file in the root of this repository # for complete details. from __future__ import absolute_import, division, print_function import os from _cffi_src.utils import build_ffi, compiler_type, extra_link_args with open(os.path.join(os.path.dirname(__file__), "hazmat_src/padding.h")) as f: types = f.read() with open(os.path.join(os.path.dirname(__file__), "hazmat_src/padding.c")) as f: functions = f.read() ffi = build_ffi( module_name="_padding", cdef_source=types, verify_source=functions, extra_link_args=extra_link_args(compiler_type()) )