libgit2/libgit2 — pull request #2680 by carlosmn (2014-11-02 15:19:08+00:00)
Title: netops: return GIT_ECERTIFICATE when it fails the basic tests

When we first ask OpenSSL to verify the certfiicate itself (rather
than the HTTPS specifics), we should also return
GIT_ECERTIFICATE. Otherwise, the caller would consider this as a failed
operation rather than a failed validation and not call the user's own
validation.

---

We really need to figure out the creation of a test CA and certs and http-hosting repos so we can automatically test this.