Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwildart <wildart@gmail.com>2016-07-06 20:06:25 +0300
committerwildart <wildart@gmail.com>2016-07-06 20:06:25 +0300
commitbdec62dce1c17465b7330100ea2f71e63fc411dd (patch)
tree055780bdf8a52b963c50b81b5ba99b8913fe8abe /src/transports/http.c
parentd8243465be6ae4c3d0482ec262da58276f3a4e58 (diff)
remove conditions that prevent use of custom TLS stream
Diffstat (limited to 'src/transports/http.c')
-rw-r--r--src/transports/http.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/transports/http.c b/src/transports/http.c
index 4fbbfbbad..30520a05d 100644
--- a/src/transports/http.c
+++ b/src/transports/http.c
@@ -620,7 +620,6 @@ static int http_connect(http_subtransport *t)
error = git_stream_connect(t->io);
-#if defined(GIT_OPENSSL) || defined(GIT_SECURE_TRANSPORT) || defined(GIT_CURL)
if ((!error || error == GIT_ECERTIFICATE) && t->owner->certificate_check_cb != NULL &&
git_stream_is_encrypted(t->io)) {
git_cert *cert;
@@ -640,7 +639,7 @@ static int http_connect(http_subtransport *t)
return error;
}
}
-#endif
+
if (error < 0)
return error;