aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPKeychain.h
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2011-10-16 14:07:18 +0000
committerrowanbeentje <rowan@beent.je>2011-10-16 14:07:18 +0000
commit02860c5fac3244ad86d2699611f220746aef2f56 (patch)
tree09ce182a42d652ed7f93065fc4a7f78ca5216fa0 /Source/SPKeychain.h
parent952daabb67e002e957429142f11333fa2eb2a8fb (diff)
downloadsequelpro-02860c5fac3244ad86d2699611f220746aef2f56.tar.gz
sequelpro-02860c5fac3244ad86d2699611f220746aef2f56.tar.bz2
sequelpro-02860c5fac3244ad86d2699611f220746aef2f56.zip
- Improve the favourites editing process to edit keychain items, rather than deleting and recreating them. This has two advantages: firstly, it matches the Apple recommendation, as it preserves keychain item access lists and comments for keychain items when they are edited; secondly, it works around a bug in 10.7 which appears to be a Keychain cacheing issue, causing password retrievals to return the original keychain item on launch - which is no longer valid after deletion/recreation. This addresses Issue #1197.
Diffstat (limited to 'Source/SPKeychain.h')
-rw-r--r--Source/SPKeychain.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/SPKeychain.h b/Source/SPKeychain.h
index c1984be1..31182fe1 100644
--- a/Source/SPKeychain.h
+++ b/Source/SPKeychain.h
@@ -30,6 +30,8 @@
- (NSString *)getPasswordForName:(NSString *)name account:(NSString *)account;
- (void)deletePasswordForName:(NSString *)name account:(NSString *)account;
- (BOOL)passwordExistsForName:(NSString *)name account:(NSString *)account;
+- (void)updateItemWithName:(NSString *)name account:(NSString *)account toPassword:(NSString *)password;
+- (void)updateItemWithName:(NSString *)name account:(NSString *)account toName:(NSString *)newName account:(NSString *)newAccount password:(NSString *)password;
- (NSString *)nameForFavoriteName:(NSString *)theName id:(NSString *)theID;
- (NSString *)accountForUser:(NSString *)theUser host:(NSString *)theHost database:(NSString *)theDatabase;
- (NSString *)nameForSSHForFavoriteName:(NSString *)theName id:(NSString *)theID;