Revision: 21841
http://sourceforge.net/p/bibdesk/svn/21841
Author: hofman
Date: 2018-02-07 20:14:22 +0000 (Wed, 07 Feb 2018)
Log Message:
-----------
Pass account for keychain
Modified Paths:
--------------
trunk/bibdesk/BDSKPasswordController.m
Modified: trunk/bibdesk/BDSKPasswordController.m
===================================================================
--- trunk/bibdesk/BDSKPasswordController.m 2018-02-07 20:09:24 UTC (rev
21840)
+++ trunk/bibdesk/BDSKPasswordController.m 2018-02-07 20:14:22 UTC (rev
21841)
@@ -56,7 +56,7 @@
NSData *pwData = nil;
// see if the password exists in the keychain
- err = SecKeychainFindGenericPassword(NULL, strlen(serviceCString),
serviceCString, account ? strlen(accountCString) : 0, NULL, &passwordLength,
&password, NULL);
+ err = SecKeychainFindGenericPassword(NULL, strlen(serviceCString),
serviceCString, account ? strlen(accountCString) : 0, accountCString,
&passwordLength, &password, NULL);
if (err == errSecItemNotFound && name) {
// see if an item in the old format exists
SecKeychainItemRef itemRef = nil;
@@ -98,7 +98,7 @@
UInt32 passwordLength = 0;
// first see if the password exists in the keychain
- err = SecKeychainFindGenericPassword(NULL, strlen(serviceCString),
serviceCString, account ? strlen(accountCString) : 0, NULL, &passwordLength,
(void **)&oldPasswordData, &itemRef);
+ err = SecKeychainFindGenericPassword(NULL, strlen(serviceCString),
serviceCString, account ? strlen(accountCString) : 0, accountCString,
&passwordLength, (void **)&oldPasswordData, &itemRef);
if (err == noErr) {
// password was on keychain, so flush the buffer and then modify the
keychain if necessary
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit