author | Erik Faye-Lund <kusmabite@googlemail.com> | |
Mon, 19 Oct 2009 15:42:07 +0000 (17:42 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 20 Oct 2009 05:17:36 +0000 (22:17 -0700) | ||
commit | 514213bf72cb61725e42440aaf8dd53fa4c33a74 | |
tree | 541407959d427118350b2277cacb307219b8dfce | tree | snapshot |
parent | f9a88b70f94917f95e247a0e6e4d37f163fb41e3 | commit | diff |
mingw: wrap SSL_set_(w|r)fd to call _get_osfhandle
SSL_set_fd (and friends) expects a OS file handle on Windows, not
a file descriptor as on UNIX(-ish).
This patch makes the Windows version of SSL_set_fd behave like the
UNIX versions, by calling _get_osfhandle on it's input.
Signed-off-by: Erik Faye-Lund <kusmabite@gmail.com>
Acked-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
SSL_set_fd (and friends) expects a OS file handle on Windows, not
a file descriptor as on UNIX(-ish).
This patch makes the Windows version of SSL_set_fd behave like the
UNIX versions, by calling _get_osfhandle on it's input.
Signed-off-by: Erik Faye-Lund <kusmabite@gmail.com>
Acked-by: Johannes Sixt <j6t@kdbg.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
compat/mingw.h | diff | blob | history |