aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMahmoud Hashemi <mahmoud@hatnote.com>2015-04-08 19:09:51 -0700
committerMahmoud Hashemi <mahmoud@hatnote.com>2015-04-08 19:09:51 -0700
commit313ef329c098af0a1767db5b599f1be74a5cb41f (patch)
treecaa3ac06740c2fa4683e82b9f0a0db77e7d23669 /src
parent399e1948d0eb23ec95198a878a058e9cbeeb26f9 (diff)
downloadcryptography-313ef329c098af0a1767db5b599f1be74a5cb41f.tar.gz
cryptography-313ef329c098af0a1767db5b599f1be74a5cb41f.tar.bz2
cryptography-313ef329c098af0a1767db5b599f1be74a5cb41f.zip
after closer review, it would appear that PKCS7_NOSMIMECAP was added in 0.9.6. Removing conditional logic and making it a normal constant. (source: http://marc.info/?l=openssl-cvs&m=96816036412988&w=2 )
Diffstat (limited to 'src')
-rw-r--r--src/cryptography/hazmat/bindings/openssl/pkcs7.py19
1 files changed, 3 insertions, 16 deletions
diff --git a/src/cryptography/hazmat/bindings/openssl/pkcs7.py b/src/cryptography/hazmat/bindings/openssl/pkcs7.py
index 0efce613..df82afef 100644
--- a/src/cryptography/hazmat/bindings/openssl/pkcs7.py
+++ b/src/cryptography/hazmat/bindings/openssl/pkcs7.py
@@ -21,12 +21,10 @@ static const int PKCS7_NOCERTS;
static const int PKCS7_NOCHAIN;
static const int PKCS7_NOINTERN;
static const int PKCS7_NOSIGS;
+static const int PKCS7_NOSMIMECAP;
static const int PKCS7_NOVERIFY;
static const int PKCS7_STREAM;
static const int PKCS7_TEXT;
-
-static const int Cryptography_HAS_PKCS7_NOSMIMECAP;
-static const int PKCS7_NOSMIMECAP;
"""
FUNCTIONS = """
@@ -55,17 +53,6 @@ int PKCS7_type_is_signedAndEnveloped(PKCS7 *);
int PKCS7_type_is_data(PKCS7 *);
"""
-CUSTOMIZATIONS = """
-#ifdef PKCS7_NOSMIMECAP
-static const int Cryptography_HAS_PKCS7_NOSMIMECAP = 1;
-#else
-static const int Cryptography_HAS_PKCS7_NOSMIMECAP = 0;
-static const int PKCS7_NOSMIMECAP = 0;
-#endif
-"""
+CUSTOMIZATIONS = ""
-CONDITIONAL_NAMES = {
- 'Cryptography_HAS_PKCS7_NOSMIMECAP': [
- 'PKCS7_NOSMIMECAP',
- ]
-}
+CONDITIONAL_NAMES = {}