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

Commit

Permalink
Merge pull request #39 from Lickability/master
Browse files Browse the repository at this point in the history
iCloud Keychain Support
  • Loading branch information
soffes committed Jul 21, 2013
2 parents a397632 + c2a6bbb commit b3cca1e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
5 changes: 5 additions & 0 deletions SSKeychain/SSKeychainQuery.h
Expand Up @@ -28,6 +28,11 @@
@property (nonatomic, copy) NSString *accessGroup;
#endif

#if __IPHONE_7_0 || __MAC_10_9
/** kSecAttrSynchronizable */
@property (nonatomic, getter = isSynchronizable) BOOL synchronizable;
#endif

/** Root storage for password information */
@property (nonatomic, copy) NSData *passwordData;

Expand Down
9 changes: 9 additions & 0 deletions SSKeychain/SSKeychainQuery.m
Expand Up @@ -20,6 +20,9 @@ @implementation SSKeychainQuery
@synthesize accessGroup = _accessGroup;
#endif

#if __IPHONE_7_0 || __MAC_10_9
@synthesize synchronizable = _synchronizable;
#endif

#pragma mark - Public

Expand Down Expand Up @@ -176,6 +179,12 @@ - (NSMutableDictionary *)query {
}
#endif
#endif

#if __IPHONE_7_0 || __MAC_10_9
if (self.isSynchronizable) {
[dictionary setObject:@YES forKey:(__bridge id)(kSecAttrSynchronizable)];
}
#endif

return dictionary;
}
Expand Down

0 comments on commit b3cca1e

Please sign in to comment.