platform/upstream/curl.git
10 years agoftpserver.pl: Moved invalid RCPT TO: address detection to RCPT handler
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.

10 years agoRELEASE-NOTES: Corrected missed addition
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.

10 years agoRELEASE-NOTES: Synced with 6dd8bd8d2f9729
Steve Holme [Sat, 21 Sep 2013 21:20:40 +0000 (22:20 +0100)]
RELEASE-NOTES: Synced with 6dd8bd8d2f9729

10 years agocurl.1: Added information about optional login options to --user in manpage
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.

10 years agoftpserver.pl: Moved cURL SMTP server detection into EHLO command handler
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.

10 years agoopenssl: use correct port number in error message
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
10 years agotest1415: adjusted to work for 32bit time_t
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.

10 years agotests: Reworked existing SMTP tests to be single recipient based
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.

10 years agoftpserver.pl: Corrected SMTP QUIT response to be more realistic
Steve Holme [Fri, 20 Sep 2013 21:58:39 +0000 (22:58 +0100)]
ftpserver.pl: Corrected SMTP QUIT response to be more realistic

10 years agocurl_easy_setopt.3: clarify that TIMEOUT and TIMEOUT_MS set the same value
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

10 years agoDocumented --dns-* options in curl manpage
Kim Vandry [Thu, 19 Sep 2013 14:06:36 +0000 (10:06 -0400)]
Documented --dns-* options in curl manpage

10 years agopop3: Added basic SASL XOAUTH2 support
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>".

10 years agocurl: Added clarification to the --mail options in the --help output
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.

10 years agoftpserver.pl: Moved SMTP RCPT response text into command handler
Steve Holme [Fri, 20 Sep 2013 20:06:45 +0000 (21:06 +0100)]
ftpserver.pl: Moved SMTP RCPT response text into command handler

10 years agotests: Added SMTP invalid --mail-from test
Steve Holme [Fri, 20 Sep 2013 06:09:39 +0000 (07:09 +0100)]
tests: Added SMTP invalid --mail-from test

10 years agodarwinssl: enable BEAST workaround on iOS 7 & later
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.

10 years agotests: Updated SMTP AUTH tests to use the new AUTH directive
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.

10 years agotests: Corrected test913 as the QUIT response is received
Steve Holme [Thu, 19 Sep 2013 19:13:08 +0000 (20:13 +0100)]
tests: Corrected test913 as the QUIT response is received

10 years agotests: Added SMTP large message SIZE test
Steve Holme [Thu, 19 Sep 2013 17:14:02 +0000 (18:14 +0100)]
tests: Added SMTP large message SIZE test

10 years agoftpserver.pl: Updated email regex from commit 98f7ca7e971006
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.

10 years agotests: Fixed smtp mail from addresses
Steve Holme [Thu, 19 Sep 2013 06:19:25 +0000 (07:19 +0100)]
tests: Fixed smtp mail from addresses

10 years agoftpserver.pl: Standardised CAPA and AUTH responses
Steve Holme [Wed, 18 Sep 2013 18:37:32 +0000 (19:37 +0100)]
ftpserver.pl: Standardised CAPA and AUTH responses

10 years agoftpserver.pl: Corrected POP3 QUIT reply to be more realistic
Steve Holme [Wed, 18 Sep 2013 18:34:38 +0000 (19:34 +0100)]
ftpserver.pl: Corrected POP3 QUIT reply to be more realistic

10 years agoruntests.pl: Fixed syntax error in commit c873375123343e
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

10 years agoruntests.pl: Fixed smtp mail from address
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.

10 years agoftpserver.pl: Fixed syntax error in commit 98f7ca7e971006
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;"

10 years agoftpserver.pl: Expanded the SMTP MAIL handler to validate messages
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.

10 years agocookies: add expiration
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()

10 years agoftpserver.pl: Corrected response code for successful MAIL command
Steve Holme [Tue, 17 Sep 2013 20:09:14 +0000 (21:09 +0100)]
ftpserver.pl: Corrected response code for successful MAIL command

10 years agoftpserver.pl: Moved SMTP MAIL handler into own function
Steve Holme [Tue, 17 Sep 2013 20:06:49 +0000 (21:06 +0100)]
ftpserver.pl: Moved SMTP MAIL handler into own function

10 years agodns: fix compilation with MinGW from commit df69440d05f113
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.

10 years agotests: Fixed test 1406 following recent changes in ftpserver.pl
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.

10 years agotests: Added test for SMTP SIZE capability
Steve Holme [Sun, 15 Sep 2013 22:22:42 +0000 (23:22 +0100)]
tests: Added test for SMTP SIZE capability

10 years agoftpserver.pl: Added the ability to include spaces in capabilities
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

10 years agoftpserver.pl: Corrected response code for successful SMTP QUIT command
Steve Holme [Sun, 15 Sep 2013 19:09:32 +0000 (20:09 +0100)]
ftpserver.pl: Corrected response code for successful SMTP QUIT command

10 years agoftpserver.pl: Fixed syntax error in commit 33c1f2876b9029
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++"

10 years agoftpserver.pl: Added CAPA & AUTH directive support to the SMTP EHLO handler
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

10 years agoftpserver.pl: Fixed SMTP QUIT handler from dadc495540946e
Steve Holme [Sun, 15 Sep 2013 11:47:36 +0000 (12:47 +0100)]
ftpserver.pl: Fixed SMTP QUIT handler from dadc495540946e

10 years agoftpserver.pl: Moved SMTP EHLO and QUIT handlers in own functions
Steve Holme [Sun, 15 Sep 2013 08:11:48 +0000 (09:11 +0100)]
ftpserver.pl: Moved SMTP EHLO and QUIT handlers in own functions

10 years agoftpserver.pl: Added support for SMTP HELO command
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.

10 years agoftpserver.pl: Added mailbox check to IMAP SELECT handler
Steve Holme [Sat, 14 Sep 2013 23:34:58 +0000 (00:34 +0100)]
ftpserver.pl: Added mailbox check to IMAP SELECT handler

10 years agoftpserver.pl: Corrected invalid user details check
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.

10 years agoftpserver.pl: Moved IMAP LOGIN handler into own function
Steve Holme [Sat, 14 Sep 2013 19:52:29 +0000 (20:52 +0100)]
ftpserver.pl: Moved IMAP LOGIN handler into own function

10 years agoftpserver.pl: Moved POP3 USER and PASS handlers into own functions
Steve Holme [Sat, 14 Sep 2013 19:45:58 +0000 (20:45 +0100)]
ftpserver.pl: Moved POP3 USER and PASS handlers into own functions

10 years agoftpserver.pl: Corrected invalid argument check in POP3 TOP handler
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.

10 years agoftpserver.pl: Added capability prerequisite for extended POP3 commands
Steve Holme [Sat, 14 Sep 2013 14:02:34 +0000 (15:02 +0100)]
ftpserver.pl: Added capability prerequisite for extended POP3 commands

10 years agotests: Updated descriptions to be more meaningful
Steve Holme [Sat, 14 Sep 2013 13:57:15 +0000 (14:57 +0100)]
tests: Updated descriptions to be more meaningful

10 years agoftpserver.pl: Added support for IMAP NOOP command
Steve Holme [Sat, 14 Sep 2013 09:44:21 +0000 (10:44 +0100)]
ftpserver.pl: Added support for IMAP NOOP command

10 years agoimap: Fixed response check for NOOP command
Steve Holme [Sat, 14 Sep 2013 09:40:32 +0000 (10:40 +0100)]
imap: Fixed response check for NOOP command

10 years agotests: Updated descriptions to be more meaningful
Steve Holme [Sat, 14 Sep 2013 09:36:12 +0000 (10:36 +0100)]
tests: Updated descriptions to be more meaningful

10 years agocurl.1: detail how short/long options work
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
10 years agocurl: Fixed usage of DNS options when not using c-ares resolver
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.

10 years agocurl_easy_setopt.3: mention RTMP URL quirks
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
10 years agocurl: Add support for various DNS binding options.
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>
10 years agolibcurl: New options to bind DNS to local interfaces or IP addresses
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

10 years agolibcurl.3: for multi interface connections are held in the multi handle
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

10 years agoftpserver.pl: Fixed missing comma from 7fd84b14d219b1
Steve Holme [Thu, 12 Sep 2013 10:52:19 +0000 (11:52 +0100)]
ftpserver.pl: Fixed missing comma from 7fd84b14d219b1

10 years agoftpserver.pl: Fixed variable error introduced in 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

10 years agoftpserver.pl: Added support for UID command
Steve Holme [Wed, 11 Sep 2013 19:26:43 +0000 (20:26 +0100)]
ftpserver.pl: Added support for UID command

10 years agoftpserver.pl: Added support for LSUB command
Steve Holme [Wed, 11 Sep 2013 19:19:09 +0000 (20:19 +0100)]
ftpserver.pl: Added support for LSUB command

10 years agoimap: Fixed response check for LSUB and UID commands
Steve Holme [Wed, 11 Sep 2013 19:13:24 +0000 (20:13 +0100)]
imap: Fixed response check for LSUB and UID commands

10 years agoftpserver.pl: Added support for IMAP COPY command
Steve Holme [Wed, 11 Sep 2013 17:19:49 +0000 (18:19 +0100)]
ftpserver.pl: Added support for IMAP COPY command

10 years agoftpserver.pl: Added support for IMAP CLOSE and EXPUNGE commands
Steve Holme [Wed, 11 Sep 2013 17:13:53 +0000 (18:13 +0100)]
ftpserver.pl: Added support for IMAP CLOSE and EXPUNGE commands

10 years agoftpserver.pl: Added support for POP3 RSET command
Steve Holme [Wed, 11 Sep 2013 17:07:25 +0000 (18:07 +0100)]
ftpserver.pl: Added support for POP3 RSET command

10 years agoftpserver.pl: Added the ability to remember what messages are deleted
Steve Holme [Wed, 11 Sep 2013 17:00:01 +0000 (18:00 +0100)]
ftpserver.pl: Added the ability to remember what messages are deleted

...as this will be required for IMAP CLOSE and EXPUNGE commands as well
as the POP3 RSET command.

10 years agoNI_MAXSERV: remove all use of it
Daniel Stenberg [Tue, 10 Sep 2013 21:18:43 +0000 (23:18 +0200)]
NI_MAXSERV: remove all use of it

Solaris with the SunStudio Compiler is reportedly missing this define,
but as we're using it without any good reason on all the places it was
used I've now instead switched to just use sensible buffer sizes that
fit a 32 bit decimal number. Which also happens to be smaller than the
common NI_MAXSERV value which is 32 on most machines.

Bug: http://curl.haxx.se/bug/view.cgi?id=1277
Reported-by: D.Flinkmann
10 years agohttp2: use the support HTTP2 draft version in the upgrade header
Daniel Stenberg [Tue, 10 Sep 2013 21:05:04 +0000 (23:05 +0200)]
http2: use the support HTTP2 draft version in the upgrade header

... instead of HTTP/2.0 to work fine with the nghttpx proxy/server.

10 years agoldap.c: Fix compilation warning
Steve Holme [Tue, 10 Sep 2013 19:15:29 +0000 (20:15 +0100)]
ldap.c: Fix compilation warning

warning: comparison between signed and unsigned integer expressions

10 years agoimap/pop3/smtp: Speed up SSL connection initialization
Jiri Hruska [Tue, 10 Sep 2013 18:40:11 +0000 (20:40 +0200)]
imap/pop3/smtp: Speed up SSL connection initialization

Don't wait for the next callback call (usually 1 second) before
continuing with protocol specific connection initialization.

10 years agoldap.c: Corrected build error from commit 857f999353f333
Steve Holme [Tue, 10 Sep 2013 18:30:07 +0000 (19:30 +0100)]
ldap.c: Corrected build error from commit 857f999353f333

10 years agoRELEASE-NOTES: Corrected duplicate in bfefe2400a16b8
Steve Holme [Tue, 10 Sep 2013 14:35:20 +0000 (15:35 +0100)]
RELEASE-NOTES: Corrected duplicate in bfefe2400a16b8

10 years agoRELEASE-NOTES: Corrected typo from bfefe2400a16b8
Steve Holme [Tue, 10 Sep 2013 13:06:50 +0000 (14:06 +0100)]
RELEASE-NOTES: Corrected typo from bfefe2400a16b8

10 years agoRELEASE-NOTES: synced with 25c68903756d6b
Steve Holme [Tue, 10 Sep 2013 12:12:56 +0000 (13:12 +0100)]
RELEASE-NOTES: synced with 25c68903756d6b

10 years agoREADME.http2: explain nghttp2 a little
Daniel Stenberg [Mon, 9 Sep 2013 21:05:22 +0000 (23:05 +0200)]
README.http2: explain nghttp2 a little

10 years agotests: Added test for POP3 TOP command
Steve Holme [Sun, 8 Sep 2013 22:08:21 +0000 (23:08 +0100)]
tests: Added test for POP3 TOP command

10 years agoftpserver.pl: Added support for POP3 TOP command
Steve Holme [Sun, 8 Sep 2013 21:53:27 +0000 (22:53 +0100)]
ftpserver.pl: Added support for POP3 TOP command

10 years agotests: Added test for POP3 UIDL command
Steve Holme [Sun, 8 Sep 2013 21:42:35 +0000 (22:42 +0100)]
tests: Added test for POP3 UIDL command

10 years agoftpserver.pl: Added support for POP3 UIDL command
Steve Holme [Sun, 8 Sep 2013 21:30:10 +0000 (22:30 +0100)]
ftpserver.pl: Added support for POP3 UIDL command

10 years agohttp2: adjust to new nghttp2_pack_settings_payload proto
Daniel Stenberg [Mon, 9 Sep 2013 13:18:09 +0000 (15:18 +0200)]
http2: adjust to new nghttp2_pack_settings_payload proto

This function was modified in nghttp2 git commit a1c3f89c72e51

10 years agourl: handle abortion by read/write callbacks, too
Kamil Dudka [Mon, 9 Sep 2013 11:10:53 +0000 (13:10 +0200)]
url: handle abortion by read/write callbacks, too

Otherwise, the FTP protocol would unnecessarily hang 60 seconds if
aborted in the CURLOPT_HEADERFUNCTION callback.

Reported by: Tomas Mlcoch
Bug: https://bugzilla.redhat.com/1005686

10 years agoldap: fix the build for systems with ldap_url_parse()
Daniel Stenberg [Sun, 8 Sep 2013 22:01:52 +0000 (00:01 +0200)]
ldap: fix the build for systems with ldap_url_parse()

Make sure that the custom struct fields are only used by code that
doesn't use a struct defintion from the outside.

Attempts to fix the problem introduced in 3dc6fc42bfc61b

10 years agopingpong: Check SSL library buffers for already read data
Jiri Hruska [Sun, 8 Sep 2013 23:05:14 +0000 (01:05 +0200)]
pingpong: Check SSL library buffers for already read data

Otherwise the connection can get stuck during various phases, waiting
for new data on the socket using select() etc., but it will never be
received as the data has already been read into SSL library.

10 years agoimap: Fixed calculation of transfer when partial FETCH received
Steve Holme [Sun, 8 Sep 2013 09:30:43 +0000 (10:30 +0100)]
imap: Fixed calculation of transfer when partial FETCH received

The transfer size would be calculated incorrectly if the email contained
within the FETCH response, had been partially received by the pingpong
layer. As such the following, example output, would be seen if the
amount remaining was smaller than the amount received:

* Excess found in a non pipelined read: excess = 1394, size = 262,
  maxdownload = 262, bytecount = 1374
* transfer closed with -1112 bytes remaining to read

Bug: http://curl.haxx.se/mail/lib-2013-08/0170.html
Reported-by: John Dunn
10 years agoftpserver.pl: Fixed empty array checks
Steve Holme [Sun, 8 Sep 2013 22:59:49 +0000 (23:59 +0100)]
ftpserver.pl: Fixed empty array checks

...from commits 28427b408326a1 and e8313697b6554b.

10 years agoftpserver: Reworked AUTH support to allow for specifying the mechanisms
Steve Holme [Sun, 8 Sep 2013 20:46:32 +0000 (21:46 +0100)]
ftpserver: Reworked AUTH support to allow for specifying the mechanisms

Renamed SUPPORTAUTH to AUTH and added support for specifying a list of
supported SASL mechanisms to return to the client.

Additionally added the directive to the FILEFORMAT document.

10 years agoftpserver: Reworked CAPA support to allow for specifying the capabilities
Steve Holme [Sun, 8 Sep 2013 20:17:47 +0000 (21:17 +0100)]
ftpserver: Reworked CAPA support to allow for specifying the capabilities

Renamed SUPPORTCAPA to CAPA and added support for specifying a list of
supported capabilities to return to the client.

Additionally added the directive to the FILEFORMAT document.

10 years agoftpserver.pl: Corrected POP3 LIST as message numbers should be contiguous
Steve Holme [Sun, 8 Sep 2013 19:16:49 +0000 (20:16 +0100)]
ftpserver.pl: Corrected POP3 LIST as message numbers should be contiguous

The message numbers given in the LIST response are an index into the
list, which are only valid for the current session, rather than being a
unique message identifier. An index would only be missing from the LIST
response if a DELE command had been issued within the same session and
had not been committed by the end of session QUIT command. Once
committed the POP3 server will regenerate the message numbers in the
next session to be contiguous again. As such our LIST response should
list message numbers contiguously until we support a DELE command in the
same session.

Should a POP3 user require the unique message ID for any or all
messages then they should use the extended UIDL command. This command
will be supported by the test ftpserver in an upcoming commit.

10 years agocurl_easy_pause: suggest one way to unpause
Clemens Gruber [Sun, 8 Sep 2013 17:01:26 +0000 (19:01 +0200)]
curl_easy_pause: suggest one way to unpause

10 years agotests: Updated descriptions to be more meaningful
Steve Holme [Sun, 8 Sep 2013 15:57:15 +0000 (16:57 +0100)]
tests: Updated descriptions to be more meaningful

10 years agotests: Added test for POP3 NOOP command
Steve Holme [Sun, 8 Sep 2013 15:55:39 +0000 (16:55 +0100)]
tests: Added test for POP3 NOOP command

10 years agoftpserver.pl: Added support for POP3 NOOP command
Steve Holme [Sun, 8 Sep 2013 15:41:12 +0000 (16:41 +0100)]
ftpserver.pl: Added support for POP3 NOOP command

10 years agoftpserver.pl: Fixed 'Use of uninitialized value $args in string ne'
Steve Holme [Sun, 8 Sep 2013 15:39:41 +0000 (16:39 +0100)]
ftpserver.pl: Fixed 'Use of uninitialized value $args in string ne'

10 years agotests: Added test for POP3 STAT command
Steve Holme [Sun, 8 Sep 2013 07:51:37 +0000 (08:51 +0100)]
tests: Added test for POP3 STAT command

10 years agoftpserver.pl: Added support for POP STAT command
Steve Holme [Sun, 8 Sep 2013 07:37:37 +0000 (08:37 +0100)]
ftpserver.pl: Added support for POP STAT command

10 years agoftpserver.pl: Moved POP3 QUIT handler into own function
Steve Holme [Sun, 8 Sep 2013 07:35:38 +0000 (08:35 +0100)]
ftpserver.pl: Moved POP3 QUIT handler into own function

10 years agoftpserver.pl: Reordered the POP3 handlers to be alphabetical
Steve Holme [Sat, 7 Sep 2013 22:20:08 +0000 (23:20 +0100)]
ftpserver.pl: Reordered the POP3 handlers to be alphabetical

In preparation for additional POP3 tests, re-ordered the command
function defintions to be sorted alphabetically.

10 years agoftpserver.pl: Corrected misaligned indentation in POP3 handlers
Steve Holme [Sat, 7 Sep 2013 22:14:54 +0000 (23:14 +0100)]
ftpserver.pl: Corrected misaligned indentation in POP3 handlers

Fixed incorrect indentation used in both the RETR_pop3 and LIST_pop3
functions which was 5 and 9 characters rather than 4 and 8.

10 years agotests: Added test for POP3 DELE command
Steve Holme [Sat, 7 Sep 2013 18:49:12 +0000 (19:49 +0100)]
tests: Added test for POP3 DELE command

10 years agoftpserver.pl: Added support for POP3 DELE command
Steve Holme [Sat, 7 Sep 2013 18:27:52 +0000 (19:27 +0100)]
ftpserver.pl: Added support for POP3 DELE command

10 years agohttp2: include curl_memory.h
Daniel Stenberg [Sat, 7 Sep 2013 17:47:26 +0000 (19:47 +0200)]
http2: include curl_memory.h

Detected by test 1132