Win32 fix for #2300.

The code doesn't use SSL and a test requires it.
This commit is contained in:
Albert Meltzer 2014-05-12 20:25:44 -07:00
parent df3419269b
commit 7c57cd97d8

View File

@ -206,6 +206,8 @@ static int gitno_ssl_teardown(gitno_ssl *ssl)
return ret; return ret;
} }
#endif
/* Match host names according to RFC 2818 rules */ /* Match host names according to RFC 2818 rules */
int gitno__match_host(const char *pattern, const char *host) 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; return 0;
} }
#ifdef GIT_SSL
static int verify_server_cert(gitno_ssl *ssl, const char *host) static int verify_server_cert(gitno_ssl *ssl, const char *host)
{ {
X509 *cert; X509 *cert;