Commit Graph

1278 Commits

Author SHA1 Message Date
Jacek Caban 78b2cedaa6 wininet: Make sure to not read over chunk end in read_gzip_data. 2009-12-17 12:53:23 +01:00
Juan Lang 09246aa1a7 wininet: Set error and fail if a secure connection's certificate couldn't be verified. 2009-12-16 12:20:26 +01:00
Juan Lang bd5c5953f3 wininet: Return error directly from netconn_verify_cert. 2009-12-16 12:20:21 +01:00
Jacek Caban 9823c23927 wininet: Directly return error status from HTTP_HttpQueryInfoW. 2009-12-14 12:07:52 +01:00
Juan Lang 03fe473ad7 wininet: Check the certificate in an https connection using the crypto api. 2009-12-14 12:06:04 +01:00
Juan Lang 6217326a09 wininet: Set callback to verify hostname with peer's certificate. 2009-12-14 12:05:52 +01:00
Juan Lang 880133d248 wininet: Store hostname for secure connection in its SSL context. 2009-12-14 12:05:45 +01:00
Juan Lang 1350e9d1c0 wininet: Free OpenSSL error strings at unload. 2009-12-14 12:05:37 +01:00
Juan Lang 33e68268a4 wininet: Don't unnecessarily convert hostname to ANSI to check it. 2009-12-14 12:05:31 +01:00
Jacek Caban 5b76702e84 wininet: Set lpszUrlPath in InternetCrackUrlW if its length is 0. 2009-12-10 11:55:58 +01:00
Jacek Caban d153344eaa wininet: Make InternetCrackUrlA tests more generic and add more tests. 2009-12-10 11:55:52 +01:00
Jacek Caban 5e8e358a71 wininet: lpszUrlPath should be NULL for URLs in file:///... format. 2009-12-10 11:55:33 +01:00
Jacek Caban 2d1c4e6928 wininet: Correctly handle dwContentRead for gzip encoded requests. 2009-12-09 13:13:53 +01:00
Juan Lang 66b4ad208d wininet: Fix an apparent typo. 2009-12-09 12:02:30 +01:00
Juan Lang 3cd54553f3 wininet: Trace more parameters to HTTP_GetCustomHeaderIndex. 2009-12-09 12:02:26 +01:00
Hans Leidekker bf58fdd197 wininet/tests: Mark behavior of IE5 as broken for some ftp tests. 2009-12-08 12:37:20 +01:00
Hans Leidekker 4a22c88b37 wininet: Cleanup any existing cache file before creating a new one.
Otherwise we leak the file name and handle when a request is sent again.
Found by Valgrind.
2009-12-07 14:18:29 +01:00
Hans Leidekker e018a5e25b wininet: Add a test for status callbacks on ftp connections. 2009-12-04 14:42:44 +01:00
Hans Leidekker 5f08249831 wininet: Fix some status callbacks to return a string instead of a sockaddr structure.
Spotted by Juan Lang.
2009-12-04 14:42:37 +01:00
Francois Gouget f3b738f63c wininet: Make FTP_FtpOpenFileW() static. 2009-12-04 14:34:58 +01:00
Juan Lang b967fde0a8 wininet: Correct length of data passed to callback when resolving a name. 2009-12-04 14:34:57 +01:00
Jacek Caban a9ecdc6024 wininet: Directly return error status from HTTP_HandleRedirect. 2009-12-03 15:27:22 +01:00
Jacek Caban 741b6611fb wininet: Directly return error status fro HTTP_HttpEndRequest. 2009-12-03 15:27:14 +01:00
Jacek Caban c952e81a89 wininet: Directly return error from HTTP_HttpSendRequest. 2009-12-03 15:27:08 +01:00
Jacek Caban 903d9c460d wininet: Remove a few more INTERNET_SetLastError calls. 2009-12-03 15:27:02 +01:00
Michael Stefaniuc b8a087d6a8 wininet: Free the mem unconditionally to prevent a potential leak (Smatch). 2009-12-03 10:21:48 +01:00
Hans Leidekker be86c2976b wininet: Implement InternetQueryOption(INTERNET_OPTION_DATAFILE_NAME) for ftp file objects. 2009-12-02 12:12:39 +01:00
Hans Leidekker 6f6ee2e712 wininet: Also cache files transferred over ftp. 2009-12-02 12:12:33 +01:00
Hans Leidekker c4d12bde2b wininet/tests: Trace extended errors in a couple of places. 2009-12-01 13:16:34 +01:00
Jacek Caban 34fcbb5f75 wininet: Make HTTP_HttpSendRequestW static and avoid its forward declaration. 2009-12-01 12:59:36 +01:00
Jacek Caban e974965185 wininet: Directly return error status from HTTP_HttpAddRequestHeadersW. 2009-12-01 12:59:23 +01:00
Jacek Caban 85a057e186 wininet: Directly return error status from HTTP_HttpOpenRequestW. 2009-12-01 12:59:16 +01:00
Jacek Caban 47c71fcd0a wininet: Make HTTP_HttpOpenRequestW static and avoid forward its declaration. 2009-12-01 12:59:07 +01:00
Jacek Caban b01d58428b wininet: Directly return error status from NETCON_init. 2009-12-01 12:58:58 +01:00
Jacek Caban 1d96e20e8a wininet: Directly return error status from refill_buffer. 2009-12-01 12:58:52 +01:00
Jacek Caban 358e7b7c8a wininet: Directly return error status from NETCON_recv. 2009-12-01 12:58:34 +01:00
Jacek Caban 4e3eabd6fa wininet: Don't use INTERNET_SetLastError in HttpSendRequestW. 2009-11-30 12:48:52 +01:00
Jacek Caban c55d0a8516 wininet: Directly return error status from NETCON_close. 2009-11-30 12:48:46 +01:00
Jacek Caban 36cb1ef3d3 wininet: Directly return error status from HTTP_OpenConnection. 2009-11-30 12:48:40 +01:00
Jacek Caban 1ee3ad476e wininet: Directly return error status from WriteFile implementations. 2009-11-30 12:48:33 +01:00
Jacek Caban b77868cbfd wininet: Dorectly return error status from NETCON_secure_connect and NETCON_send. 2009-11-30 12:48:27 +01:00
Jacek Caban bf1da4c857 wininet: Directly return error status from NETCON_connect. 2009-11-30 12:48:20 +01:00
Jacek Caban cff77d602c wininet: Directly return error status from NETCON_create. 2009-11-30 12:48:09 +01:00
Hans Leidekker 4990ca0ea3 wininet: Avoid a crash on NULL lpcszHeader in HttpSendRequestExW. 2009-11-17 16:05:36 +01:00
Dan Kegel 15d7b7b777 wininet: FTP_FtpOpenFileW: initialize dwInternalFlags. 2009-11-09 19:36:11 +01:00
Austin English 2387532c3f wininet: Add stubs for FreeUrlCacheSpace. 2009-11-03 21:17:18 +01:00
Hans Leidekker 248939d358 wininet: Clean up locks after closing libssl and libcrypto.
Found by valgrind.
2009-10-27 10:53:32 +01:00
Hans Leidekker e62fdaf0f1 wininet: Avoid accessing uninitialized memory in HttpSendRequestExW.
Found by valgrind.
2009-10-27 10:53:08 +01:00
Hans Leidekker b707a523e3 wininet: Avoid accessing uninitialized memory in ConvertUrlComponentValue.
Found by valgrind.
2009-10-27 10:53:04 +01:00
Hans Leidekker 4a8f4f2867 wininet: Avoid accessing uninitialized memory.
Found by valgrind.
2009-10-26 11:20:09 +01:00
Hans Leidekker 0f127fc7a1 wininet: Avoid accessing uninitialized memory.
Found by valgrind.
2009-10-23 12:04:15 +02:00
Aric Stewart fc5089349d wininet: Cache basic authentication values based on realm and host. 2009-10-13 14:19:47 +02:00
Juan Lang b214fc62f1 wininet: Quiet a fixme. 2009-10-05 13:22:53 +02:00
Juan Lang 05a7e3d386 wininet: Correct user agent handling. 2009-10-05 13:22:47 +02:00
Juan Lang 3c98992f55 wininet: Set callbacks needed by OpenSSL for multithreaded use. 2009-10-02 17:12:13 +02:00
Juan Lang 41592569fd wininet: Unload OpenSSL when unloading wininet. 2009-10-02 17:11:49 +02:00
Juan Lang a001ed7686 wininet: Protect OpenSSL initialization with critical section. 2009-10-01 13:59:12 +02:00
Juan Lang 5c6f47f7a7 wininet: Move initialization of SSL_CTX to library initialization time. 2009-10-01 13:59:03 +02:00
Erik Inge Bolsø 5af1a49738 wininet: Add test for response without headers, avoid crash. 2009-09-30 14:31:57 +02:00
Andrew Eikum 0250eab25e wininet: Always extract #fragments in InternetCrackUrl. 2009-09-29 12:31:51 +02:00
Hans Leidekker 09f1ace555 wininet: Add some URL cache tests and make them pass. 2009-09-25 14:39:35 +02:00
Hans Leidekker d590a20f6d wininet: Consistently set last error before testing it. 2009-09-25 14:39:28 +02:00
Hans Leidekker 784b58a280 wininet: Try harder to find a unique cache file name. 2009-09-25 14:39:22 +02:00
Aric Stewart 05926a10ff wininet: Be sure to set lpwfs->pasvSocket to -1 when closing the socket to prevent double closes. 2009-09-17 10:10:33 -05:00
Aric Stewart 51a57b7e25 wininet: Ensure the ftp connections lstnSocket is set to -1 after each close. 2009-09-16 14:47:12 -05:00
Paul Vriens 8b6ae91042 wininet/tests: Run tests again on systems with IE5. 2009-09-15 16:41:24 -05:00
Paul Vriens bf1b965e96 wininet/tests: Fix a test failure on IE8. 2009-09-10 15:33:07 +02:00
Hans Leidekker 50fef74131 wininet: Destroy authorization info on failure in HTTP_DoAuthorization.
This makes sure the app can retry authorization, e.g. when username and
password are not supplied upfront and there are no cached credentials.
2009-09-02 14:41:40 +02:00
Vincent Povirk 980bb171ee wininet: Allow +.- characters in url scheme.
According to RFC 1738, the plus, period, and hyphen characters are allowed in URL schemes.
2009-08-26 12:09:48 +02:00
Jacek Caban 4dfec39b6f wininet: Don't free gzip_stream in HTTPREQ_CloseConnection. 2009-08-24 15:17:12 +02:00
Luca Bennati 18af49ab23 wininet: Update Italian translation. 2009-08-20 15:27:45 +02:00
Vladimir Pankratov 6ec190e55c wininet: Update Russian translation. 2009-08-18 11:40:02 +02:00
Michael Stefaniuc a0509811a5 wininet: Update the Romanian translation. 2009-08-18 11:17:33 +02:00
Juan Lang 6ae6ea99b4 wininet: Partially implement InternetQueryOption for INTERNET_OPTION_DIAGNOSTIC_SOCKET_INFO. 2009-08-11 12:32:24 +02:00
Juan Lang 6ec60e26bc wininet: Implement proxy-related per-connection option queries. 2009-08-11 12:31:33 +02:00
Juan Lang 3ed82127c6 wininet: Fix memory leak querying proxy settings. 2009-08-11 12:31:23 +02:00
Ricardo Filipe 57675f801c wininet: Fix Portuguese translation and convert to UTF8. 2009-08-06 17:28:14 +02:00
Alexander Nicolaysen Sørnes 7d2bc2f9df wininet: Update Norwegian Bokmål translation. 2009-08-04 12:50:27 +02:00
Jacek Caban 3858e35432 wininet: Explicity delete Content-Length header for gzip encoded connection. 2009-08-03 14:59:35 +02:00
Paul Vriens fededdd2d7 wininet: Avoid potential NULL dereferences (Coverity). 2009-08-03 14:57:53 +02:00
Vladimir Pankratov b6ac03a9a7 wininet: Convert the Russian resources to UTF-8. 2009-08-03 14:57:25 +02:00
Hans Leidekker 8881335842 wininet: Update Dutch translation. 2009-07-24 11:10:18 +02:00
Hans Leidekker 50761eac23 wininet: Use a different pointer for the password in WININET_SetAuthorization. 2009-07-24 11:10:14 +02:00
Frédéric Delanoy 2b18ed11a5 wininet: Update French translation. 2009-07-24 11:10:09 +02:00
André Hentschel f32366a6b9 wininet: Update German translation. 2009-07-24 11:10:00 +02:00
Aurimas Fišeras fb374536f0 wininet: Update Lithuanian translation. 2009-07-24 11:09:55 +02:00
Hans Leidekker 6b15db8717 wininet: Add a regular authentication dialog. 2009-07-23 13:20:07 +02:00
Hans Leidekker 29162c6506 wininet: Prepare for showing a regular authentication dialog. 2009-07-23 13:19:58 +02:00
Hans Leidekker 1126b89360 wininet: Don't leak the proxy username and password in WININET_SetProxyAuthorization. 2009-07-23 13:19:52 +02:00
Hans Leidekker 4b1e0de90f wininet: Release the request in WININET_GetProxyServer and WININET_SetProxyAuthorization. 2009-07-23 13:19:48 +02:00
Hans Leidekker fa4c25ddf4 wininet: Correct handling of redirected HEAD requests. 2009-07-22 14:42:49 +02:00
Jacek Caban 1c46be7a76 wininet: Code clean up by using heap_strdup* functions. 2009-07-20 12:20:36 +02:00
Jacek Caban 0055cfedc2 wininet: Code clean up by using heap_strdup* functions. 2009-07-20 12:20:27 +02:00
Jacek Caban 97936252dd wininet: Code clean up by using heap_strdup* functions. 2009-07-17 11:21:59 +02:00
Jacek Caban 13974e9d5a wininet: Code clean up by using heap_strdup* functions. 2009-07-17 11:17:13 +02:00
Jacek Caban 5d6f01b76b wininet: Rename WININET_strdup_WtoA to heap_strdupWtoA. 2009-07-17 11:16:55 +02:00
Jacek Caban e09dfcfa99 wininet: Rename WININET_strdup_AtoW to heap_strdupAtoW and handle NULL argument in its implementation. 2009-07-17 11:16:50 +02:00
Jacek Caban f598709212 wininet: Rename WININET_strdupW to standard heap_strdupW. 2009-07-17 11:16:42 +02:00
Michael Stefaniuc 9949661c65 Set the encoding of the remaining German resources to UTF-8. 2009-07-15 13:23:29 +02:00
Jacek Caban 54870c1431 wininet: Rename WININETFTPFILEW to ftp_file_t. 2009-07-13 10:27:04 +02:00
Jacek Caban 8adbf8ce01 wininet: Rename WININETFTPSESSIONW to ftp_session_t. 2009-07-13 10:26:59 +02:00
Jacek Caban 6d1601a850 wininet: Rename WININETAPPINFOW to appinfo_t. 2009-07-13 10:26:52 +02:00
Jacek Caban 34abacde71 wininet: Rename WININETHTTPREQW to http_request_t. 2009-07-13 10:26:39 +02:00
Jacek Caban e9f4a40584 wininet: Rename WININETHTTPSESSIONW to http_session_t. 2009-07-13 10:26:32 +02:00
Juan Lang cd0c18be6c wininet: Support IPv6 in GetAddress. 2009-07-10 12:25:46 +02:00
Juan Lang 78b813236a wininet: Fail in FTP if the resolved name is not an IPv4 address. 2009-07-10 12:25:33 +02:00
Juan Lang 481c9b895d wininet: Support IPv6 addresses in HTTP_ResolveName and HTTP_OpenConnection. 2009-07-10 12:25:25 +02:00
Juan Lang 058e918da5 wininet: Convert WININETSESSIONW's socketAddress to a struct sockaddr_storage. 2009-07-10 12:25:17 +02:00
Juan Lang c572e1c99a wininet: Use address length returned by GetAddress in NETCON_connect. 2009-07-10 12:25:10 +02:00
Juan Lang 9f82d9c779 wininet: Use sizeof(member) rather than sizeof(type) for address lengths. 2009-07-10 12:25:05 +02:00
Juan Lang deabdca653 wininet: Use length reported by GetAddress in FTP_Connect. 2009-07-10 12:24:58 +02:00
Juan Lang 33d09e7364 wininet: Use struct sockaddr_storage in InternetCheckConnectionW. 2009-07-10 12:24:53 +02:00
Juan Lang f0dde6b673 wininet: Simplify GetAddress when using getaddrinfo. 2009-07-10 12:24:42 +02:00
Juan Lang 44bf025767 wininet: Change type of GetAddress from struct sockaddr_in * to struct sockaddr *. 2009-07-10 12:24:35 +02:00
Juan Lang 9fd8462add wininet: Fix tests when running behind a proxy server. 2009-07-10 12:24:16 +02:00
Jacek Caban 44d633a902 wininet: Rename WININETHANDLEHEADER to object_header_t.
wininet struct names are very unreadable and I hope that patches 
renaming them will be accepted.
2009-07-08 20:13:00 +02:00
Frédéric Delanoy 71da857d82 wininet: Fix French translation & UI display. 2009-07-07 11:00:18 +02:00
Michael Stefaniuc d66c092108 wininet: Build language resource files separately.
Do not include them from an other rc file.
2009-07-03 11:31:46 +02:00
Maksim Kuleshov d233118f7a wininet: Fix sockets leak in FTP_Connect. 2009-06-26 14:40:46 +02:00
Hans Leidekker deeb3a9fcb wininet: Improve the PrivacyGet/SetZonePreferenceW stubs. 2009-06-25 14:34:14 +02:00
Eric van Beurden f0ce72082d wininet: Check for failed heap allocations. 2009-06-25 14:34:13 +02:00
Eric van Beurden 42c7dc94e2 wininet: Add a terminating empty line to the headers if necessary. 2009-06-25 14:34:13 +02:00
Aric Stewart c6ae945bf7 wininet: Semi-stub for quering Http INTERNET_OPTION_SECURITY_FLAGS. 2009-06-23 15:53:01 +02:00
Aric Stewart b9f2f9d226 wininet: Improve HTTP status 100 handling. 2009-06-23 15:53:01 +02:00
Hans Leidekker aa05f97fc9 wininet: Don't delete the cache file when closing a request. 2009-06-23 11:48:17 +02:00
Hans Leidekker c29328583d wininet: Implement InternetQueryOption(INTERNET_OPTION_CACHE_TIMESTAMPS). 2009-06-16 15:41:08 +02:00
Hans Leidekker 7ba8c86f85 wininet: Don't fail if dwReserved is set in CreateUrlCacheEntryW. 2009-06-16 15:41:04 +02:00
Mike Kaplinskiy 413934cac5 wininet/test: Test malformed header separators. 2009-06-16 13:49:56 +02:00
Mike Kaplinskiy 6c767c4e2c wininet: Make \r and \n valid header separators. 2009-06-16 13:49:52 +02:00
Hans Leidekker 70454967f9 wininet: Always create a URL cache entry. 2009-06-16 13:37:29 +02:00
Aurimas Fišeras e078ad3e2a wininet: Add Lithuanian translation. 2009-06-15 13:42:28 +02:00
Jacek Caban a76db21978 wininet: Fixed gzip decoding on chunked stream. 2009-06-08 15:27:21 +02:00
Alexandre Julliard 4b2a15de9f wininet: Always use a full URL for redirects, even with an absolute path. 2009-06-05 20:37:57 +02:00
Eric van Beurden 59a217847c wininet: Rearrange invalid header checks. 2009-06-05 14:43:24 +02:00
Eric van Beurden 5caf809426 wininet: Check for bad allocation in HeapReAlloc. 2009-06-05 14:43:24 +02:00
Paul Vriens 094cc84ed2 wininet/tests: Fix a few typos. 2009-06-03 11:26:27 +02:00
Jacek Caban 45064eb5b0 wininet: Fixed tests on Windows. 2009-06-02 11:57:21 +02:00
Jacek Caban ac57ea14f5 wininet: Test gzip encoded read. 2009-06-01 16:16:01 +02:00
Jacek Caban 11ca05f6ae wininet: Added support for decompressing gzip encoded content. 2009-06-01 16:16:01 +02:00
Jacek Caban 26bbf072aa wininet: Change read_buf type to BYTE. 2009-06-01 16:16:01 +02:00
Jacek Caban d1d1da35ca wininet: Always set path in HttpOpenRequest. 2009-06-01 16:16:01 +02:00
Jacek Caban 83170893ae wininet: Move strings to avoid duplications. 2009-06-01 16:16:01 +02:00
Alexandre Julliard 5c227a9d8a wininet: Add a critical section to protect the read-ahead buffer. 2009-05-28 23:01:28 +02:00
Marcus Meissner 1d362c90a4 wininet: lpwhr cannot be NULL (Coverity 927). 2009-05-20 13:34:12 +02:00
Detlef Riekenberg c4e6018320 wininet/tests: Remove a duplicate test. 2009-05-18 12:34:39 +02:00
Alexandre Julliard d1de5f37d0 wininet: Get rid of the SSL-specific read-ahead buffer. 2009-05-14 16:55:29 +02:00
Alexandre Julliard bb5d973127 wininet/tests: Add a test for reading chunked data. 2009-05-14 16:49:19 +02:00
Alexandre Julliard 3d02c42b39 wininet: Add a read-ahead buffer to allow InternetQueryDataAvailable to return the right values in chunked mode. 2009-05-14 16:45:38 +02:00
Alexandre Julliard e531ccd6b0 wininet: Centralize detection of chunked mode and add a flag for it in the http request structure. 2009-05-14 16:42:44 +02:00
Paul Vriens 82f22bbaee wininet/tests: Fix some test failures on systems with IE6 or older. 2009-05-14 11:13:06 +02:00