]> git.ipfire.org Git - thirdparty/git.git/commit
osxkeychain: erase matching passwords only
authorBo Anderson <mail@boanderson.me>
Sat, 17 Feb 2024 23:34:55 +0000 (23:34 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 1 Apr 2024 22:38:20 +0000 (15:38 -0700)
commite3cef40db89f5a7c91f4e9d6c4959ca1e41f4647
tree8d2eb6b353605694002c39ef90c282070fabc6ed
parent9032bcad82f45a403e4a8de86e1fcb4bfd1ab282
osxkeychain: erase matching passwords only

Other credential helpers support deleting credentials that match a
specified password. See 7144dee3ec (credential/libsecret: erase matching
creds only, 2023-07-26) and cb626f8e5c (credential/wincred: erase
matching creds only, 2023-07-26).

Support this in osxkeychain too by extracting, decrypting and comparing
the stored password before deleting.

Fixes the following test failure with osxkeychain:

    11 - helper (osxkeychain) does not erase a password distinct from
    input

Signed-off-by: Bo Anderson <mail@boanderson.me>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/credential/osxkeychain/git-credential-osxkeychain.c