diff options
author | Junio C Hamano <gitster@pobox.com> | 2021-10-11 19:21:47 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-10-11 19:21:47 +0200 |
commit | 97492aacffee48dd217164f6af4b9d1db1aa6646 (patch) | |
tree | 3dc52dd1021a58845040a6f579c58fda522f6d5a /http.c | |
parent | Merge branch 'js/win-lazyload-buildfix' (diff) | |
parent | http: check CURLE_SSL_PINNEDPUBKEYNOTMATCH when emitting errors (diff) | |
download | git-97492aacffee48dd217164f6af4b9d1db1aa6646.tar.xz git-97492aacffee48dd217164f6af4b9d1db1aa6646.zip |
Merge branch 'ab/http-pinned-public-key-mismatch'
HTTPS error handling updates.
* ab/http-pinned-public-key-mismatch:
http: check CURLE_SSL_PINNEDPUBKEYNOTMATCH when emitting errors
Diffstat (limited to 'http.c')
-rw-r--r-- | http.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -1489,6 +1489,10 @@ static int handle_curl_result(struct slot_results *results) */ credential_reject(&cert_auth); return HTTP_NOAUTH; +#ifdef GIT_CURL_HAVE_CURLE_SSL_PINNEDPUBKEYNOTMATCH + } else if (results->curl_result == CURLE_SSL_PINNEDPUBKEYNOTMATCH) { + return HTTP_NOMATCHPUBLICKEY; +#endif } else if (missing_target(results)) return HTTP_MISSING_TARGET; else if (results->http_code == 401) { |