diff options
author | John Szakmeister <john@szakmeister.net> | 2021-03-11 21:40:26 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-03-11 22:17:07 -0800 |
commit | cd27f604e41475633d068d3f4852ab6b597c5e75 (patch) | |
tree | c3f95986da48e1580b3a89e770f0655fc7153a24 /mailmap.h | |
parent | Git 2.31-rc2 (diff) | |
download | tgif-cd27f604e41475633d068d3f4852ab6b597c5e75.tar.xz |
http: store credential when PKI auth is used
We already looked for the PKI credentials in the credential store, but
failed to approve it on success. Meaning, the PKI certificate password
was never stored and git would request it on every connection to the
remote. Let's complete the chain by storing the certificate password on
success.
Likewise, we also need to reject the credential when there is a failure.
Curl appears to report client-related certificate issues are reported
with the CURLE_SSL_CERTPROBLEM error. This includes not only a bad
password, but potentially other client certificate related problems.
Since we cannot get more information from curl, we'll go ahead and
reject the credential upon receiving that error, just to be safe and
avoid caching or saving a bad password.
Signed-off-by: John Szakmeister <john@szakmeister.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'mailmap.h')
0 files changed, 0 insertions, 0 deletions