platform/upstream/curl.git
11 years agoSSL: protocol version can be specified more precisely
Gergely Nagy [Thu, 19 Sep 2013 13:17:13 +0000 (15:17 +0200)]
SSL: protocol version can be specified more precisely

CURL_SSLVERSION_TLSv1_0, CURL_SSLVERSION_TLSv1_1,
CURL_SSLVERSION_TLSv1_2 enum values are added to force exact TLS version
(CURL_SSLVERSION_TLSv1 means TLS 1.x).

axTLS:
axTLS only supports TLS 1.0 and 1.1 but it cannot be set that only one
of these should be used, so we don't allow the new enum values.

darwinssl:
Added support for the new enum values.

SChannel:
Added support for the new enum values.

CyaSSL:
Added support for the new enum values.
Bug: The original CURL_SSLVERSION_TLSv1 value enables only TLS 1.0 (it
did the same before this commit), because CyaSSL cannot be configured to
use TLS 1.0-1.2.

GSKit:
GSKit doesn't seem to support TLS 1.1 and TLS 1.2, so we do not allow
those values.
Bugfix: There was a typo that caused wrong SSL versions to be passed to
GSKit.

NSS:
TLS minor version cannot be set, so we don't allow the new enum values.

QsoSSL:
TLS minor version cannot be set, so we don't allow the new enum values.

OpenSSL:
Added support for the new enum values.
Bugfix: The original CURL_SSLVERSION_TLSv1 value enabled only TLS 1.0,
now it enables 1.0-1.2.

Command-line tool:
Added command line options for the new values.

11 years agodarwinssl: un-break iOS build after PKCS#12 feature added
Nick Zitzmann [Mon, 14 Oct 2013 23:03:32 +0000 (18:03 -0500)]
darwinssl: un-break iOS build after PKCS#12 feature added

SecPKCS12Import() returns a few errors that are enumerated in OS X's
headers but not in iOS' headers for some reason.

11 years agobump: start working on 7.33.1
Daniel Stenberg [Mon, 14 Oct 2013 21:11:20 +0000 (23:11 +0200)]
bump: start working on 7.33.1

11 years agoTHANKS: added contributors from the 7.33.0 announcement
Daniel Stenberg [Mon, 14 Oct 2013 21:10:35 +0000 (23:10 +0200)]
THANKS: added contributors from the 7.33.0 announcement

11 years agoRELEASE-NOTES: synced with 92cf6141ed0de
Daniel Stenberg [Sun, 13 Oct 2013 21:24:21 +0000 (23:24 +0200)]
RELEASE-NOTES: synced with 92cf6141ed0de

11 years agocurl: fix --oauth2-bearer in the --help output
Daniel Stenberg [Sun, 13 Oct 2013 21:21:12 +0000 (23:21 +0200)]
curl: fix --oauth2-bearer in the --help output

After the option rename in 5df04bfafd1

11 years agoOpenSSL: improve the grammar of the language in 39beaa5ffbcc
Daniel Stenberg [Sun, 13 Oct 2013 21:07:44 +0000 (23:07 +0200)]
OpenSSL: improve the grammar of the language in 39beaa5ffbcc

Reported-by: Petr Pisar
11 years agoOpenSSL: use failf() when subjectAltName mismatches
Andrej E Baranov [Sat, 12 Oct 2013 23:02:03 +0000 (01:02 +0200)]
OpenSSL: use failf() when subjectAltName mismatches

Write to CURLOPT_ERRORBUFFER information about mismatch alternative
certificate subject names.

Signed-off-by: Andrej E Baranov <admin@andrej-andb.ru>
11 years agocurl: rename --bearer to --oauth2-bearer
Daniel Stenberg [Sat, 12 Oct 2013 21:26:38 +0000 (23:26 +0200)]
curl: rename --bearer to --oauth2-bearer

The option '--bearer' might be slightly ambiguous in name. It doesn't
create any conflict that I am aware of at the moment, however, OAUTH v2
is not the only authentication mechanism which uses "bearer" tokens.

Reported-by: Kyle L. Huff
URL: http://curl.haxx.se/mail/lib-2013-10/0064.html

11 years agossh: improve the logic for detecting blocking direction
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).

11 years agoFixed typo in Makefile.inc that left http2.h out of the tar ball
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

11 years agominor fix in doc
Heinrich Schaefer [Thu, 10 Oct 2013 21:08:47 +0000 (23:08 +0200)]
minor fix in doc

11 years agocurl_setup_once: fix errno access for lwip on Windows
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'.

11 years agotest1239: verify 4cd444e01ad and the simulated 304 response
Daniel Stenberg [Mon, 7 Oct 2013 12:42:21 +0000 (14:42 +0200)]
test1239: verify 4cd444e01ad and the simulated 304 response

11 years agoHTTP: Output http response 304 when modified time is too old
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.

11 years agocontributors: helper script to dig out contributors from git
Daniel Stenberg [Mon, 7 Oct 2013 07:47:03 +0000 (09:47 +0200)]
contributors: helper script to dig out contributors from git

11 years agoRELEASE-NOTES: add twos refs to bug reports
Daniel Stenberg [Sun, 6 Oct 2013 22:08:55 +0000 (00:08 +0200)]
RELEASE-NOTES: add twos refs to bug reports

11 years agoRELEASE-NOTES: synced with 173160c0d068
Daniel Stenberg [Sun, 6 Oct 2013 21:36:21 +0000 (23:36 +0200)]
RELEASE-NOTES: synced with 173160c0d068

11 years agodarwinssl: block TLS_RSA_WITH_NULL_SHA256 cipher
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

11 years agoOpenSSL: acknowledge CURLOPT_SSL_VERIFYHOST without VERIFYPEER
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
11 years agoKNOWN_BUGS: #84: CURLINFO_SSL_VERIFYRESULT
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!

11 years agoxattr: add support for FreeBSD xattr API
François Charlier [Tue, 1 Oct 2013 19:57:14 +0000 (21:57 +0200)]
xattr: add support for FreeBSD xattr API

11 years agocurl_easy_setopt.3: slight clarification of SEEKFUNCTION
Daniel Stenberg [Mon, 30 Sep 2013 12:58:06 +0000 (14:58 +0200)]
curl_easy_setopt.3: slight clarification of SEEKFUNCTION

11 years agotests: Fixed typos from commit 25a0c96a494297
Steve Holme [Sun, 29 Sep 2013 19:32:23 +0000 (20:32 +0100)]
tests: Fixed typos from commit 25a0c96a494297

11 years agotests: Updated email addresses in SMTP tests following recent changes
Steve Holme [Sun, 29 Sep 2013 15:48:02 +0000 (16:48 +0100)]
tests: Updated email addresses in SMTP tests following recent changes

11 years agotest909: Removed custom EHLO response after 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.

11 years agoftpserver.pl: Fixed compilation error from commit 49341628b50007
Steve Holme [Sun, 29 Sep 2013 12:13:13 +0000 (13:13 +0100)]
ftpserver.pl: Fixed compilation error from commit 49341628b50007

11 years agoftpserver.pl: Moved specifying the test number from the RCPT address
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.

11 years agoftpserver.pl: Added unwanted argument check to SMTP DATA command handler
Steve Holme [Sun, 29 Sep 2013 08:25:23 +0000 (09:25 +0100)]
ftpserver.pl: Added unwanted argument check to SMTP DATA command handler

11 years agogetinmemory: remove a comment
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

11 years agopostinmemory: new example
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
11 years agowin32: fix Visual Studio 2010 build with WINVER >= 0x600
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
11 years agossluse.c: Fixed compilation warnings when ENGINE not supported
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

11 years agoconfigure: use icc options without space
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

11 years agoimap: Added clarification to the code about odd continuation responses
Steve Holme [Tue, 24 Sep 2013 19:49:19 +0000 (20:49 +0100)]
imap: Added clarification to the code about odd continuation responses

11 years agoftp.c: Fixed compilation warning
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"

11 years agosasl: Centralised the authentication mechanism strings
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

11 years agoRELEASE-NOTES: added recent contributors missing
Daniel Stenberg [Mon, 23 Sep 2013 21:23:51 +0000 (23:23 +0200)]
RELEASE-NOTES: added recent contributors missing

11 years agotest906: Fixed type-2 response
Steve Holme [Mon, 23 Sep 2013 06:10:25 +0000 (07:10 +0100)]
test906: Fixed type-2 response

11 years agotest915: Corrected test number from commit 22bccb0edaf041
Steve Holme [Sun, 22 Sep 2013 23:19:56 +0000 (00:19 +0100)]
test915: Corrected test number from commit 22bccb0edaf041

11 years agotest906: Fixed type-1 message not handled error
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.

11 years agotests: Added SMTP AUTH NTLM test
Steve Holme [Sun, 22 Sep 2013 19:53:29 +0000 (20:53 +0100)]
tests: Added SMTP AUTH NTLM test

11 years agotests: Added SMTP multiple and invalid --mail-rcpt test
Steve Holme [Sun, 22 Sep 2013 19:26:15 +0000 (20:26 +0100)]
tests: Added SMTP multiple and invalid --mail-rcpt test

11 years agotests: Added SMTP multiple --mail-rcpt test
Steve Holme [Sun, 22 Sep 2013 19:19:52 +0000 (20:19 +0100)]
tests: Added SMTP multiple --mail-rcpt test

11 years agotests: Added SMTP invalid --mail-rcpt test
Steve Holme [Sun, 22 Sep 2013 19:12:20 +0000 (20:12 +0100)]
tests: Added SMTP invalid --mail-rcpt test

11 years agotests: Regrouping of SMTP tests
Steve Holme [Sun, 22 Sep 2013 19:09:57 +0000 (20:09 +0100)]
tests: Regrouping of SMTP tests

11 years agotest1112: Increase the timeout from 7s to 16s
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

11 years agotests: Fixed smtp rcpt to addresses
Steve Holme [Sun, 22 Sep 2013 14:14:26 +0000 (15:14 +0100)]
tests: Fixed smtp rcpt to addresses

11 years agoftpserver.pl: Expanded the SMTP RCPT handler to validate 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.

11 years agoftpserver.pl: Added cURL SMTP server detection to HELO command handler
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.

11 years agoftpserver.pl: Corrected response code for successful RCPT command
Steve Holme [Sun, 22 Sep 2013 11:59:28 +0000 (12:59 +0100)]
ftpserver.pl: Corrected response code for successful RCPT command

11 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.

11 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.

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

11 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.

11 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.

11 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
11 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.

11 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.

11 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

11 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

11 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

11 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>".

11 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.

11 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

11 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

11 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.

11 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.

11 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

11 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

11 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.

11 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

11 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

11 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

11 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

11 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.

11 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;"

11 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.

11 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()

11 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

11 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

11 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.

11 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.

11 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

11 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

11 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

11 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++"

11 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

11 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

11 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

11 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.

11 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

11 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.

11 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

11 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

11 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.

11 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

11 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

11 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

11 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