- Oct 18, 2016
-
-
Daniel Stenberg authored
Curl_select_ready() was the former API that was replaced with Curl_select_check() a while back and the former arg setup was provided with a define (in order to leave existing code unmodified). Now we instead offer SOCKET_READABLE and SOCKET_WRITABLE for the most common shortcuts where only one socket is checked. They're also more visibly macros.
-
Daniel Stenberg authored
... so that it becomes more obvious in the code what is what. Also added a typecast for one of the calculations.
-
Daniel Stenberg authored
-
- Oct 17, 2016
-
-
Jay Satiro authored
- Change back behavior so that pipelining is considered possible for connections that have not yet reached the protocol level. This is a follow-up to e5f0b1ab which had changed the behavior of checking if pipelining is possible to ignore connections that had 'bits.close' set. Connections that have not yet reached the protocol level also have that bit set, and we need to consider pipelining possible on those connections.
-
- Oct 16, 2016
-
-
Marcel Raad authored
This fixes a merge error in commit 7f3df804 caused by commit 332e8d61. Additionally, this changes Curl_verify_windows_version for Windows App builds to assume to always be running on the target Windows version. There seems to be no way to determine the Windows version from a UWP app. Neither GetVersion(Ex), nor VerifyVersionInfo, nor the Version Helper functions are supported. Bug: https://github.com/curl/curl/pull/820#issuecomment-250889878 Reported-by: Paul Joyce Closes https://github.com/curl/curl/pull/1048
-
- Oct 14, 2016
-
-
Rider Linden authored
No longer attempt to use "doomed" to-be-closed connections when pipelining. Prior to this change connections marked for deletion (e.g. timeout) would be erroneously used, resulting in sporadic crashes. As originally reported and fixed by Carlo Wood (origin unknown). Bug: https://github.com/curl/curl/issues/627 Reported-by: Rider Linden Closes https://github.com/curl/curl/pull/1075 Participation-by: <nopjmp@users.noreply.github.com>
-
- Oct 13, 2016
-
-
Daniel Stenberg authored
To make it harder to do cross-protocol mistakes
-
- Oct 10, 2016
-
-
Remo E authored
Closes #922
-
Andreas Streichardt authored
Closes #1066
-
- Oct 08, 2016
-
-
Tobias Stoeckmann authored
Not all reply messages were properly checked for their lengths, which made it possible to access uninitialized memory (but this does not lead to out of boundary accesses). Closes #1052
-
Daniel Stenberg authored
128 arguments should be enough for everyone
-
Daniel Stenberg authored
... it no longer takes printf() arguments since it was only really taken advantage by one user and it was not written and used in a safe way. Thus the 'f' is removed from the function name and the proto is changed. Although the current code wouldn't end up in badness, it was a risk that future changes could end up springf()ing too large data or passing in a format string inadvertently.
-
Daniel Stenberg authored
The previous use of snprintf() could make libcurl silently truncate some input data and not report that back on overly large input, which could make data get sent over the network in a bad format. Example: $ curl --form 'a=b' -H "Content-Type: $(perl -e 'print "A"x4100')"
-
- Oct 04, 2016
-
-
Daniel Stenberg authored
-
Daniel Stenberg authored
The error path would previously add a freed entry to the linked list. Reported-by: Toby Peterson Fixes #1053
-
- Oct 03, 2016
-
-
Sergei Kuzmin authored
Cokie with the same domain but different tailmatching property are now considered different and do not replace each other. If header contains following lines then two cookies will be set: Set-Cookie: foo=bar; domain=.foo.com; expires=Thu Mar 3 GMT 8:56:27 2033 Set-Cookie: foo=baz; domain=foo.com; expires=Thu Mar 3 GMT 8:56:27 2033 This matches Chrome, Opera, Safari, and Firefox behavior. When sending stored tokens to foo.com Chrome, Opera, Firefox store send them in the stored order, while Safari pre-sort the cookies. Closes #1050
-
- Sep 22, 2016
-
-
Michael Kaufmann authored
Add the new option CURLOPT_KEEP_SENDING_ON_ERROR to control whether sending the request body shall be completed when the server responds early with an error status code. This is suitable for manual NTLM authentication. Reviewed-by: Jay Satiro Closes https://github.com/curl/curl/pull/904
-
Kamil Dudka authored
-
Kamil Dudka authored
-
Kamil Dudka authored
As it seems to be a rarely used cipher suite (for securely established but _unencrypted_ connections), I believe it is fine not to provide an alias for the misspelled variant.
-
- Sep 20, 2016
-
-
Jay Satiro authored
Bug: https://github.com/curl/curl/issues/1017 Reported-by: Jeroen Ooms
-
- Sep 19, 2016
-
-
Daniel Gustafsson authored
Closes https://github.com/curl/curl/pull/1028
-
Bernard Spil authored
LibreSSL defines `OPENSSL_VERSION_NUMBER` as `0x20000000L` for all versions returning `LibreSSL/2.0.0` for any LibreSSL version. This change provides a local OpenSSL_version_num function replacement returning LIBRESSL_VERSION_NUMBER instead. Closes #1029
-
Daniel Stenberg authored
Follow-up fix to d9321562
-
Daniel Stenberg authored
The OpenSSL function CRYTPO_cleanup_all_ex_data() cannot be called multiple times without crashing - and other libs might call it! We basically cannot call it without risking a crash. The function is a no-op since OpenSSL 1.1.0. Not calling this function only risks a small memory leak with OpenSSL < 1.1.0. Bug: https://curl.haxx.se/mail/lib-2016-09/0045.html Reported-by: Todd Short
-
- Sep 18, 2016
-
-
Nick Zitzmann authored
RC4 was a nice alternative to CBC back in the days of BEAST, but it's insecure and obsolete now.
-
- Sep 16, 2016
-
-
Daniel Stenberg authored
-
Daniel Stenberg authored
... but don't send the actual header over the wire as it isn't accepted. Chunked uploading is still triggered using this method. Fixes #1013 Fixes #662
-
- Sep 14, 2016
-
-
Daniel Stenberg authored
OpenSSL 1.0.1 and 1.0.2 build an error queue that is stored per-thread so we need to clean it when easy handles are freed, in case the thread will be killed in which the easy handle was used. All OpenSSL code in libcurl should extract the error in association with the error already so clearing this queue here should be harmless at worst. Fixes #964
-
Daniel Stenberg authored
CVE-2016-7167 Bug: https://curl.haxx.se/docs/adv_20160914.html
-
Daniel Stenberg authored
CVE-2016-7167 Bug: https://curl.haxx.se/docs/adv_20160914.html
-
- Sep 12, 2016
-
-
Tony Kelman authored
NTLM support with mbedTLS was added in 497e7c9d but requires that mbedTLS is built with the MD4 functions available, which it isn't in default builds. This now adapts if the funtion isn't there and builds libcurl without NTLM support if so. Fixes #1004
-
- Sep 11, 2016
-
-
Daniel Stenberg authored
... like when a HTTP/0.9 response comes back without any headers at all and just a body this now prevents that body from being sent to the callback etc. Adapted test 1144 to verify. Fixes #973 Assisted-by: Ray Satiro
-
- Sep 09, 2016
-
-
Jakub Zakrzewski authored
Detect support for compiler symbol visibility flags and apply those according to CURL_HIDDEN_SYMBOLS option. It should work true to the autotools build except it tries to unhide symbols on Windows when requested and prints warning if it fails. Ref: https://github.com/curl/curl/issues/981#issuecomment-242665951 Reported-by: Daniel Stenberg
-
Daniel Stenberg authored
... by partially reverting f975f060. The allocation could be made by OpenSSL so the free must be made with OPENSSL_free() to avoid problems. Reported-by: Harold Stuart Fixes #1005
-
Daniel Stenberg authored
... by making sure we don't count down the "upload left" counter when the uploaded size is unknown and then it can be allowed to continue forever. Fixes #996
-
- Sep 08, 2016
-
-
Jay Satiro authored
Since we're using CURLE_FTP_WEIRD_SERVER_REPLY in imap, pop3 and smtp as more of a generic "failed to parse" introduce an alias without FTP in the name. Closes https://github.com/curl/curl/pull/975
-
- Sep 07, 2016
-
-
Daniel Stenberg authored
... as that function slipped through once before.
-
Viktor Szakats authored
This hash is used to verify the original downloaded certificate bundle and also included in the generated bundle's comment header. Also rename related internal symbols to algorithm-agnostic names.
-
- Sep 06, 2016
-
-
Gaurav Malhotra authored
CURLINFO_SSL_VERIFYRESULT does not get the certificate verification result when SSL_connect fails because of a certificate verification error. This fix saves the result of SSL_get_verify_result so that it is returned by CURLINFO_SSL_VERIFYRESULT. Closes https://github.com/curl/curl/pull/995
-