aboutsummaryrefslogtreecommitdiffstats
path: root/cryptography
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2014-01-02 13:09:34 -0800
committerAlex Gaynor <alex.gaynor@gmail.com>2014-01-02 13:09:34 -0800
commit9a00f0539d5ab9b03b84625791663f11d7bed75c (patch)
tree12aa3fc581afd8d8185856fdcc092214300c6cc7 /cryptography
parentc39559c6d629d68674d240d6e6bcdf44a15d90cf (diff)
downloadcryptography-9a00f0539d5ab9b03b84625791663f11d7bed75c.tar.gz
cryptography-9a00f0539d5ab9b03b84625791663f11d7bed75c.tar.bz2
cryptography-9a00f0539d5ab9b03b84625791663f11d7bed75c.zip
All the necessary things for setup.py to build cffi stuff
Diffstat (limited to 'cryptography')
-rw-r--r--cryptography/hazmat/bindings/openssl/binding.py1
-rw-r--r--cryptography/hazmat/primitives/constant_time.py4
-rw-r--r--cryptography/hazmat/primitives/padding.py4
3 files changed, 7 insertions, 2 deletions
diff --git a/cryptography/hazmat/bindings/openssl/binding.py b/cryptography/hazmat/bindings/openssl/binding.py
index 8b5e3449..ccda368e 100644
--- a/cryptography/hazmat/bindings/openssl/binding.py
+++ b/cryptography/hazmat/bindings/openssl/binding.py
@@ -135,6 +135,7 @@ class Binding(object):
customizations
),
libraries=["crypto", "ssl"],
+ ext_package="cryptography",
)
for name in cls._modules:
diff --git a/cryptography/hazmat/primitives/constant_time.py b/cryptography/hazmat/primitives/constant_time.py
index 6502803e..c3d81221 100644
--- a/cryptography/hazmat/primitives/constant_time.py
+++ b/cryptography/hazmat/primitives/constant_time.py
@@ -42,7 +42,9 @@ uint8_t Cryptography_constant_time_bytes_eq(uint8_t *a, size_t len_a,
/* Now check the low bit to see if it's set */
return (mismatch & 1) == 0;
}
-""")
+""",
+ ext_package="cryptography",
+)
def bytes_eq(a, b):
diff --git a/cryptography/hazmat/primitives/padding.py b/cryptography/hazmat/primitives/padding.py
index e517dee0..7c5271cb 100644
--- a/cryptography/hazmat/primitives/padding.py
+++ b/cryptography/hazmat/primitives/padding.py
@@ -59,7 +59,9 @@ uint8_t Cryptography_check_pkcs7_padding(const uint8_t *data,
/* Now check the low bit to see if it's set */
return (mismatch & 1) == 0;
}
-""")
+""",
+ ext_package="cryptography",
+)
class PKCS7(object):