Skip to content

Commit

Permalink
Set kSecAttrAccessible to default to kSecAttrAccessibleAfterFirstUnlock
Browse files Browse the repository at this point in the history
  • Loading branch information
jverdi committed Oct 30, 2013
1 parent e8604a7 commit 3981e32
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 3981e32

Please sign in to comment.