From 7fcbb68b327fd9d6ba4bb9a29c1d3c9b75bc467a Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Fri, 18 Apr 2014 10:25:26 -0500 Subject: CMS was added as an option in 0.9.8h, always exclude if older --- cryptography/hazmat/bindings/openssl/cms.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cryptography/hazmat/bindings/openssl/cms.py b/cryptography/hazmat/bindings/openssl/cms.py index acb6991b..62600cb5 100644 --- a/cryptography/hazmat/bindings/openssl/cms.py +++ b/cryptography/hazmat/bindings/openssl/cms.py @@ -14,7 +14,7 @@ from __future__ import absolute_import, division, print_function INCLUDES = """ -#ifndef OPENSSL_NO_CMS +#ifndef OPENSSL_NO_CMS && OPENSSL_VERSION_NUMBER >= 0x0090808fL #include #endif """ @@ -52,7 +52,7 @@ CMS_SignerInfo *CMS_add1_signer(CMS_ContentInfo *, X509 *, EVP_PKEY *, """ CUSTOMIZATIONS = """ -#ifndef OPENSSL_NO_CMS +#ifndef OPENSSL_NO_CMS && OPENSSL_VERSION_NUMBER >= 0x0090808fL static const long Cryptography_HAS_CMS = 1; #else static const long Cryptography_HAS_CMS = 0; -- cgit v1.2.3