1
0
mirror of https://github.com/docker/docker-credential-helpers.git synced 2026-06-13 16:01:28 +05:30

Implemented list functionality for secretservice- linux

Signed-off-by: Avi Vaid <avaid1996@gmail.com>
This commit is contained in:
Avi Vaid
2016-07-11 19:33:35 -04:00
parent 5a8fb214ed
commit 72661b3103
5 changed files with 70 additions and 2 deletions
+2 -2
View File
@@ -140,7 +140,7 @@ char *keychain_list(char *** paths, char *** accts, unsigned int *list_l) {
CFStringRef pathTmp = CFDictionaryGetValue(currKey, CFSTR("path"));
CFStringRef acctTmp = CFDictionaryGetValue(currKey, CFSTR("acct"));
if (acctTmp == NULL) {
acctTmp = CFSTR("<unknown>");
acctTmp = CFSTR("account not defined");
}
char * path = (char *) malloc(CFStringGetLength(pathTmp)+1);
path = CFStringToCharArr(pathTmp);
@@ -172,4 +172,4 @@ void freeListData(char *** data, unsigned int length) {
free((*data)[i]);
}
free(*data);
}
}