aboutsummaryrefslogtreecommitdiffstats
path: root/cryptography/hazmat/bindings/commoncrypto/binding.py
diff options
context:
space:
mode:
Diffstat (limited to 'cryptography/hazmat/bindings/commoncrypto/binding.py')
-rw-r--r--cryptography/hazmat/bindings/commoncrypto/binding.py12
1 files changed, 3 insertions, 9 deletions
diff --git a/cryptography/hazmat/bindings/commoncrypto/binding.py b/cryptography/hazmat/bindings/commoncrypto/binding.py
index ee7378ad..e23a2fd9 100644
--- a/cryptography/hazmat/bindings/commoncrypto/binding.py
+++ b/cryptography/hazmat/bindings/commoncrypto/binding.py
@@ -13,9 +13,6 @@
from __future__ import absolute_import, division, print_function
-import platform
-import sys
-
from cryptography.hazmat.bindings.utils import build_ffi
@@ -51,10 +48,7 @@ class Binding(object):
cls.ffi, cls.lib = build_ffi(
module_prefix=cls._module_prefix,
modules=cls._modules,
- extra_link_args=["-framework", "Security"]
+ extra_link_args=[
+ "-framework", "Security", "-framework", "CoreFoundation"
+ ]
)
-
- @classmethod
- def is_available(cls):
- return sys.platform == "darwin" and list(map(
- int, platform.mac_ver()[0].split("."))) >= [10, 8, 0]