Skip to content

Commit

Permalink
Merge pull request #10 from jverdi/master
Browse files Browse the repository at this point in the history
Set kSecAttrAccessible to default to kSecAttrAccessibleAfterFirstUnlock
  • Loading branch information
kishikawakatsumi committed Oct 31, 2013
2 parents 137b273 + 3981e32 commit 8fdda85
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Lib/UICKeyChainStore.m
Expand Up @@ -209,6 +209,7 @@ + (BOOL)setData:(NSData *)data forKey:(NSString *)key service:(NSString *)servic
[attributes setObject:service forKey:(__bridge id)kSecAttrService];
[attributes setObject:key forKey:(__bridge id)kSecAttrGeneric];
[attributes setObject:key forKey:(__bridge id)kSecAttrAccount];
[attributes setObject:(__bridge id)kSecAttrAccessibleAfterFirstUnlock forKey:(__bridge id)kSecAttrAccessible];
[attributes setObject:data forKey:(__bridge id)kSecValueData];
#if !TARGET_IPHONE_SIMULATOR && defined(__IPHONE_OS_VERSION_MIN_REQUIRED)
if (accessGroup) {
Expand Down

0 comments on commit 8fdda85

Please sign in to comment.