diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2016-01-22 17:04:09 -0500 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2016-01-22 17:04:09 -0500 |
commit | 1af5dd9dcb1dd56fe3a0cedaf78427cda9c7b644 (patch) | |
tree | d186c3c2b847aab5aa1d2cc6a57ae03d5c1d9aa1 /src/_cffi_src/commoncrypto/cf.py | |
parent | 44ae6cd19b952e927ec636d70e2c84d5b60b590b (diff) | |
parent | ef273ebbc19aa49acb1506a8dffdcc5d72d60c6f (diff) | |
download | cryptography-1af5dd9dcb1dd56fe3a0cedaf78427cda9c7b644.tar.gz cryptography-1af5dd9dcb1dd56fe3a0cedaf78427cda9c7b644.tar.bz2 cryptography-1af5dd9dcb1dd56fe3a0cedaf78427cda9c7b644.zip |
Merge pull request #2683 from Lukasa/more-common-crypto
Bindings for validating TLS cert chains using Security.framework
Diffstat (limited to 'src/_cffi_src/commoncrypto/cf.py')
-rw-r--r-- | src/_cffi_src/commoncrypto/cf.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/_cffi_src/commoncrypto/cf.py b/src/_cffi_src/commoncrypto/cf.py index 9d4387e6..02e58d90 100644 --- a/src/_cffi_src/commoncrypto/cf.py +++ b/src/_cffi_src/commoncrypto/cf.py @@ -20,6 +20,7 @@ typedef ... *CFDataRef; typedef signed long long CFIndex; typedef ... *CFStringRef; typedef ... *CFArrayRef; +typedef ... *CFMutableArrayRef; typedef ... *CFBooleanRef; typedef ... *CFErrorRef; typedef ... *CFNumberRef; @@ -35,6 +36,9 @@ typedef struct { typedef struct { ...; } CFRange; +typedef struct { + ...; +} CFArrayCallBacks; typedef UInt32 CFStringEncoding; enum { @@ -65,6 +69,8 @@ typedef int CFNumberType; const CFDictionaryKeyCallBacks kCFTypeDictionaryKeyCallBacks; const CFDictionaryValueCallBacks kCFTypeDictionaryValueCallBacks; +const CFArrayCallBacks kCFTypeArrayCallBacks; + const CFBooleanRef kCFBooleanTrue; const CFBooleanRef kCFBooleanFalse; """ @@ -94,6 +100,10 @@ Boolean CFBooleanGetValue(CFBooleanRef); CFNumberRef CFNumberCreate(CFAllocatorRef, CFNumberType, const void *); void CFRelease(CFTypeRef); CFTypeRef CFRetain(CFTypeRef); + +CFMutableArrayRef CFArrayCreateMutable(CFAllocatorRef, CFIndex, + const CFArrayCallBacks *); +void CFArrayAppendValue(CFMutableArrayRef, const void *); """ MACROS = """ |