Ray Satiro <raysat...@yahoo.com> writes: > Anything in OpenSSL that tries to write to a socket will fail because it's > passed a fd and not a socket. For example sock_write() in openssl's > crypto/bio/bss_sock.c:153 calling send() and passing a fd will cause an error > of > WSAENOTSOCK.
It shouldn't happen. If you look at openssl.c:401, we register the socket on Windows, not the fd. I am just guessing it should work but I don't have a Windows machine where I can check it by myself. > Another thing is the configure test for openssl is still using ssl and crypto > libs > configure:22076: gcc -o conftest.exe -O2 -Wall conftest.c -lssl -lcrypto > >&5 > but on windows you want > -lssl -lcrypto -lws2_32 -lgdi32 > As I mentioned at some other point in time what you'd expect is shared libs > when > building. Unfortunately a similar test for that will fail if the actual dll > is > not in the path. Would it be better for just an AC_CHECK_LIB on eay32 and > ssl32? I have pushed some patches to do it. Can you please try with the development version if something is improved? I have cross compiled to mingw without problems, I have obtained OpenSSL for mingw using mingw-cross-env[1], which saved me from the burden of cross-compiling it. > Another thing re ipv6 support: > host.c: In function 'getaddrinfo_with_timeout_callback': > host.c:383:3: warning: implicit declaration of function 'getaddrinfo' > host.c: In function 'lookup_host': > host.c:787:5: warning: implicit declaration of function 'freeaddrinfo' > > In windows ws2tcpip.h should be included in addition to winsock2.h. Some > headers > for ws2tcpip.h have the winsock2.h include some don't. The order is > # include <winsock2.h> > # include <ws2tcpip.h> > > When ipv6 is enabled _WIN32_WINNT should be defined >= 0x0501 (WinXP) before > includes. This means wget with ipv6 will not work on win2000. There's a > solution > for this but it requires rewriting code that is copyrighted microsoft for a > getaddrinfo wrapper, unless someone has already done this. Is windows 2000 > support still wanted? I have one request from last year but other than that I > don't hear about it anymore. I think the gnulib getaddrinfo does it. Have you tried the gnutls version of wget? Does it work for you? Thanks, Giuseppe 1) http://mingw-cross-env.nongnu.org/