mingw: wrap SSL_set_(w|r)fd to call _get_osfhandle
commit514213bf72cb61725e42440aaf8dd53fa4c33a74
authorErik Faye-Lund <kusmabite@googlemail.com>
Mon, 19 Oct 2009 15:42:07 +0000 (19 17:42 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 20 Oct 2009 05:17:36 +0000 (19 22:17 -0700)
tree541407959d427118350b2277cacb307219b8dfce
parentf9a88b70f94917f95e247a0e6e4d37f163fb41e3
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>
compat/mingw.h