core: debug cert calls

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2020-04-17 15:01:40 -07:00
parent 8629fa3f18
commit 12bafa4e41

View file

@ -289,6 +289,8 @@ int credential_https_cb(git_cred **out,
int certificate_check_cb(git_cert *cert, int valid, const char *host, void *payload) int certificate_check_cb(git_cert *cert, int valid, const char *host, void *payload)
{ {
UNUSED(payload); UNUSED(payload);
if (verbose)
SSRF_INFO("certificate callback for host %s with validity %d\n", host, valid);
if (same_string(host, "cloud.subsurface-divelog.org") && cert->cert_type == GIT_CERT_X509) { if (same_string(host, "cloud.subsurface-divelog.org") && cert->cert_type == GIT_CERT_X509) {
// for some reason the LetsEncrypt certificate makes libgit2 throw up on some // for some reason the LetsEncrypt certificate makes libgit2 throw up on some
// platforms but not on others // platforms but not on others