Skip to content

Commit

Permalink
Test Keychain
Browse files Browse the repository at this point in the history
  • Loading branch information
Philip Messlehner committed Jan 18, 2010
1 parent 5abd5f1 commit b59acec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Classes/SFHFKeychainUtils.m
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@


static NSString *SFHFKeychainUtilsErrorDomain = @"SFHFKeychainUtilsErrorDomain"; static NSString *SFHFKeychainUtilsErrorDomain = @"SFHFKeychainUtilsErrorDomain";


#if __IPHONE_OS_VERSION_MIN_REQUIRED < 30000 && TARGET_IPHONE_SIMULATOR #if __IPHONE_OS_VERSION_MIN_REQUIRED < 30000 && (TARGET_IPHONE_SIMULATOR || !TARGET_OS_IPHONE)
@interface SFHFKeychainUtils (PrivateMethods) @interface SFHFKeychainUtils (PrivateMethods)
+ (SecKeychainItemRef) getKeychainItemReferenceForUsername: (NSString *) username andServiceName: (NSString *) serviceName error: (NSError **) error; + (SecKeychainItemRef) getKeychainItemReferenceForUsername: (NSString *) username andServiceName: (NSString *) serviceName error: (NSError **) error;
@end @end
#endif #endif


@implementation SFHFKeychainUtils @implementation SFHFKeychainUtils


#if __IPHONE_OS_VERSION_MIN_REQUIRED < 30000 && TARGET_IPHONE_SIMULATOR #if __IPHONE_OS_VERSION_MIN_REQUIRED < 30000 && (TARGET_IPHONE_SIMULATOR || !TARGET_OS_IPHONE)


+ (NSString *) getPasswordForUsername: (NSString *) username andServiceName: (NSString *) serviceName error: (NSError **) error { + (NSString *) getPasswordForUsername: (NSString *) username andServiceName: (NSString *) serviceName error: (NSError **) error {
if (!username || !serviceName) { if (!username || !serviceName) {
Expand Down

0 comments on commit b59acec

Please sign in to comment.