aboutsummaryrefslogtreecommitdiffstats
path: root/cryptography/hazmat/bindings/commoncrypto/seckeychain.py
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2014-05-31 21:03:00 -0500
committerPaul Kehrer <paul.l.kehrer@gmail.com>2014-05-31 21:03:00 -0500
commitcce26b140ab5581001778fbcc700abe238757bfa (patch)
treee41d9459c6516a298c02c77917f94e84106a63be /cryptography/hazmat/bindings/commoncrypto/seckeychain.py
parent837ac8ffe359edda80364d4c9f8a6b62cdb6b5ab (diff)
downloadcryptography-cce26b140ab5581001778fbcc700abe238757bfa.tar.gz
cryptography-cce26b140ab5581001778fbcc700abe238757bfa.tar.bz2
cryptography-cce26b140ab5581001778fbcc700abe238757bfa.zip
refactor into separate files
Diffstat (limited to 'cryptography/hazmat/bindings/commoncrypto/seckeychain.py')
-rw-r--r--cryptography/hazmat/bindings/commoncrypto/seckeychain.py36
1 files changed, 36 insertions, 0 deletions
diff --git a/cryptography/hazmat/bindings/commoncrypto/seckeychain.py b/cryptography/hazmat/bindings/commoncrypto/seckeychain.py
new file mode 100644
index 00000000..c045c347
--- /dev/null
+++ b/cryptography/hazmat/bindings/commoncrypto/seckeychain.py
@@ -0,0 +1,36 @@
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+# implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+from __future__ import absolute_import, division, print_function
+
+INCLUDES = """
+#include <Security/SecKeychain.h>
+"""
+
+TYPES = """
+typedef ... *SecKeychainRef;
+"""
+
+FUNCTIONS = """
+OSStatus SecKeychainCreate(const char *, UInt32, const void *, Boolean,
+ SecAccessRef, SecKeychainRef *);
+OSStatus SecKeychainDelete(SecKeychainRef);
+"""
+
+MACROS = """
+"""
+
+CUSTOMIZATIONS = """
+"""
+
+CONDITIONAL_NAMES = {}