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
This commit is contained in:
4
http.c
4
http.c
@ -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) {
|
||||
|
Reference in New Issue
Block a user