diff options
Diffstat (limited to 'src/_cffi_src')
-rw-r--r-- | src/_cffi_src/openssl/callbacks.py | 3 | ||||
-rw-r--r-- | src/_cffi_src/openssl/cryptography.py | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/_cffi_src/openssl/callbacks.py b/src/_cffi_src/openssl/callbacks.py index cf2b2da5..e215ed4e 100644 --- a/src/_cffi_src/openssl/callbacks.py +++ b/src/_cffi_src/openssl/callbacks.py @@ -11,7 +11,10 @@ INCLUDES = """ #include <openssl/crypto.h> #ifdef _WIN32 +#define WIN32_LEAN_AND_MEAN #include <Windows.h> +#include <Wincrypt.h> +#include <Winsock2.h> #else #include <stdio.h> #include <stdlib.h> diff --git a/src/_cffi_src/openssl/cryptography.py b/src/_cffi_src/openssl/cryptography.py index 9095e3ab..4f9378d3 100644 --- a/src/_cffi_src/openssl/cryptography.py +++ b/src/_cffi_src/openssl/cryptography.py @@ -22,7 +22,10 @@ INCLUDES = """ #include <openssl/e_os2.h> #endif #if defined(_WIN32) +#define WIN32_LEAN_AND_MEAN #include <windows.h> +#include <Wincrypt.h> +#include <Winsock2.h> #endif #define CRYPTOGRAPHY_OPENSSL_102_OR_GREATER \ |