]> git.saurik.com Git - apple/security.git/blobdiff - sec/securityd/spi.c
Security-55163.44.tar.gz
[apple/security.git] / sec / securityd / spi.c
diff --git a/sec/securityd/spi.c b/sec/securityd/spi.c
new file mode 100644 (file)
index 0000000..7ecf3c5
--- /dev/null
@@ -0,0 +1,36 @@
+/*
+ *  spi.c
+ *  Security
+ *
+ *  Created by Michael Brouwer on 1/28/09.
+ *  Copyright (c) 2009-2010 Apple Inc.. All Rights Reserved.
+ *
+ */
+
+#include <securityd/spi.h>
+#include <securityd_client.h>
+#include <securityd_server.h>
+#include <securityd/SecPolicyServer.h>
+
+static struct securityd spi = {
+    _SecItemAdd,
+    _SecItemCopyMatching,
+    _SecItemUpdate,
+    _SecItemDelete,
+    SecTrustStoreForDomainName,
+    SecTrustStoreContainsCertificateWithDigest,
+    _SecTrustStoreSetTrustSettings,
+    SecTrustStoreRemoveCertificateWithDigest,
+    _SecTrustStoreRemoveAll,
+    _SecItemDeleteAll,
+    SecTrustServerEvaluate,
+    _SecServerRestoreKeychain,
+    _SecServerMigrateKeychain,
+    _SecServerKeychainBackup,
+    _SecServerKeychainRestore
+};
+
+void securityd_init(void) {
+    gSecurityd = &spi;
+    SecPolicyServerInitalize();
+}