This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
NSDictionary *query = @{(id)kSecClass : (id)kSecClassGenericPassword, | |
(id)kSecAttrService : @"HazeLight: CloudFlare API Key", | |
(id)kSecReturnAttributes : @YES, | |
(id)kSecReturnData : @YES}; | |
NSDictionary *item = NULL; | |
CFTypeRef result = (__bridge CFTypeRef)item; | |
OSStatus status = SecItemCopyMatching((__bridge CFDictionaryRef)query, &result); | |
item = (NSDictionary *)CFBridgingRelease(result); | |
if (status == errSecSuccess) |
NewerOlder