diff options
author | Vicent Marti <vicent@github.com> | 2014-05-13 12:35:56 +0200 |
---|---|---|
committer | Vicent Marti <vicent@github.com> | 2014-05-13 12:35:56 +0200 |
commit | e161962634c641240e6cd1667559199757accb11 (patch) | |
tree | f7614fe459c6bab27cd73122521c8fa9d10301d4 | |
parent | df3419269bb3a7dba18f1df8a31d7d79e0a20475 (diff) | |
parent | 7c57cd97d814a39829a6b6e03473e693ea4df602 (diff) | |
download | libgit2-e161962634c641240e6cd1667559199757accb11.tar.gz |
Merge pull request #2346 from kitbellew/fix2300
Minor fix for previously merged netops code.
-rw-r--r-- | src/netops.c | 4 |
1 files changed, 4 insertions, 0 deletions
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; |