platform/upstream/curl.git
11 years agotool_help: Added clarity to the --oauth2-bearer option
Steve Holme [Sat, 26 Oct 2013 12:01:33 +0000 (13:01 +0100)]
tool_help: Added clarity to the --oauth2-bearer option

...as XOAUTH2 is the extended (or non-standard) SASL identifier and
OAuth 2 is the protocol name (and version).

11 years agosmtp: Fixed response code parsing for bad AUTH continuation responses
Steve Holme [Sat, 26 Oct 2013 10:09:31 +0000 (11:09 +0100)]
smtp: Fixed response code parsing for bad AUTH continuation responses

This workaround had been previously been implemented for IMAP and POP3
but not SMTP. Some of the recent test case additions implemented this
behaviour to emulate a bad server and the SMTP code didn't cope with it.

11 years agogskit.c: Code policing following commit 2cc9246477285d
Steve Holme [Fri, 25 Oct 2013 23:57:45 +0000 (00:57 +0100)]
gskit.c: Code policing following commit 2cc9246477285d

Corrected 80 character line length error and pointer declarations (some
of which were previously incorrect)

11 years agotest907: Corrected DIGEST-MD5 response given in commit 820ed48a0088cd
Steve Holme [Fri, 25 Oct 2013 23:24:45 +0000 (00:24 +0100)]
test907: Corrected DIGEST-MD5 response given in commit 820ed48a0088cd

As the URI, which is contained within the DIGEST-MD5 response, is
constructed from the service and realm, the encoded message differs
from that generated under POP3.

11 years agoRELEASE-NOTES: Synced with d24b7953c2132a
Steve Holme [Fri, 25 Oct 2013 19:00:00 +0000 (20:00 +0100)]
RELEASE-NOTES: Synced with d24b7953c2132a

11 years agotests: Added SMTP OAUTH2 authentication with initial response test
Steve Holme [Fri, 25 Oct 2013 18:48:48 +0000 (19:48 +0100)]
tests: Added SMTP OAUTH2 authentication with initial response test

11 years agotests: Added SMTP NTLM authentication with initial response test
Steve Holme [Fri, 25 Oct 2013 18:40:40 +0000 (19:40 +0100)]
tests: Added SMTP NTLM authentication with initial response test

11 years agotests: Added SMTP OAUTH2 authentication test
Steve Holme [Fri, 25 Oct 2013 18:31:30 +0000 (19:31 +0100)]
tests: Added SMTP OAUTH2 authentication test

11 years agotests: Added SMTP DIGEST-MD5 authentication test
Steve Holme [Fri, 25 Oct 2013 18:22:30 +0000 (19:22 +0100)]
tests: Added SMTP DIGEST-MD5 authentication test

11 years agotests: Regrouped SMTP authentication tests
Steve Holme [Fri, 25 Oct 2013 18:17:15 +0000 (19:17 +0100)]
tests: Regrouped SMTP authentication tests

11 years agoOS400: sync RPG wrapper, zlib support, fix header file names, ...
Patrick Monnerat [Fri, 25 Oct 2013 16:37:37 +0000 (18:37 +0200)]
OS400: sync RPG wrapper, zlib support, fix header file names, ...
IFS compilation support, SSL GSKit backend by default, TLSv1.[12] support in
  GSKit for OS400 >= V7R1, no more tabs in make scripts.

11 years agosasl: Fixed memory leak in OAUTH2 message creation
Steve Holme [Wed, 23 Oct 2013 23:16:59 +0000 (00:16 +0100)]
sasl: Fixed memory leak in OAUTH2 message creation

11 years agoftpserver.pl: Added support for empty pop3 authentication data
Steve Holme [Wed, 23 Oct 2013 21:19:42 +0000 (22:19 +0100)]
ftpserver.pl: Added support for empty pop3 authentication data

11 years agoCURLOPT_RESOLVE: mention they don't time-out
Daniel Stenberg [Wed, 23 Oct 2013 21:14:17 +0000 (23:14 +0200)]
CURLOPT_RESOLVE: mention they don't time-out

Clarify in the documentation that DNS entries added with CURLOPT_RESOLVE
won't time-out.

Bug: http://curl.haxx.se/mail/lib-2013-10/0062.html
Reported-by: Romulo Ceccon
11 years agotests: Added POP3 OAUTH2 authentication test
Steve Holme [Wed, 23 Oct 2013 21:10:10 +0000 (22:10 +0100)]
tests: Added POP3 OAUTH2 authentication test

11 years agotests: Added empty response support to custom replies
Steve Holme [Wed, 23 Oct 2013 21:05:22 +0000 (22:05 +0100)]
tests: Added empty response support to custom replies

...and fixed up test869 as DIGEST-MD transcript is as follows:

S: Challenge
C: Authentication String
S: Continue Response
C: Empty String

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

11 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

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

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

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

11 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

11 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

11 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

11 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

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

11 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

11 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

11 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

11 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

11 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

11 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

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

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

11 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

11 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

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

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

11 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

11 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

11 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

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

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

11 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>
11 years agousercertinmem: fix memory leaks
Ishan SinghLevett [Tue, 15 Oct 2013 18:48:22 +0000 (20:48 +0200)]
usercertinmem: fix memory leaks

11 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

11 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

11 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

11 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

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