mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Fix up indentation in gnc-keyring.c.
It was partly gnu-style.
This commit is contained in:
parent
2c45e0ecba
commit
08fd3e9797
@ -126,21 +126,25 @@ void gnc_keyring_set_password (const gchar *access_method,
|
||||
// FIXME I'm not sure this works if a password was already in the keychain
|
||||
// I may have to do a lookup first and if it exists, run some
|
||||
// update function instead
|
||||
status = SecKeychainAddInternetPassword ( NULL, /* keychain */
|
||||
status =
|
||||
SecKeychainAddInternetPassword (NULL, /* keychain */
|
||||
strlen(server), server, /* servername */
|
||||
strlen(access_method), access_method, /* securitydomain */
|
||||
strlen(access_method),
|
||||
access_method, /* securitydomain */
|
||||
strlen(user), user, /* acountname */
|
||||
strlen(service), service, /* path */
|
||||
port, /* port */
|
||||
kSecProtocolTypeAny, /* protocol */
|
||||
kSecAuthenticationTypeDefault, /* auth type */
|
||||
strlen(password), password, /* passworddata */
|
||||
strlen(password),
|
||||
password, /* passworddata */
|
||||
itemRef );
|
||||
|
||||
if ( status != noErr )
|
||||
{
|
||||
CFStringRef osx_resultstring = SecCopyErrorMessageString( status, NULL );
|
||||
const gchar *resultstring = CFStringGetCStringPtr(osx_resultstring,
|
||||
const gchar *resultstring =
|
||||
CFStringGetCStringPtr(osx_resultstring,
|
||||
GetApplicationTextEncoding());
|
||||
PWARN ( "OS X keychain error: %s", resultstring );
|
||||
PWARN ( "The user will be prompted for a password again next time." );
|
||||
|
Loading…
Reference in New Issue
Block a user