mingw: wrap SSL_set_(w|r)fd to call _get_osfhandle
authorErik Faye-Lund <redacted>
Mon, 19 Oct 2009 15:42:07 +0000 (17:42 +0200)
committerJunio C Hamano <redacted>
Tue, 20 Oct 2009 05:17:36 +0000 (22:17 -0700)
commit514213bf72cb61725e42440aaf8dd53fa4c33a74
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 <redacted>
Acked-by: Johannes Sixt <redacted>
Signed-off-by: Junio C Hamano <redacted>
compat/mingw.h
git clone https://git.99rst.org/PROJECT