Skip to content
This repository has been archived by the owner on Aug 24, 2019. It is now read-only.

Some sort of "synchronizable" setting? #156

Open
benguild opened this issue Oct 4, 2016 · 1 comment
Open

Some sort of "synchronizable" setting? #156

benguild opened this issue Oct 4, 2016 · 1 comment

Comments

@benguild
Copy link

benguild commented Oct 4, 2016

(__bridge id)kSecAttrSynchronizable: (__bridge id)kCFBooleanTrue
@benguild benguild changed the title "synchronizable" setting? Some sort of "synchronizable" setting? Oct 4, 2016
@mheicke
Copy link

mheicke commented Mar 6, 2017

It seems like the synchronizationMode can be directly set if you create a SAMKeychainQuery, just use (as an example):

+ (BOOL)setPassword:(NSString *)password forService:(NSString *)serviceName account:(NSString *)account error:(NSError *__autoreleasing *)error {
	SAMKeychainQuery *query = [[SAMKeychainQuery alloc] init];
	query.synchronizationMode = SAMKeychainQuerySynchronizationModeNo;
	query.service = serviceName;
	query.account = account;
	query.password = password;
	return [query save:error];
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants