From ef273ebbc19aa49acb1506a8dffdcc5d72d60c6f Mon Sep 17 00:00:00 2001 From: Cory Benfield Date: Fri, 22 Jan 2016 18:31:10 +0000 Subject: Move SecTrustCreateWithCertificates to MACROS. Annoyingly, the type of the first parameter changed across versions. --- src/_cffi_src/commoncrypto/sectrust.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/_cffi_src/commoncrypto') 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 = """ -- cgit v1.2.3