search for: password_data

Displaying 1 result from an estimated 1 matches for "password_data".

2004 Jan 06
1
Keychain Patch Try II
...p; RP_ALLOW_EOF) + return NULL; + return xstrdup(""); } -#endif /* USE_KEYCHAIN */ ret = xstrdup(buf); memset(buf, 'x', sizeof buf); return ret; } - -#ifdef USE_KEYCHAIN - -int get_passphrase_from_keychain(const char *prompt, char buf[], size_t size) -{ - void *password_data; - UInt32 password_length; - - if (SecKeychainFindGenericPassword(NULL, strlen(prompt), prompt, strlen(prompt), prompt, &password_length, &password_data, NULL) == noErr) { - /* Then we got the password from the Keychain */ - fprintf(stderr, "%s found in Keychain.", promp...