aboutsummaryrefslogtreecommitdiffstats
path: root/credential.h
diff options
context:
space:
mode:
authorM Hickford <mirth.hickford@gmail.com>2023-06-15 19:19:32 +0000
committerJunio C Hamano <gitster@pobox.com>2023-06-15 13:26:39 -0700
commitaeb21ce22eec112b37975443a160cb5418c6ec22 (patch)
tree8137c8aed31a7ee6b35c48ace8646c5e4126cfa5 /credential.h
parentfe86abd7511a9a6862d5706c6fa1d9b57a63ba09 (diff)
downloadgit-aeb21ce22eec112b37975443a160cb5418c6ec22.tar.gz
credential: avoid erasing distinct password
Test that credential helpers do not erase a password distinct from the input. Such calls can happen when multiple credential helpers are configured. Fixes for credential-cache and credential-store. Signed-off-by: M Hickford <mirth.hickford@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'credential.h')
-rw-r--r--credential.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/credential.h b/credential.h
index b8e2936d1d..acc41adf54 100644
--- a/credential.h
+++ b/credential.h
@@ -211,6 +211,6 @@ void credential_from_url(struct credential *, const char *url);
int credential_from_url_gently(struct credential *, const char *url, int quiet);
int credential_match(const struct credential *want,
- const struct credential *have);
+ const struct credential *have, int match_password);
#endif /* CREDENTIAL_H */