aboutsummaryrefslogtreecommitdiffstats
path: root/Source/KeyChain.m
diff options
context:
space:
mode:
authoravenjamin <avenjamin@gmail.com>2009-02-28 05:02:27 +0000
committeravenjamin <avenjamin@gmail.com>2009-02-28 05:02:27 +0000
commitce5a6e4f3d90dcc775f4d81f19e20c412eb5af23 (patch)
tree977f502a938af428f9433e9850819d3887ddda0d /Source/KeyChain.m
parentb8c9157be916c058f867e24e1d087271de022047 (diff)
downloadsequelpro-ce5a6e4f3d90dcc775f4d81f19e20c412eb5af23.tar.gz
sequelpro-ce5a6e4f3d90dcc775f4d81f19e20c412eb5af23.tar.bz2
sequelpro-ce5a6e4f3d90dcc775f4d81f19e20c412eb5af23.zip
Cleaned up warnings when building against 10.5 SDK
Diffstat (limited to 'Source/KeyChain.m')
-rw-r--r--Source/KeyChain.m34
1 files changed, 17 insertions, 17 deletions
diff --git a/Source/KeyChain.m b/Source/KeyChain.m
index 23ead937..93364175 100644
--- a/Source/KeyChain.m
+++ b/Source/KeyChain.m
@@ -39,12 +39,12 @@
if (![self passwordExistsForName:name account:account]) {
status = SecKeychainAddGenericPassword(
NULL, // default keychain
- [name cStringLength], // length of service name
- [name cString], // service name
- [account cStringLength], // length of account name
- [account cString], // account name
- [password cStringLength], // length of password
- [password cString], // pointer to password data
+ strlen([name UTF8String]), // length of service name
+ [name UTF8String], // service name
+ strlen([account UTF8String]), // length of account name
+ [account UTF8String], // account name
+ strlen([password UTF8String]), // length of password
+ [password UTF8String], // pointer to password data
NULL // the item reference
);
@@ -61,17 +61,17 @@
{
OSStatus status;
- void *passwordData = nil;
- UInt32 passwordLength = nil;
- SecKeychainItemRef itemRef = nil;
+ void *passwordData;
+ UInt32 passwordLength;
+ SecKeychainItemRef itemRef;
NSString *password = @"";
status = SecKeychainFindGenericPassword(
NULL, // default keychain
- [name cStringLength], // length of service name
- [name cString], // service name
- [account cStringLength], // length of account name
- [account cString], // account name
+ strlen([name UTF8String]), // length of service name
+ [name UTF8String], // service name
+ strlen([account UTF8String]), // length of account name
+ [account UTF8String], // account name
&passwordLength, // length of password
&passwordData, // pointer to password data
&itemRef // the item reference
@@ -102,10 +102,10 @@
if ([self passwordExistsForName:name account:account]) {
status = SecKeychainFindGenericPassword(
NULL, // default keychain
- [name cStringLength], // length of service name
- [name cString], // service name
- [account cStringLength], // length of account name
- [account cString], // account name
+ strlen([name UTF8String]), // length of service name
+ [name UTF8String], // service name
+ strlen([account UTF8String]), // length of account name
+ [account UTF8String], // account name
nil, // length of password
nil, // pointer to password data
&itemRef // the item reference