search for: seckeychainfindgenericpassword

Displaying 2 results from an estimated 2 matches for "seckeychainfindgenericpassword".

2007 Aug 24
0
rsync patch to add Apple keychain support
...k CoreServices -------------------------------------------------------------- In authenticate.c, I added the following function: -------------------------------------------------------------- #include <CoreFoundation/CoreFoundation.h> #include <CoreServices/CoreServices.h> OSStatus SecKeychainFindGenericPassword(CFTypeRef keychainOrArray, UInt32 serviceNameLength, const char *serviceName, UInt32 accountNameLength, const char *accountName, UInt32 *passwordLength, void **passwordData, SecKeychainItemRef *itemRef); OSStatus SecKeychainItemFreeContent(SecKeychainAttributeList *attrList, void *data); s...
2004 Jan 06
1
Keychain Patch Try II
...(""); } -#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.", prompt); - strncpy(buf, (char *)password_data, (size < password_len...