Commit Graph

162 Commits

Author SHA1 Message Date
Alexandre Julliard 3c31cc5836 wininet: Build with msvcrt.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-11-25 20:47:43 +01:00
Daniel Lehman 9678045056 wininet: Always check if context can be deleted when freeing netconn.
Signed-off-by: Daniel Lehman <dlehman25@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-12-03 22:27:05 +01:00
Michael Stefaniuc b1a3b9e5ce wininet: Use the ARRAY_SIZE() macro.
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-20 19:44:17 +02:00
Dmitry Timoshkov 24f3d50ccc wininet: Remove unused parameter from create_netconn().
Signed-off-by: Dmitry Timoshkov <dmitry@baikal.ru>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-07 19:27:22 +02:00
Jacek Caban 2952c637e3 wininet: Get rid of no longer needed get_avail_data from data stream implementations.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-03-13 19:28:54 +01:00
Alistair Leslie-Hughes 5ee82583f7 wininet: Free socket when connection is freed.
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-04-12 12:03:17 +09:00
Jacek Caban 9d3fda008f wininet: Cache blocking state in netconn_t. 2015-06-22 19:16:49 +09:00
Jacek Caban eef89b5070 wininet: Call set_socket_blocking always and only when needed. 2015-06-22 19:16:49 +09:00
Jacek Caban 9d7d27ea7f wininet: Don't use blocking_mode_t in netconn.c. 2015-06-19 17:00:05 +09:00
Jacek Caban 6fe5546210 wininet: Get rid of unneeded MSG_WAITALL support in NETCON_recv. 2015-06-18 21:41:03 +09:00
Jacek Caban b720e42fcf wininet: Pass timeout as DWORD in setsockopt calls. 2015-03-25 21:17:44 +09:00
Jacek Caban 8ef78d068f wininet: Get rid of no longer needed sock_get_error. 2015-03-12 13:54:16 +09:00
Jacek Caban 6d4abc78d0 wininet: Call WSACleanup only if WSAStartup was previously called successfully.
Spotted by Piotr.
2015-02-24 21:55:49 +09:00
Jacek Caban 5436fef807 wininet: Always use winsock sockets. 2015-02-13 21:47:13 +09:00
Jacek Caban 5d6d2fda7b wininet: Use set_socket_blocking helper in a few more places. 2015-02-13 21:46:50 +09:00
Jacek Caban de5c1fb8e9 wininet: Initialize winsock before creating socket in Windows builds. 2015-02-12 22:12:04 +09:00
Jacek Caban 4fe1be148e wininet: Properly handle EWOULDBLOCK return from connect(). 2015-02-12 17:58:01 +09:00
Jacek Caban f3e02c2fc0 wininet: Properly check for ioctlsocket failure in NETCON_is_alive. 2015-02-12 17:57:57 +09:00
Jacek Caban c815baf899 wininet: Use sock_get_error in a few more places. 2015-02-12 17:57:49 +09:00
Jacek Caban cafbd54457 wininet: Use WSAGetLastError in sock_get_error in Windows builds. 2015-02-12 17:57:25 +09:00
Bruno Jesus d654ff6dfc wininet: Handle CERT_TRUST_IS_NOT_SIGNATURE_VALID in netconn_verify_cert(). 2014-12-31 11:38:45 +01:00
Bruno Jesus 8a15ea1190 wininet: Use a helper to receive data and take care of EINTR. 2014-06-12 18:05:06 +02:00
Bruno Jesus 1b8d8ef372 wininet: Use a helper to send data and take care of EINTR. 2014-06-11 16:11:44 +02:00
Hans Leidekker e49ebbe953 wininet: Fix a memory leak (valgrind). 2014-05-13 13:47:11 +02:00
Jacek Caban d8948da1b4 wininet: Improved non-blocking mode in secure NETCON_recv. 2014-03-05 19:16:50 +01:00
Jacek Caban 0767e06044 wininet: Use blocking_mode_t instead of flags in NETCON_recv. 2014-03-05 19:16:46 +01:00
Hans Leidekker 7ba776532d wininet: Always store the SSL context.
This allows applications to query certificate properties when verification has failed.
2013-12-11 12:57:04 +01:00
Hans Leidekker 6c7c15059a wininet: Separate socket destruction from destruction of the connection object. 2013-12-11 12:57:01 +01:00
Hans Leidekker 9373d4c578 wininet: Return an error when ensure_cred_handle fails. 2013-12-11 12:56:57 +01:00
Jacek Caban 77ed56cffb wininet: Don't bother reconnecting to server for compat secure mode if we don't have compat cred handle. 2013-04-08 19:49:07 +02:00
Jacek Caban cde372700c wininet: Use schannel for HTTPS connection by defaul and get rid of OpenSSL dependency. 2013-04-03 17:50:03 +02:00
Jacek Caban cb1998afd2 wininet: Added NETCON_get_data_available support for schannel-based connections. 2013-04-03 17:49:50 +02:00
Jacek Caban 7d386bfcd8 wininet: Added NETCON_GetCert support for schannel-based connections. 2013-04-03 17:49:45 +02:00
Jacek Caban 6c6e084a7d wininet: Added NETCON_recv support for schannel-based connections. 2013-04-03 17:49:41 +02:00
Jacek Caban 71ba6fcb9f wininet: Added NETCON_send support for schannel-based connections. 2013-04-03 17:49:37 +02:00
Jacek Caban d473803765 wininet: Use schannel in NETCON_GetCipherStrength if OpenSSL is not available. 2013-04-03 17:49:29 +02:00
Jacek Caban 952588eac4 wininet: Use schannel in NETCON_secure_connect if OpenSSL is not available. 2013-04-03 17:49:18 +02:00
Jacek Caban 083500caf2 wininet: Moved more compat logic to netcon_secure_connect_setup. 2013-04-02 12:47:27 +02:00
Andrew Talbot ae77b3d368 wininet: Avoid signed-unsigned integer comparisons. 2013-03-13 11:29:29 +01:00
Alexandre Julliard 456773fdc0 wininet: Always pass a ULONG variable to ioctlsocket. 2013-03-06 14:09:57 +01:00
Jacek Caban 125583c4d9 wininet: Use secure variable instead of ssl_s handle in a few more places. 2013-03-04 19:28:21 +01:00
Jacek Caban febbb85528 wininet: Renamed socketFD to socket. 2013-03-01 18:03:30 +01:00
Jacek Caban c6ee6d6c9e wininet: Renamed useSSL to secure and set it after secure connection is established. 2013-03-01 18:03:30 +01:00
Jacek Caban 85991a7cdd wininet: Fail in NETCON_secure_connect instead of create_netconn if OpenSSL is not available. 2013-02-21 19:16:36 +01:00
Hans Leidekker f33f7a5df1 wininet: Map socket errors to ERROR_INTERNET_CANNOT_CONNECT in create_netconn_socket. 2012-12-19 14:38:59 +01:00
Hans Leidekker 59247cf9db wininet: Don't perform revocation checks when verifying a certificate. 2012-12-11 12:03:42 +01:00
Jacek Caban bd42c0416a wininet: Fixed HTTP CONNECT secure connection. 2012-11-16 17:42:47 +01:00
Marcus Meissner 02a80554f8 wininet: Move freeing netconn into create_netconn_socket (Coverity). 2012-11-15 21:22:05 +01:00
Hiroshi Miura 923ac2e546 wininet: Add a TLS fallback mechanism. 2012-11-01 19:16:25 +01:00
Jacek Caban e2a9511b30 wininet: Added support for more certificate error types. 2012-06-18 17:49:05 +02:00