Commit Graph

1228 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