Commit Graph

90 Commits

Author SHA1 Message Date
Jacek Caban 3e60241677 winhttp: Store socked address in netconn_t.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-18 20:43:31 +02:00
Jacek Caban e129023eb7 winhttp: Pass socket address as sockaddr_storage to netconn_connect.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-18 20:43:31 +02:00
Jacek Caban c2f464decb winhttp: Get rid of no longer needed netconn_init.
Spotted by Hans.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-14 22:54:03 +02:00
Jacek Caban c502629819 winhttp: Allocate netconn_t separately from request_t.
Once persistent connections will be supported, life time of connection
may exceed life time of request object.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-13 18:34:45 +02:00
Jacek Caban c06104c62a winhttp: Store security_flags in request_t instead of netconn_t.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-07-13 18:34:43 +02:00
Hans Leidekker ec35394570 winhttp: Handle EINTR from connect and poll.
Signed-off-by: Hans Leidekker <hans@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-12-13 13:13:50 +01:00
Hans Leidekker 2b6dacfdbe winhttp: Don't report data pending in the socket.
Some installers make assumptions about the size of the internal buffer. We could
exceed that size when there's enough data pending in the socket.
2014-12-09 13:16:43 +01:00
Bruno Jesus 53f8d78e57 winhttp: Use a helper to receive data and take care of EINTR. 2014-06-17 10:36:39 +02:00
Bruno Jesus 6db935a6f4 winhttp: Use a helper to send data and take care of EINTR. 2014-06-17 10:36:03 +02:00
Hans Leidekker 6494c50ad7 winhttp: Fix a couple of memory leaks (valgrind). 2014-05-13 13:47:11 +02:00
Jacek Caban 92426b5136 winhttp: Use netconn_query_data_available in get_available_data when possible. 2013-11-01 11:03:29 +01:00
Hans Leidekker 52ef52e085 winhttp: Get rid of the flags parameter to netconn_send. 2013-05-01 16:01:02 +02:00
Jacek Caban 816f7ef595 winhttp: Improved error handling in netconn_secure_connect. 2013-04-02 12:47:27 +02:00
Francois Gouget fbe7ab5c5a winhttp: netconn_get_next_line() is not used anymore so remove it. 2013-03-26 17:41:46 +01:00
Hans Leidekker a55e3d4f57 winhttp: Remove support for MSG_PEEK. 2013-03-25 16:27:38 +01:00
Hans Leidekker 9e019c9b4b winhttp: Make the first parameter of resolve_hostname const. 2013-03-07 14:56:38 +01:00
Alexandre Julliard 847a29375c winhttp: Always pass a ULONG variable to ioctlsocket. 2013-03-06 14:09:57 +01:00
Andrew Talbot a9983e6cd2 winhttp: Avoid signed-unsigned integer comparisons. 2013-03-06 11:42:56 +01:00
Jacek Caban 42750e340e winhttp: Removed no longer used netconn_init argument. 2013-02-21 19:16:32 +01:00
Jacek Caban 3fd046b460 winhttp: Get cert store directly from cert in netconn_verify_cert. 2013-02-20 13:17:31 +01:00
Jacek Caban 5b38dac7ac winhttp: Use schannel for HTTPS connection by defaul and get rid of OpenSSL dependency. 2013-01-23 23:41:27 +01:00
Jacek Caban 90124e084f winhttp: Added schannel-based netconn_get_cipher_strength implementation. 2013-01-23 23:41:24 +01:00
Jacek Caban d15265db28 winhttp: Added schannel-based netconn_get_certificate implementation. 2013-01-23 23:41:21 +01:00
Jacek Caban a3e15549d6 winhttp: Added schannel-based netconn_send implementation. 2013-01-23 23:41:18 +01:00
Jacek Caban db22753a05 winhttp: Added schannel-based netconn_recv implementation. 2013-01-23 23:41:15 +01:00
Jacek Caban de0d75312b winhttp: Use schannel in netconn_secure_connect if OpenSSL is not available. 2013-01-23 23:41:12 +01:00
Jacek Caban 25de5d7a55 winhttp: Enable more OpenSSL-independent code when OpenSSL is not available. 2013-01-23 23:41:09 +01:00
Andrew Talbot 4be1fce0d1 winhttp: Remove unused variables. 2012-11-23 14:41:07 +01:00
Jacek Caban 8b64a2f13c winhttp: Use SSL_pending in netconn_query_data_available. 2012-04-19 13:57:35 +02:00
Jacek Caban 9a82f6a812 winhttp: Fixed netconn_recv when read uses both SSL_recv and buffered data. 2012-04-19 13:57:33 +02:00
Hans Leidekker 9a2f3cb98a winhttp: Consistently use the allocation macros. 2011-12-01 14:17:51 +01:00
Francois Gouget 57c123365a winhttp: Delete the static critical sections when unloading the dll. 2011-11-17 11:38:25 +01:00
Francois Gouget ea93b27c34 winhttp: Give a name to the critical sections. 2011-11-14 20:15:22 +01:00
Jerome Leclanche 66b075a0c9 winhttp: Fix a warning when compiling --without-openssl. 2011-06-20 19:32:02 +02:00
Alexandre Julliard 84f2960e5b winhttp: Use an accessor function instead of directly accessing the X509_STORE_CTX structure. 2011-04-20 16:28:31 +02:00
Juan Lang 55aae25d35 winhttp: Verify revocation status of certificate chain. 2010-11-16 11:44:08 +01:00
Andrew Nguyen ccc2f5abae winhttp: Fix misleading OpenSSL version number check. 2010-10-25 14:33:20 +02:00
Andrew Nguyen 0c7bd62df2 winhttp: Fix const qualifier warning for OpenSSL 1.0.0. 2010-10-25 14:33:10 +02:00
Juan Lang 938767cae3 winhttp: Let CertVerifyCertificateChainPolicy handle certain security flags. 2010-10-04 11:04:04 +02:00
Juan Lang 4127062a3e winhttp: Support querying the cipher strength of an SSL connection. 2010-10-01 13:43:04 +02:00
Juan Lang ee2e9cc339 winhttp: Verify SSL policy of chains whose errors were ignored. 2010-10-01 13:42:49 +02:00
Juan Lang 756c171659 winhttp: Honor more SECURITY_FLAG_IGNORE flags. 2010-10-01 13:42:45 +02:00
Juan Lang 5566d424f1 winhttp: Don't make use of OpenSSL's security checks, as crypt32 also verifies certificate chain. 2010-10-01 13:42:40 +02:00
Juan Lang 10ef345307 winhttp: Remove unused function pointer. 2010-10-01 13:42:34 +02:00
Uwe Bonnes 53391a3445 wininet: Add const qualifier after openssl version check. 2010-08-02 17:39:20 +02:00
Hans Leidekker 5fc17a2800 winhttp: Handle errors from SSL_read. 2010-07-22 12:52:39 +02:00
Juan Lang b659dee999 winhttp: Honor security flags when verifying a certificate. 2010-05-18 08:48:35 +02:00
Juan Lang 2a569a9e89 winhttp: Store a pointer to the netconn_t in the SSL context. 2010-05-18 08:48:29 +02:00
Michael Stefaniuc eb558c4403 winhttp: Remove redundant "not 0" test of argument len. 2010-05-17 12:42:33 +02:00
Hans Leidekker b467efb5c8 winhttp: Add support for resolve timeouts. 2010-02-22 13:15:56 +01:00