]> git.saurik.com Git - apple/security.git/blob - KeychainSyncAccountUpdater/KeychainSyncAccountUpdater.m
Security-59754.80.3.tar.gz
[apple/security.git] / KeychainSyncAccountUpdater / KeychainSyncAccountUpdater.m
1 #include <os/log.h>
2 #include <CoreFoundation/CoreFoundation.h>
3
4 #import "KeychainSyncAccountUpdater.h"
5
6 @implementation KeychainSyncAccountUpdater
7
8 - (BOOL)includePluginInUpdateSession:(nonnull UpdaterSessionParameters *)parameters
9 {
10 return YES;
11 }
12
13 - (void)updateAccountWithPrivilege
14 {
15 CFPreferencesSetValue(CFSTR("SecItemSynchronizable"), kCFBooleanTrue, CFSTR("com.apple.security"), kCFPreferencesAnyUser, kCFPreferencesCurrentHost);
16 Boolean okay = CFPreferencesAppSynchronize(CFSTR("com.apple.security"));
17 os_log(OS_LOG_DEFAULT, "EnableKeychainSync %d", okay);
18 }
19
20 @end