aboutsummaryrefslogtreecommitdiffstats
path: root/src/_cffi_src/commoncrypto
diff options
context:
space:
mode:
authorCory Benfield <lukasaoz@gmail.com>2016-01-22 18:31:10 +0000
committerCory Benfield <lukasaoz@gmail.com>2016-01-22 18:31:10 +0000
commitef273ebbc19aa49acb1506a8dffdcc5d72d60c6f (patch)
tree080c1a294a05ece02c7e673033297f0fe12eb717 /src/_cffi_src/commoncrypto
parent4755d5c59ee34c3689e50918fe628c39d63bf5da (diff)
downloadcryptography-ef273ebbc19aa49acb1506a8dffdcc5d72d60c6f.tar.gz
cryptography-ef273ebbc19aa49acb1506a8dffdcc5d72d60c6f.tar.bz2
cryptography-ef273ebbc19aa49acb1506a8dffdcc5d72d60c6f.zip
Move SecTrustCreateWithCertificates to MACROS.
Annoyingly, the type of the first parameter changed across versions.
Diffstat (limited to 'src/_cffi_src/commoncrypto')
-rw-r--r--src/_cffi_src/commoncrypto/sectrust.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/_cffi_src/commoncrypto/sectrust.py b/src/_cffi_src/commoncrypto/sectrust.py
index 6b185790..8962f4f2 100644
--- a/src/_cffi_src/commoncrypto/sectrust.py
+++ b/src/_cffi_src/commoncrypto/sectrust.py
@@ -30,6 +30,10 @@ OSStatus SecTrustCopyAnchorCertificates(CFArrayRef *);
"""
MACROS = """
+/* The first argument changed from CFArrayRef to CFTypeRef in 10.8, so this
+ * has to go here for compatibility.
+ */
+OSStatus SecTrustCreateWithCertificates(CFTypeRef, CFTypeRef, SecTrustRef *);
"""
CUSTOMIZATIONS = """