diff options
author | Cory Benfield <lukasaoz@gmail.com> | 2016-01-22 18:12:13 +0000 |
---|---|---|
committer | Cory Benfield <lukasaoz@gmail.com> | 2016-01-22 18:12:13 +0000 |
commit | 0600adc1445b277f27dcb879666b7c52897db53e (patch) | |
tree | 3228ed03223de62b122d6cdfc4cc7d23b841d90f /src/_cffi_src/commoncrypto/sectrust.py | |
parent | 667f0b68bfa233b422ee2a40b453309a9573ef3f (diff) | |
download | cryptography-0600adc1445b277f27dcb879666b7c52897db53e.tar.gz cryptography-0600adc1445b277f27dcb879666b7c52897db53e.tar.bz2 cryptography-0600adc1445b277f27dcb879666b7c52897db53e.zip |
SecTrust for evaluating certificates.
Diffstat (limited to 'src/_cffi_src/commoncrypto/sectrust.py')
-rw-r--r-- | src/_cffi_src/commoncrypto/sectrust.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/_cffi_src/commoncrypto/sectrust.py b/src/_cffi_src/commoncrypto/sectrust.py index b787afad..4c330d04 100644 --- a/src/_cffi_src/commoncrypto/sectrust.py +++ b/src/_cffi_src/commoncrypto/sectrust.py @@ -9,9 +9,24 @@ INCLUDES = """ """ TYPES = """ +typedef ... *SecTrustRef; +typedef uint32_t SecTrustResultType; + +enum { + kSecTrustResultInvalid, + kSecTrustResultProceed, + kSecTrustResultConfirm, + kSecTrustResultDeny, + kSecTrustResultUnspecified, + kSecTrustResultRecoverableTrustFailure, + kSecTrustResultFatalTrustFailure, + kSecTrustResultOtherError + }; """ FUNCTIONS = """ +OSStatus SecTrustCreateWithCertificates(CFTypeRef, CFTypeRef, SecTrustRef *); +OSStatus SecTrustEvaluate(SecTrustRef, SecTrustResultType *); OSStatus SecTrustCopyAnchorCertificates(CFArrayRef *); """ |