summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2014-09-16 13:35:36 +0200
committerCarlos Martín Nieto <cmn@dwim.me>2014-09-16 17:02:33 +0200
commit4fe5b771b5c6c72ca33bf7593fe1aca1afd02578 (patch)
tree168db35338597a75ee6fb5258aeff0a45f6e083e
parent1e0aa105faff1bd6987665506037f299b8e0e1cb (diff)
downloadlibgit2-4fe5b771b5c6c72ca33bf7593fe1aca1afd02578.tar.gz
winhttp: get rid of the cert ignore flag
This brings us back in line with the other transports.
-rw-r--r--src/transports/winhttp.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/transports/winhttp.c b/src/transports/winhttp.c
index 5c74b5672..8aef63193 100644
--- a/src/transports/winhttp.c
+++ b/src/transports/winhttp.c
@@ -388,13 +388,6 @@ static int winhttp_stream_connect(winhttp_stream *s)
if (t->owner->parent.read_flags(&t->owner->parent, &flags) < 0)
goto on_error;
-
- if ((GIT_TRANSPORTFLAGS_NO_CHECK_CERT & flags) &&
- !WinHttpSetOption(s->request, WINHTTP_OPTION_SECURITY_FLAGS,
- (LPVOID)&no_check_cert_flags, sizeof(no_check_cert_flags))) {
- giterr_set(GITERR_OS, "Failed to set options to ignore cert errors");
- goto on_error;
- }
}
/* If we have a credential on the subtransport, apply it to the request */