diff options
| author | Cory Benfield <lukasaoz@gmail.com> | 2016-01-22 18:12:26 +0000 | 
|---|---|---|
| committer | Cory Benfield <lukasaoz@gmail.com> | 2016-01-22 18:12:26 +0000 | 
| commit | cc72cb5fa2f055db780bf7138c7957c41ad5df07 (patch) | |
| tree | 1622b42a6892de032e476aab018607adbbe2f4ef | |
| parent | 0600adc1445b277f27dcb879666b7c52897db53e (diff) | |
| download | cryptography-cc72cb5fa2f055db780bf7138c7957c41ad5df07.tar.gz cryptography-cc72cb5fa2f055db780bf7138c7957c41ad5df07.tar.bz2 cryptography-cc72cb5fa2f055db780bf7138c7957c41ad5df07.zip  | |
New bindings for evaluating certificates.
| -rw-r--r-- | src/_cffi_src/build_commoncrypto.py | 2 | ||||
| -rw-r--r-- | src/_cffi_src/commoncrypto/seccertificate.py | 23 | ||||
| -rw-r--r-- | src/_cffi_src/commoncrypto/secpolicy.py | 23 | 
3 files changed, 48 insertions, 0 deletions
diff --git a/src/_cffi_src/build_commoncrypto.py b/src/_cffi_src/build_commoncrypto.py index 4e69b6d1..09e020a2 100644 --- a/src/_cffi_src/build_commoncrypto.py +++ b/src/_cffi_src/build_commoncrypto.py @@ -17,10 +17,12 @@ ffi = build_ffi_for_binding(          "common_key_derivation",          "common_cryptor",          "common_symmetric_key_wrap", +        "seccertificate",          "secimport",          "secitem",          "seckey",          "seckeychain", +        "secpolicy",          "sectransform",          "sectrust",      ], diff --git a/src/_cffi_src/commoncrypto/seccertificate.py b/src/_cffi_src/commoncrypto/seccertificate.py new file mode 100644 index 00000000..2b54b0ee --- /dev/null +++ b/src/_cffi_src/commoncrypto/seccertificate.py @@ -0,0 +1,23 @@ +# 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/SecCertificate.h> +""" + +TYPES = """ +typedef ... *SecCertificateRef; +""" + +FUNCTIONS = """ +SecCertificateRef SecCertificateCreateWithData(CFAllocatorRef, CFDataRef); +""" + +MACROS = """ +""" + +CUSTOMIZATIONS = """ +""" diff --git a/src/_cffi_src/commoncrypto/secpolicy.py b/src/_cffi_src/commoncrypto/secpolicy.py new file mode 100644 index 00000000..e132cfae --- /dev/null +++ b/src/_cffi_src/commoncrypto/secpolicy.py @@ -0,0 +1,23 @@ +# 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/SecPolicy.h> +""" + +TYPES = """ +typedef ... *SecPolicyRef; +""" + +FUNCTIONS = """ +SecPolicyRef SecPolicyCreateSSL(Boolean, CFStringRef); +""" + +MACROS = """ +""" + +CUSTOMIZATIONS = """ +"""  | 
