platform/upstream/curl.git
10 years agosasl: fix compiler warning
Daniel Stenberg [Wed, 23 Oct 2013 20:28:13 +0000 (22:28 +0200)]
sasl: fix compiler warning

error: unused variable 'table16'

10 years agotests: Added POP3 DIGEST-MD5 authentication test
Steve Holme [Wed, 23 Oct 2013 17:29:29 +0000 (18:29 +0100)]
tests: Added POP3 DIGEST-MD5 authentication test

10 years agoconfigure: check for long long when building with cyassl
Daniel Stenberg [Tue, 22 Oct 2013 20:55:48 +0000 (22:55 +0200)]
configure: check for long long when building with cyassl

cyassl/ctaocrypt/types.h needs SIZEOF_LONG_LONG

Reported-by: Chris Conlon
10 years agotest1240: verify 867b52a7ac52 (glob ranges with text to the right)
Daniel Stenberg [Mon, 21 Oct 2013 22:10:16 +0000 (00:10 +0200)]
test1240: verify 867b52a7ac52 (glob ranges with text to the right)

10 years agoglob: fix regression from commit 5ca96cb844
Daniel Stenberg [Mon, 21 Oct 2013 22:01:17 +0000 (00:01 +0200)]
glob: fix regression from commit 5ca96cb844

Plain strings after glob ranges/lists weren't treated correctly but
caused broken URLs to get used.

Reported-by: Javier Barroso
10 years agoAdding a .travis.yml file to use the travis-ci.org
Rémy Léone [Thu, 17 Oct 2013 13:10:18 +0000 (15:10 +0200)]
Adding a .travis.yml file to use the travis-ci.org

From wikipedia:

Travis CI is a hosted, distributed continuous integration service used
to build and test projects hosted at GitHub.

Travis CI is configured by adding a file named .travis.yml, which is a
YAML format text file, to the root directory of the GitHub repository.

Travis CI automatically detects when a commit has been made and pushed
to a GitHub repository that is using Travis CI, and each time this
happens, it will try to build the project and run tests. This includes
commits to all branches, not just to the master branch. When that
process has completed, it will notify a developer in the way it has been
configured to do so — for example, by sending an email containing the
test results (showing success or failure), or by posting a message on an
IRC channel. It can be configured to run the tests on a range of
different machines, with different software installed (such as older
versions of a programming language, to test for compatibility).

10 years agossh: initialize per-handle data in ssh_connect()
Kamil Dudka [Mon, 21 Oct 2013 16:47:54 +0000 (18:47 +0200)]
ssh: initialize per-handle data in ssh_connect()

... if not already initialized.  This fixes a regression introduced by
commit 4ad8e142da463ab208d5b5565e53291c8e5ef038, which caused test619
to intermittently fail on certain machines (namely Fedora build hosts).

10 years agocurl.1: add missing exit-code
Gisle Vanem [Wed, 16 Oct 2013 20:31:51 +0000 (22:31 +0200)]
curl.1: add missing exit-code

I noted a missing text for exit-code 89 in docs/curl.1

10 years agocmake: unbreak for non-Windows platforms
Daniel Stenberg [Sun, 20 Oct 2013 15:12:56 +0000 (17:12 +0200)]
cmake: unbreak for non-Windows platforms

Patch-by: Oliver Kuckertz
Bug: http://curl.haxx.se/bug/view.cgi?id=1292

10 years agoftpserver.pl: Fixed syntax error from commit 5b31b38c27bb7a
Steve Holme [Sat, 19 Oct 2013 23:30:03 +0000 (00:30 +0100)]
ftpserver.pl: Fixed syntax error from commit 5b31b38c27bb7a

10 years agotest866: Fixed user response from commit 7f7fbe7fbdb449
Steve Holme [Sat, 19 Oct 2013 20:43:20 +0000 (21:43 +0100)]
test866: Fixed user response from commit 7f7fbe7fbdb449

10 years agoftpserver.pl: Fixed processing of POP3 authentication strings
Steve Holme [Sat, 19 Oct 2013 19:39:18 +0000 (20:39 +0100)]
ftpserver.pl: Fixed processing of POP3 authentication strings

...and corrected response when check fails from 500 to -ERR.

10 years agotests: Added POP3 NTLM authentication test
Steve Holme [Sat, 19 Oct 2013 12:17:25 +0000 (13:17 +0100)]
tests: Added POP3 NTLM authentication test

10 years agotests: Added POP3 CRAM-MD5 authentication test
Steve Holme [Sat, 19 Oct 2013 11:57:25 +0000 (12:57 +0100)]
tests: Added POP3 CRAM-MD5 authentication test

10 years agotests: Added POP3 login authentication test
Steve Holme [Sat, 19 Oct 2013 11:42:25 +0000 (12:42 +0100)]
tests: Added POP3 login authentication test

10 years agotests: Added POP3 plain authentication test
Steve Holme [Sat, 19 Oct 2013 11:31:55 +0000 (12:31 +0100)]
tests: Added POP3 plain authentication test

10 years agotests: Added POP3 APOP authentication test
Steve Holme [Sat, 19 Oct 2013 11:20:00 +0000 (12:20 +0100)]
tests: Added POP3 APOP authentication test

10 years agoftpserver.pl: Added support for APOP POP3 authentication
Steve Holme [Sat, 19 Oct 2013 09:38:19 +0000 (10:38 +0100)]
ftpserver.pl: Added support for APOP POP3 authentication

10 years agotests: Added POP3 RSET test
Steve Holme [Fri, 18 Oct 2013 23:10:29 +0000 (00:10 +0100)]
tests: Added POP3 RSET test

10 years agoRELEASE-NOTES: Synced with ce61510127ea60
Steve Holme [Fri, 18 Oct 2013 18:54:30 +0000 (19:54 +0100)]
RELEASE-NOTES: Synced with ce61510127ea60

10 years agoemail: Fixed QUIT / LOGOUT being sent when SSL connect fails
Steve Holme [Fri, 18 Oct 2013 18:28:20 +0000 (19:28 +0100)]
email: Fixed QUIT / LOGOUT being sent when SSL connect fails

10 years agocurl_sasl: initialize NSS before using crypto
Kamil Dudka [Fri, 18 Oct 2013 13:37:18 +0000 (15:37 +0200)]
curl_sasl: initialize NSS before using crypto

10 years agoSSL: Follow up work to commits 6a1363128f1107 and 87861c9b0e8155
Steve Holme [Thu, 17 Oct 2013 18:57:26 +0000 (19:57 +0100)]
SSL: Follow up work to commits 6a1363128f1107 and 87861c9b0e8155

Changed the failure code when TLS v1.1 and v1.2 is requested but not
supported by older OpenSSL versions, following review from libcurl
peers, and reduced the number of required preprocessor if statements.

10 years agoSSL: Added unsupported cipher version check for OpenSSL
Steve Holme [Wed, 16 Oct 2013 19:48:24 +0000 (20:48 +0100)]
SSL: Added unsupported cipher version check for OpenSSL

...with the use of CURL_SSLVERSION_TLSv1_1 and CURL_SSLVERSION_TLSv1_2
being conditional on OpenSSL v1.0.1 as the appropriate flags are not
supported under earlier versions.

10 years agoDOCS: Added libcurl version number to CURLOPT_SSLVERSION
Steve Holme [Wed, 16 Oct 2013 19:18:15 +0000 (20:18 +0100)]
DOCS: Added libcurl version number to CURLOPT_SSLVERSION

10 years agoSSL: Corrected version number for new symbols from commit ad34a2d5c87c7f
Steve Holme [Wed, 16 Oct 2013 19:06:23 +0000 (20:06 +0100)]
SSL: Corrected version number for new symbols from commit ad34a2d5c87c7f

10 years agoSSL: Corrected typo from commit 87861c9b0e8155
Steve Holme [Tue, 15 Oct 2013 23:57:01 +0000 (00:57 +0100)]
SSL: Corrected typo from commit 87861c9b0e8155

10 years agoSSL: Fixed OpenSSL builds prior to v1.0.1
Steve Holme [Tue, 15 Oct 2013 23:49:23 +0000 (00:49 +0100)]
SSL: Fixed OpenSSL builds prior to v1.0.1

Commit ad34a2d5c87c7f relies on definitions that are only present in
OpenSSL v1.0.1 and up. This quick fix allows the builds that use
older versions of OpenSSL to continue building.

10 years agotest906: Fixed failing test on some platforms
Steve Holme [Tue, 15 Oct 2013 20:31:14 +0000 (21:31 +0100)]
test906: Fixed failing test on some platforms

Bug: http://sourceforge.net/p/curl/bugs/1291
Reported-by: David Walser
10 years agoNSS: acknowledge the --no-sessionid/CURLOPT_SSL_SESSIONID_CACHE option
Paul Donohue [Tue, 15 Oct 2013 19:36:32 +0000 (21:36 +0200)]
NSS: acknowledge the --no-sessionid/CURLOPT_SSL_SESSIONID_CACHE option

10 years agossh: Handle successful SSH_USERAUTH_NONE
Tyler Hall [Mon, 14 Oct 2013 20:24:17 +0000 (22:24 +0200)]
ssh: Handle successful SSH_USERAUTH_NONE

According to the documentation for libssh2_userauth_list(), a NULL
return value is not necessarily an error. You must call
libssh2_userauth_authenticated() to determine if the SSH_USERAUTH_NONE
request was successful.

This fixes a segv when using sftp on a server that allows logins with an
empty password. When NULL was interpreted as an error, it would
free the session but not flag an error since the libssh2 errno would be
clear. This resulted in dereferencing a NULL session pointer.

Signed-off-by: Tyler Hall <tylerwhall@gmail.com>
10 years agousercertinmem: fix memory leaks
Ishan SinghLevett [Tue, 15 Oct 2013 18:48:22 +0000 (20:48 +0200)]
usercertinmem: fix memory leaks

10 years agobuild: distribute and install libcurl.m4 by default
Dave Reisner [Sun, 13 Oct 2013 17:39:42 +0000 (19:39 +0200)]
build: distribute and install libcurl.m4 by default

10 years agotool: use XFERFUNCTION to save some casts
Dave Reisner [Sun, 13 Oct 2013 17:39:41 +0000 (19:39 +0200)]
tool: use XFERFUNCTION to save some casts

10 years agocurl.1: fix typo conjuction -> conjunction
Alessandro Ghedini [Mon, 14 Oct 2013 18:49:54 +0000 (20:49 +0200)]
curl.1: fix typo conjuction -> conjunction

10 years agocurl: document the new --tlsv1.[012] options
Daniel Stenberg [Tue, 15 Oct 2013 18:31:04 +0000 (20:31 +0200)]
curl: document the new --tlsv1.[012] options

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

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

10 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

10 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

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

10 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

10 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
10 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>
10 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

10 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).

10 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

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

10 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'.

10 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

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

10 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

10 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

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

10 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

10 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
10 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!

10 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

10 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

10 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

10 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

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

10 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

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

10 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

10 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

10 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
10 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
10 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

10 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

10 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

10 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"

10 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

10 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

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

10 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

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

10 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

10 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

10 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

10 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

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

10 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

10 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

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

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

10 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

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.