Kamil Dudka [Mon, 7 Oct 2013 14:07:50 +0000 (16:07 +0200)]
ssh: improve the logic for detecting blocking direction
This fixes a regression introduced by commit
0feeab78 limiting the speed
of SCP upload to 16384 B/s on a fast connection (such as localhost).
Dan Fandrich [Sat, 12 Oct 2013 19:09:17 +0000 (21:09 +0200)]
Fixed typo in Makefile.inc that left http2.h out of the tar ball
Heinrich Schaefer [Thu, 10 Oct 2013 21:08:47 +0000 (23:08 +0200)]
minor fix in doc
Gisle Vanem [Wed, 9 Oct 2013 12:45:42 +0000 (14:45 +0200)]
curl_setup_once: fix errno access for lwip on Windows
lib/curl_setup_once.h assumed lwIP on Windows uses 'SetLastError()' to
set network errors. It doesn't; it uses 'errno'.
Daniel Stenberg [Mon, 7 Oct 2013 12:42:21 +0000 (14:42 +0200)]
test1239: verify
4cd444e01ad and the simulated 304 response
Derek Higgins [Thu, 3 Oct 2013 22:41:56 +0000 (23:41 +0100)]
HTTP: Output http response 304 when modified time is too old
When using the -w '%{http_code}' flag and simulating a Not Modified then
304 should be output.
Daniel Stenberg [Mon, 7 Oct 2013 07:47:03 +0000 (09:47 +0200)]
contributors: helper script to dig out contributors from git
Daniel Stenberg [Sun, 6 Oct 2013 22:08:55 +0000 (00:08 +0200)]
RELEASE-NOTES: add twos refs to bug reports
Daniel Stenberg [Sun, 6 Oct 2013 21:36:21 +0000 (23:36 +0200)]
RELEASE-NOTES: synced with
173160c0d068
Nick Zitzmann [Thu, 3 Oct 2013 02:19:28 +0000 (21:19 -0500)]
darwinssl: block TLS_RSA_WITH_NULL_SHA256 cipher
Credit (for catching a cipher I forgot to add to the blocked ciphers list):
https://www.ssllabs.com/ssltest/viewMyClient.html
Daniel Stenberg [Wed, 2 Oct 2013 13:31:10 +0000 (15:31 +0200)]
OpenSSL: acknowledge CURLOPT_SSL_VERIFYHOST without VERIFYPEER
Setting only CURLOPT_SSL_VERIFYHOST without CURLOPT_SSL_VERIFYPEER set
should still verify that the host name fields in the server certificate
is fine or return failure.
Bug: http://curl.haxx.se/mail/lib-2013-10/0002.html
Reported-by: Ishan SinghLevett
Daniel Stenberg [Wed, 2 Oct 2013 13:30:15 +0000 (15:30 +0200)]
KNOWN_BUGS: #84: CURLINFO_SSL_VERIFYRESULT
CURLINFO_SSL_VERIFYRESULT is only implemented for the OpenSSL and NSS
backends and not for any other!
François Charlier [Tue, 1 Oct 2013 19:57:14 +0000 (21:57 +0200)]
xattr: add support for FreeBSD xattr API
Daniel Stenberg [Mon, 30 Sep 2013 12:58:06 +0000 (14:58 +0200)]
curl_easy_setopt.3: slight clarification of SEEKFUNCTION
Steve Holme [Sun, 29 Sep 2013 19:32:23 +0000 (20:32 +0100)]
tests: Fixed typos from commit
25a0c96a494297
Steve Holme [Sun, 29 Sep 2013 15:48:02 +0000 (16:48 +0100)]
tests: Updated email addresses in SMTP tests following recent changes
Steve Holme [Sun, 29 Sep 2013 15:25:11 +0000 (16:25 +0100)]
test909: Removed custom EHLO response after recent changes
...as it is no longer required following capability and authentication
changes and is now causing problems following commit
49341628b50007 as
the test number is obtained from the client address in the EHLO.
Steve Holme [Sun, 29 Sep 2013 12:13:13 +0000 (13:13 +0100)]
ftpserver.pl: Fixed compilation error from commit
49341628b50007
Steve Holme [Sun, 29 Sep 2013 08:53:49 +0000 (09:53 +0100)]
ftpserver.pl: Moved specifying the test number from the RCPT address
...to the client address as this frees the RCPT strings to contain
just an email address and by passing the test number into curl as the
client address remains consistent with POP3 and IMAP tests as they are
specified in the URL.
Steve Holme [Sun, 29 Sep 2013 08:25:23 +0000 (09:25 +0100)]
ftpserver.pl: Added unwanted argument check to SMTP DATA command handler
Daniel Stenberg [Sat, 28 Sep 2013 22:16:21 +0000 (00:16 +0200)]
getinmemory: remove a comment
The comment mentioned the need to free the data, but the example already
does that free
Daniel Stenberg [Sat, 28 Sep 2013 22:12:30 +0000 (00:12 +0200)]
postinmemory: new example
This is similar to getinmemory.c but with an initial POST.
Combined-by: Ulf Samuelsson
Daniel Stenberg [Sat, 28 Sep 2013 21:18:19 +0000 (23:18 +0200)]
win32: fix Visual Studio 2010 build with WINVER >= 0x600
If no WINVER and/or _WIN32_IWNNT define was set, the Windows platform
SDK often defaults to high value, e.g. 0x601 (whoch may probably depend
on the Windows version being used, in my case Windows 7).
If WINVER >= 0x600 then winsock2.h includes some defines for WSAPoll(),
e.g. POLLIN, POLLPRI, POLLOUT etc. These defines clash with cURL's
lib/select.h.
Make sure HAVE_STRUCT_POLLFD is defined then.
Bug: http://curl.haxx.se/bug/view.cgi?id=1282
Reported-by: "kdekker"
Patch-by: Marcel Raad
Steve Holme [Sat, 28 Sep 2013 16:24:22 +0000 (17:24 +0100)]
ssluse.c: Fixed compilation warnings when ENGINE not supported
The function "ssl_ui_reader" was declared but never referenced
The function "ssl_ui_writer" was declared but never referenced
Daniel Stenberg [Fri, 27 Sep 2013 08:57:20 +0000 (10:57 +0200)]
configure: use icc options without space
The latest version(s) of the icc compiler no longer accept the extra
space in the -we (warning enable), -wd (warning disable), etc.
Reported-by: Elmira A Semenova
Bug: http://curl.haxx.se/mail/lib-2013-09/0182.html
Steve Holme [Tue, 24 Sep 2013 19:49:19 +0000 (20:49 +0100)]
imap: Added clarification to the code about odd continuation responses
Steve Holme [Tue, 24 Sep 2013 19:30:00 +0000 (20:30 +0100)]
ftp.c: Fixed compilation warning
There is an implicit conversion from "unsigned long" to "long"
Steve Holme [Tue, 24 Sep 2013 19:12:48 +0000 (20:12 +0100)]
sasl: Centralised the authentication mechanism strings
Moved the standard SASL mechanism strings into curl_sasl.h rather than
hard coding the same values over and over again in the protocols that
use SASL authentication.
For more information about the mechanism strings see:
http://www.iana.org/assignments/sasl-mechanisms
Daniel Stenberg [Mon, 23 Sep 2013 21:23:51 +0000 (23:23 +0200)]
RELEASE-NOTES: added recent contributors missing
Steve Holme [Mon, 23 Sep 2013 06:10:25 +0000 (07:10 +0100)]
test906: Fixed type-2 response
Steve Holme [Sun, 22 Sep 2013 23:19:56 +0000 (00:19 +0100)]
test915: Corrected test number from commit
22bccb0edaf041
Steve Holme [Sun, 22 Sep 2013 23:15:37 +0000 (00:15 +0100)]
test906: Fixed type-1 message not handled error
...from commit
f81d1e16664976 due to copy paste error.
Steve Holme [Sun, 22 Sep 2013 19:53:29 +0000 (20:53 +0100)]
tests: Added SMTP AUTH NTLM test
Steve Holme [Sun, 22 Sep 2013 19:26:15 +0000 (20:26 +0100)]
tests: Added SMTP multiple and invalid --mail-rcpt test
Steve Holme [Sun, 22 Sep 2013 19:19:52 +0000 (20:19 +0100)]
tests: Added SMTP multiple --mail-rcpt test
Steve Holme [Sun, 22 Sep 2013 19:12:20 +0000 (20:12 +0100)]
tests: Added SMTP invalid --mail-rcpt test
Steve Holme [Sun, 22 Sep 2013 19:09:57 +0000 (20:09 +0100)]
tests: Regrouping of SMTP tests
Benoit Sigoure [Sun, 22 Sep 2013 03:27:19 +0000 (20:27 -0700)]
test1112: Increase the timeout from 7s to 16s
As someone reported on the mailing list a while back, the hard-coded
arbitrary timeout of 7s in test 1112 is not sufficient in some build
environments. At Arista Networks we build and test curl as part of our
automated build system, and we've run into this timeout 170 times so
far. Our build servers are typically quite busy building and testing a
lot of code in parallel, so despite being beefy machines with 32 cores
and 128GB of RAM we still hit this 7s timeout regularly.
URL: http://curl.haxx.se/mail/lib-2010-02/0200.html
Steve Holme [Sun, 22 Sep 2013 14:14:26 +0000 (15:14 +0100)]
tests: Fixed smtp rcpt to addresses
Steve Holme [Sun, 22 Sep 2013 14:05:43 +0000 (15:05 +0100)]
ftpserver.pl: Expanded the SMTP RCPT handler to validate TO addresses
RCPT_smtp() will now check for a correctly formatted TO address which
allows for invalid recipient addresses to be added.
Steve Holme [Sun, 22 Sep 2013 12:21:15 +0000 (13:21 +0100)]
ftpserver.pl: Added cURL SMTP server detection to HELO command handler
As curl will send a HELO command after an negative EHLO response, added
the same detection from commit
b07709f7417c3e to the HELO handler to
ensure the test server is identified correctly and an upload isn't
performed.
Steve Holme [Sun, 22 Sep 2013 11:59:28 +0000 (12:59 +0100)]
ftpserver.pl: Corrected response code for successful RCPT command
Steve Holme [Sun, 22 Sep 2013 10:03:18 +0000 (11:03 +0100)]
ftpserver.pl: Moved invalid RCPT TO: address detection to RCPT handler
Rather than detecting the TO address as missing in the DATA handler,
moved the detection to the RCPT command handler where an error response
can be generated.
Steve Holme [Sat, 21 Sep 2013 21:28:07 +0000 (22:28 +0100)]
RELEASE-NOTES: Corrected missed addition
Somehow commit
60a20461629fda missed the last item in the sync list
even though I'm sure I added it during editing.
Steve Holme [Sat, 21 Sep 2013 21:20:40 +0000 (22:20 +0100)]
RELEASE-NOTES: Synced with
6dd8bd8d2f9729
Steve Holme [Sat, 21 Sep 2013 21:05:12 +0000 (22:05 +0100)]
curl.1: Added information about optional login options to --user in manpage
Added missing information, from curl 7.31.0, regarding the use of the
optional login options that may be specified as part of --user.
For example:
--user 'user:password;auth=NTLM' in IMAP, POP3 and SMTP protocols.
Steve Holme [Sat, 21 Sep 2013 19:49:23 +0000 (20:49 +0100)]
ftpserver.pl: Moved cURL SMTP server detection into EHLO command handler
Moved the special SMTP server detection code from the DATA command
handler, which happens further down the operation chain after EHLO,
MAIL and RCPT commands, to the EHLO command as it is the first command
to be generated by a SMTP operation as well as containing the special
"verifiedserver" string from the URL.
This not only makes it easier and quicker to detect but also means that
cURL doesn't need to specify "verifiedserver" as --mail-from and
--mail-rcpt arguments.
More importantly, this also makes the upcoming verification changes to
the RCPT handler easier to implement.
Daniel Stenberg [Wed, 18 Sep 2013 21:03:30 +0000 (23:03 +0200)]
openssl: use correct port number in error message
In ossl_connect_step2() when the "Unknown SSL protocol error" occurs, it
would output the local port number instead of the remote one which
showed when doing SSL over a proxy (but with the correct remote host
name). As libcurl only speaks SSL to the remote we know it is the remote
port.
Bug: http://curl.haxx.se/bug/view.cgi?id=1281
Reported-by: Gordon Marler
Daniel Stenberg [Sat, 21 Sep 2013 18:43:39 +0000 (13:43 -0500)]
test1415: adjusted to work for 32bit time_t
The libcurl date parser returns INT_MAX for all dates > 2037 so this
test is now made to use 2037 instead of 2038 to work the same for both
32bit and 64bit time_t systems.
Steve Holme [Sat, 21 Sep 2013 18:44:09 +0000 (19:44 +0100)]
tests: Reworked existing SMTP tests to be single recipient based
...in preparation of upcoming multiple recipient tests.
Steve Holme [Fri, 20 Sep 2013 21:58:39 +0000 (22:58 +0100)]
ftpserver.pl: Corrected SMTP QUIT response to be more realistic
Daniel Stenberg [Fri, 20 Sep 2013 21:16:04 +0000 (23:16 +0200)]
curl_easy_setopt.3: clarify that TIMEOUT and TIMEOUT_MS set the same value
Kim Vandry [Thu, 19 Sep 2013 14:06:36 +0000 (10:06 -0400)]
Documented --dns-* options in curl manpage
Steve Holme [Fri, 20 Sep 2013 20:56:34 +0000 (21:56 +0100)]
pop3: Added basic SASL XOAUTH2 support
Added the ability to use an XOAUTH2 bearer token [RFC6750] with POP3 for
authentication using RFC6749 "OAuth 2.0 Authorization Framework".
The bearer token is expected to be valid for the user specified in
conn->user. If CURLOPT_XOAUTH2_BEARER is defined and the connection has
an advertised auth mechanism of "XOAUTH2", the user and access token are
formatted as a base64 encoded string and sent to the server as
"AUTH XOAUTH2 <bearer token>".
Steve Holme [Fri, 20 Sep 2013 20:20:16 +0000 (21:20 +0100)]
curl: Added clarification to the --mail options in the --help output
... that these options apply to SMTP only.
Steve Holme [Fri, 20 Sep 2013 20:06:45 +0000 (21:06 +0100)]
ftpserver.pl: Moved SMTP RCPT response text into command handler
Steve Holme [Fri, 20 Sep 2013 06:09:39 +0000 (07:09 +0100)]
tests: Added SMTP invalid --mail-from test
Nick Zitzmann [Thu, 19 Sep 2013 22:28:54 +0000 (17:28 -0500)]
darwinssl: enable BEAST workaround on iOS 7 & later
iOS 7 finally added the option to enable 1/n-1 when using TLS 1.0
and a CBC cipher, so we now always turn that on unless the user
manually turns it off using CURLSSLOPT_ALLOW_BEAST.
It appears Apple also added some new PSK ciphers, but no interface to
use them yet, so we at least support printing them if we find them.
Steve Holme [Thu, 19 Sep 2013 19:29:24 +0000 (20:29 +0100)]
tests: Updated SMTP AUTH tests to use the new AUTH directive
...rather than specify a customised EHLO response.
Steve Holme [Thu, 19 Sep 2013 19:13:08 +0000 (20:13 +0100)]
tests: Corrected test913 as the QUIT response is received
Steve Holme [Thu, 19 Sep 2013 17:14:02 +0000 (18:14 +0100)]
tests: Added SMTP large message SIZE test
Steve Holme [Thu, 19 Sep 2013 11:44:27 +0000 (12:44 +0100)]
ftpserver.pl: Updated email regex from commit
98f7ca7e971006
...to not be as strict as it was rejecting valid numeric email
addresses.
Steve Holme [Thu, 19 Sep 2013 06:19:25 +0000 (07:19 +0100)]
tests: Fixed smtp mail from addresses
Steve Holme [Wed, 18 Sep 2013 18:37:32 +0000 (19:37 +0100)]
ftpserver.pl: Standardised CAPA and AUTH responses
Steve Holme [Wed, 18 Sep 2013 18:34:38 +0000 (19:34 +0100)]
ftpserver.pl: Corrected POP3 QUIT reply to be more realistic
Steve Holme [Wed, 18 Sep 2013 18:32:20 +0000 (19:32 +0100)]
runtests.pl: Fixed syntax error in commit
c873375123343e
Possible unintended interpolation in string at line 796
Steve Holme [Wed, 18 Sep 2013 17:04:26 +0000 (18:04 +0100)]
runtests.pl: Fixed smtp mail from address
Following changes to ftpserver.pl fixed the mail from address to be a
correctly formatted address otherwise the server response will be 501
Invalid address.
Steve Holme [Wed, 18 Sep 2013 11:58:34 +0000 (12:58 +0100)]
ftpserver.pl: Fixed syntax error in commit
98f7ca7e971006
Can't modify constant item in scalar assignment line 779, near "0;"
Steve Holme [Wed, 18 Sep 2013 06:16:53 +0000 (07:16 +0100)]
ftpserver.pl: Expanded the SMTP MAIL handler to validate messages
MAIl_smtp() will now check for a correctly formatted FROM address as
well as the optional SIZE parameter comparing it against the server
capability when specified.
YAMADA Yasuharu [Tue, 17 Sep 2013 06:51:22 +0000 (15:51 +0900)]
cookies: add expiration
Implement: Expired Cookies These following situation, curl removes
cookie(s) from struct CookieInfo if the cookie expired.
- Curl_cookie_add()
- Curl_cookie_getlist()
- cookie_output()
Steve Holme [Tue, 17 Sep 2013 20:09:14 +0000 (21:09 +0100)]
ftpserver.pl: Corrected response code for successful MAIL command
Steve Holme [Tue, 17 Sep 2013 20:06:49 +0000 (21:06 +0100)]
ftpserver.pl: Moved SMTP MAIL handler into own function
Steve Holme [Tue, 17 Sep 2013 19:59:43 +0000 (20:59 +0100)]
dns: fix compilation with MinGW from commit
df69440d05f113
Avoid 'interface' literal that some MinGW versions define as a macro
Additionally, corrected some very, very minor coding style errors.
Steve Holme [Sun, 15 Sep 2013 22:59:09 +0000 (23:59 +0100)]
tests: Fixed test 1406 following recent changes in ftpserver.pl
By default the mail server doesn't send the SIZE capability but instead
it has to be specified as a supported capability.
Steve Holme [Sun, 15 Sep 2013 22:22:42 +0000 (23:22 +0100)]
tests: Added test for SMTP SIZE capability
Steve Holme [Sun, 15 Sep 2013 19:19:23 +0000 (20:19 +0100)]
ftpserver.pl: Added the ability to include spaces in capabilities
For example:
CAPA "SIZE 1048576" 8BITMIME BINARYMIME
will populate the capabilities list with the following in:
SIZE 1048576
8BITMIME
BINARYMIME
Steve Holme [Sun, 15 Sep 2013 19:09:32 +0000 (20:09 +0100)]
ftpserver.pl: Corrected response code for successful SMTP QUIT command
Steve Holme [Sun, 15 Sep 2013 19:07:43 +0000 (20:07 +0100)]
ftpserver.pl: Fixed syntax error in commit
33c1f2876b9029
Can't modify constant item in postincrement line 727, near "i++"
Steve Holme [Sun, 15 Sep 2013 15:53:20 +0000 (16:53 +0100)]
ftpserver.pl: Added CAPA & AUTH directive support to the SMTP EHLO handler
Steve Holme [Sun, 15 Sep 2013 11:47:36 +0000 (12:47 +0100)]
ftpserver.pl: Fixed SMTP QUIT handler from
dadc495540946e
Steve Holme [Sun, 15 Sep 2013 08:11:48 +0000 (09:11 +0100)]
ftpserver.pl: Moved SMTP EHLO and QUIT handlers in own functions
Steve Holme [Sun, 15 Sep 2013 08:06:18 +0000 (09:06 +0100)]
ftpserver.pl: Added support for SMTP HELO command
...and updated test902 as explicit HELO response is no longer required.
Steve Holme [Sat, 14 Sep 2013 23:34:58 +0000 (00:34 +0100)]
ftpserver.pl: Added mailbox check to IMAP SELECT handler
Steve Holme [Sat, 14 Sep 2013 23:31:55 +0000 (00:31 +0100)]
ftpserver.pl: Corrected invalid user details check
...in both the IMAP LOGIN and POP3 PASS handlers introduced in commit
187ac693744949 and
84ad1569e5fc93 respectively.
Steve Holme [Sat, 14 Sep 2013 19:52:29 +0000 (20:52 +0100)]
ftpserver.pl: Moved IMAP LOGIN handler into own function
Steve Holme [Sat, 14 Sep 2013 19:45:58 +0000 (20:45 +0100)]
ftpserver.pl: Moved POP3 USER and PASS handlers into own functions
Steve Holme [Sat, 14 Sep 2013 15:18:47 +0000 (16:18 +0100)]
ftpserver.pl: Corrected invalid argument check in POP3 TOP handler
...which was accidentally introduced in commit
4d6ef6297ae9b6.
Steve Holme [Sat, 14 Sep 2013 14:02:34 +0000 (15:02 +0100)]
ftpserver.pl: Added capability prerequisite for extended POP3 commands
Steve Holme [Sat, 14 Sep 2013 13:57:15 +0000 (14:57 +0100)]
tests: Updated descriptions to be more meaningful
Steve Holme [Sat, 14 Sep 2013 09:44:21 +0000 (10:44 +0100)]
ftpserver.pl: Added support for IMAP NOOP command
Steve Holme [Sat, 14 Sep 2013 09:40:32 +0000 (10:40 +0100)]
imap: Fixed response check for NOOP command
Steve Holme [Sat, 14 Sep 2013 09:36:12 +0000 (10:36 +0100)]
tests: Updated descriptions to be more meaningful
Daniel Stenberg [Fri, 13 Sep 2013 21:13:58 +0000 (23:13 +0200)]
curl.1: detail how short/long options work
URL: http://curl.haxx.se/bug/view.cgi?id=1279
Suggested-by: Jerry Krinock
Steve Holme [Fri, 13 Sep 2013 17:50:11 +0000 (18:50 +0100)]
curl: Fixed usage of DNS options when not using c-ares resolver
Commit
32352ed6adddcb introduced various DNS options, however, these
would cause curl to exit with CURLE_NOT_BUILT_IN when c-ares wasn't
being used as the backend resolver even if the options weren't set
by the user.
Additionally corrected some minor coding style errors from the same
commit.
Daniel Stenberg [Fri, 13 Sep 2013 12:06:00 +0000 (14:06 +0200)]
curl_easy_setopt.3: mention RTMP URL quirks
URL: http://curl.haxx.se/bug/view.cgi?id=1278
Reported-by: Gorilla Maguila
Ben Greear [Sat, 9 Feb 2013 21:18:02 +0000 (13:18 -0800)]
curl: Add support for various DNS binding options.
(Passed on to c-ares.)
Allows something like this:
curl --dns-interface sta8 --dns-ipv4-addr 8.8.1.111 --interface sta8 \
--localaddr 8.8.1.111 --dns-servers 8.8.8.1 www.google.com
Signed-off-by: Ben Greear <greearb@candelatech.com>
Kim Vandry [Sat, 7 Sep 2013 16:45:50 +0000 (12:45 -0400)]
libcurl: New options to bind DNS to local interfaces or IP addresses
Daniel Stenberg [Thu, 12 Sep 2013 11:59:05 +0000 (13:59 +0200)]
libcurl.3: for multi interface connections are held in the multi handle
... and a few more cleanups/clarifications
Steve Holme [Thu, 12 Sep 2013 10:52:19 +0000 (11:52 +0100)]
ftpserver.pl: Fixed missing comma from
7fd84b14d219b1
Steve Holme [Thu, 12 Sep 2013 06:10:41 +0000 (07:10 +0100)]
ftpserver.pl: Fixed variable error introduced in
7fd84b14d219b1
Global symbol "$mailbox" requires explicit package name