Displaying 1 result from an estimated 1 matches for "get_secret_from_keychain".
2007 Aug 24
0
rsync patch to add Apple keychain support
...keychainOrArray,
UInt32 serviceNameLength, const char *serviceName, UInt32
accountNameLength, const char *accountName, UInt32 *passwordLength,
void **passwordData, SecKeychainItemRef *itemRef);
OSStatus SecKeychainItemFreeContent(SecKeychainAttributeList *attrList,
void *data);
static int get_secret_from_keychain(int module, char *user, char
*secret, unsigned secretmaxlen)
{
char accountname[100] = "";
char* modulename = lp_name(module);
strcat(accountname, modulename);
strcat(accountname, "-");
strcat(accountname, user);
OSStatus status = noErr;
UInt32 passwordLength = 0...