mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-21 12:24:58 +00:00
Merge pull request #2680 from libgit2/cmn/invalid-cert-return
netops: return GIT_ECERTIFICATE when it fails the basic tests
This commit is contained in:
commit
873eb899e4
@ -276,7 +276,7 @@ static int verify_server_cert(gitno_ssl *ssl, const char *host)
|
||||
|
||||
if (SSL_get_verify_result(ssl->ssl) != X509_V_OK) {
|
||||
giterr_set(GITERR_SSL, "The SSL certificate is invalid");
|
||||
return -1;
|
||||
return GIT_ECERTIFICATE;
|
||||
}
|
||||
|
||||
/* Try to parse the host as an IP address to see if it is */
|
||||
|
Loading…
Reference in New Issue
Block a user