aboutsummaryrefslogtreecommitdiffstats
path: root/src/_cffi_src
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2015-12-23 17:13:16 -0500
committerAlex Gaynor <alex.gaynor@gmail.com>2015-12-23 17:13:16 -0500
commit6d99de1ba968215b6c8566738c3f5ff3b7ac3312 (patch)
tree6486fdc6bc32f70d14c768e27ecaa24557a6117f /src/_cffi_src
parent4fe07e84d38846be71dd42471b4a86710b9b808e (diff)
parent1b2a3ea74ee66513c80a738841855eada6126090 (diff)
downloadcryptography-6d99de1ba968215b6c8566738c3f5ff3b7ac3312.tar.gz
cryptography-6d99de1ba968215b6c8566738c3f5ff3b7ac3312.tar.bz2
cryptography-6d99de1ba968215b6c8566738c3f5ff3b7ac3312.zip
Merge pull request #2556 from Lukasa/osx-cert-store
Add binding for CommonCrypto SecTrustCopyAnchorCertificates
Diffstat (limited to 'src/_cffi_src')
-rw-r--r--src/_cffi_src/build_commoncrypto.py1
-rw-r--r--src/_cffi_src/commoncrypto/sectrust.py22
2 files changed, 23 insertions, 0 deletions
diff --git a/src/_cffi_src/build_commoncrypto.py b/src/_cffi_src/build_commoncrypto.py
index 1c2692a7..4e69b6d1 100644
--- a/src/_cffi_src/build_commoncrypto.py
+++ b/src/_cffi_src/build_commoncrypto.py
@@ -22,6 +22,7 @@ ffi = build_ffi_for_binding(
"seckey",
"seckeychain",
"sectransform",
+ "sectrust",
],
extra_link_args=[
"-framework", "Security", "-framework", "CoreFoundation"
diff --git a/src/_cffi_src/commoncrypto/sectrust.py b/src/_cffi_src/commoncrypto/sectrust.py
new file mode 100644
index 00000000..b787afad
--- /dev/null
+++ b/src/_cffi_src/commoncrypto/sectrust.py
@@ -0,0 +1,22 @@
+# This file is dual licensed under the terms of the Apache License, Version
+# 2.0, and the BSD License. See the LICENSE file in the root of this repository
+# for complete details.
+
+from __future__ import absolute_import, division, print_function
+
+INCLUDES = """
+#include <Security/SecTrust.h>
+"""
+
+TYPES = """
+"""
+
+FUNCTIONS = """
+OSStatus SecTrustCopyAnchorCertificates(CFArrayRef *);
+"""
+
+MACROS = """
+"""
+
+CUSTOMIZATIONS = """
+"""