]> git.saurik.com Git - apple/security.git/blob - sec/securityd/spi.c
Security-55163.44.tar.gz
[apple/security.git] / sec / securityd / spi.c
1 /*
2 * spi.c
3 * Security
4 *
5 * Created by Michael Brouwer on 1/28/09.
6 * Copyright (c) 2009-2010 Apple Inc.. All Rights Reserved.
7 *
8 */
9
10 #include <securityd/spi.h>
11 #include <securityd_client.h>
12 #include <securityd_server.h>
13 #include <securityd/SecPolicyServer.h>
14
15 static struct securityd spi = {
16 _SecItemAdd,
17 _SecItemCopyMatching,
18 _SecItemUpdate,
19 _SecItemDelete,
20 SecTrustStoreForDomainName,
21 SecTrustStoreContainsCertificateWithDigest,
22 _SecTrustStoreSetTrustSettings,
23 SecTrustStoreRemoveCertificateWithDigest,
24 _SecTrustStoreRemoveAll,
25 _SecItemDeleteAll,
26 SecTrustServerEvaluate,
27 _SecServerRestoreKeychain,
28 _SecServerMigrateKeychain,
29 _SecServerKeychainBackup,
30 _SecServerKeychainRestore
31 };
32
33 void securityd_init(void) {
34 gSecurityd = &spi;
35 SecPolicyServerInitalize();
36 }