From a3652a8d3893d1f8f638613ae8b2198342b251ba Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Sat, 19 Apr 2014 12:12:08 -0500 Subject: make the cms binding work properly on windows --- cryptography/hazmat/bindings/openssl/cms.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cryptography/hazmat/bindings/openssl/cms.py b/cryptography/hazmat/bindings/openssl/cms.py index 4888e5e3..a3760f2c 100644 --- a/cryptography/hazmat/bindings/openssl/cms.py +++ b/cryptography/hazmat/bindings/openssl/cms.py @@ -15,6 +15,11 @@ from __future__ import absolute_import, division, print_function INCLUDES = """ #if !defined(OPENSSL_NO_CMS) && OPENSSL_VERSION_NUMBER >= 0x0090808fL +// The next define should really be in the OpenSSL header, but it is missing. +// Failing to include this on Windows causes compilation failures. +#if defined(OPENSSL_SYS_WINDOWS) +#include +#endif #include #endif """ -- cgit v1.2.3