aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SequelProTunnelAssistant.m
diff options
context:
space:
mode:
authorstuconnolly <stuart02@gmail.com>2009-08-07 22:27:09 +0000
committerstuconnolly <stuart02@gmail.com>2009-08-07 22:27:09 +0000
commit1e2d1c7724e7077053862048dac4830a95dd82cd (patch)
treeece7b1bd6068f6ab36e993ed23eacf956cd81767 /Source/SequelProTunnelAssistant.m
parentd7e813476d49f3b9296b94c3c57a495b7f237885 (diff)
downloadsequelpro-1e2d1c7724e7077053862048dac4830a95dd82cd.tar.gz
sequelpro-1e2d1c7724e7077053862048dac4830a95dd82cd.tar.bz2
sequelpro-1e2d1c7724e7077053862048dac4830a95dd82cd.zip
Rename Keychain class.
Diffstat (limited to 'Source/SequelProTunnelAssistant.m')
-rw-r--r--Source/SequelProTunnelAssistant.m8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/SequelProTunnelAssistant.m b/Source/SequelProTunnelAssistant.m
index 462d9a6d..0d9138a1 100644
--- a/Source/SequelProTunnelAssistant.m
+++ b/Source/SequelProTunnelAssistant.m
@@ -23,7 +23,7 @@
// More info at <http://code.google.com/p/sequel-pro/>
#import <Cocoa/Cocoa.h>
-#import "KeyChain.h"
+#import "SPKeychain.h"
#import "SPSSHTunnel.h"
#import "RegexKitLite.h"
@@ -69,7 +69,7 @@ int main(int argc, const char *argv[])
// If the password method is set to use the keychain, use the supplied keychain name to
// request the password
if ([[environment objectForKey:@"SP_PASSWORD_METHOD"] intValue] == SPSSH_PASSWORD_USES_KEYCHAIN) {
- KeyChain *keychain;
+ SPKeychain *keychain;
NSString *keychainName = [environment objectForKey:@"SP_KEYCHAIN_ITEM_NAME"];
NSString *keychainAccount = [environment objectForKey:@"SP_KEYCHAIN_ITEM_ACCOUNT"];
@@ -79,7 +79,7 @@ int main(int argc, const char *argv[])
return 1;
}
- keychain = [[KeyChain alloc] init];
+ keychain = [[SPKeychain alloc] init];
if (![keychain passwordExistsForName:keychainName account:keychainAccount]) {
NSLog(@"SSH Tunnel: specified keychain password not found");
[keychain release];
@@ -131,7 +131,7 @@ int main(int argc, const char *argv[])
if (keyName) {
// Check whether the passphrase is in the keychain, using standard OS X sshagent name and account
- KeyChain *keychain = [[KeyChain alloc] init];
+ SPKeychain *keychain = [[SPKeychain alloc] init];
if ([keychain passwordExistsForName:@"SSH" account:keyName]) {
printf("%s\n", [[keychain getPasswordForName:@"SSH" account:keyName] UTF8String]);
[keychain release];