From 7c57cd97d814a39829a6b6e03473e693ea4df602 Mon Sep 17 00:00:00 2001 From: Albert Meltzer Date: Mon, 12 May 2014 20:25:44 -0700 Subject: [PATCH] Win32 fix for #2300. The code doesn't use SSL and a test requires it. --- src/netops.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/netops.c b/src/netops.c index 24092c17f..a0193a022 100644 --- a/src/netops.c +++ b/src/netops.c @@ -206,6 +206,8 @@ static int gitno_ssl_teardown(gitno_ssl *ssl) return ret; } +#endif + /* Match host names according to RFC 2818 rules */ int gitno__match_host(const char *pattern, const char *host) { @@ -256,6 +258,8 @@ static int check_host_name(const char *name, const char *host) return 0; } +#ifdef GIT_SSL + static int verify_server_cert(gitno_ssl *ssl, const char *host) { X509 *cert;