osxkeychain: erase all matching credentials
Other credential managers erased all matching credentials, as indicated by a test case that osxkeychain failed: 15 - helper (osxkeychain) erases all matching credentials Signed-off-by: Bo Anderson <mail@boanderson.me> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
9abe31f5f1
commit
9032bcad82
@ -182,7 +182,8 @@ static OSStatus delete_internet_password(void)
|
|||||||
if (!protocol || !host)
|
if (!protocol || !host)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
attrs = CREATE_SEC_ATTRIBUTES(NULL);
|
attrs = CREATE_SEC_ATTRIBUTES(kSecMatchLimit, kSecMatchLimitAll,
|
||||||
|
NULL);
|
||||||
result = SecItemDelete(attrs);
|
result = SecItemDelete(attrs);
|
||||||
CFRelease(attrs);
|
CFRelease(attrs);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user