Commit 34f1ded9 by Etienne Samson Committed by Patrick Steinhardt

stransport: provide error message on trust failures

Fixes #4440
parent 7cc80546
...@@ -81,8 +81,10 @@ static int stransport_connect(git_stream *stream) ...@@ -81,8 +81,10 @@ static int stransport_connect(git_stream *stream)
} }
if (sec_res == kSecTrustResultDeny || sec_res == kSecTrustResultRecoverableTrustFailure || if (sec_res == kSecTrustResultDeny || sec_res == kSecTrustResultRecoverableTrustFailure ||
sec_res == kSecTrustResultFatalTrustFailure) sec_res == kSecTrustResultFatalTrustFailure) {
giterr_set(GITERR_SSL, "untrusted connection error");
return GIT_ECERTIFICATE; return GIT_ECERTIFICATE;
}
return 0; return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment