platform/upstream/curl.git
10 years agodarwinssl: check for SSLSetSessionOption() presence when toggling BEAST
Nick Zitzmann [Wed, 13 Nov 2013 02:26:20 +0000 (20:26 -0600)]
darwinssl: check for SSLSetSessionOption() presence when toggling BEAST

Even though this is only a formality (since not many people build on
Mavericks while targeting Leopard), since we still support Leopard
at the earliest, we might as well be pedantic.

10 years agodarwinssl: PKCS#12 import feature now requires Lion or later
Nick Zitzmann [Wed, 13 Nov 2013 02:18:04 +0000 (20:18 -0600)]
darwinssl: PKCS#12 import feature now requires Lion or later

It turns out that some of the constants necessary to make this feature
work are missing from Snow Leopard's Security framework even though
they are defined in the headers.

Bug: http://curl.haxx.se/mail/lib-2013-11/0076.html
Reported by: myriachan

10 years agotests: Added POP3 OAuth 2.0 authentication with initial response test
Steve Holme [Wed, 13 Nov 2013 00:33:00 +0000 (00:33 +0000)]
tests: Added POP3 OAuth 2.0 authentication with initial response test

10 years agotests: Added POP3 NTLM authentication with initial response test
Steve Holme [Wed, 13 Nov 2013 00:23:03 +0000 (00:23 +0000)]
tests: Added POP3 NTLM authentication with initial response test

10 years agotests: Added POP3 login authentication with initial response test
Steve Holme [Wed, 13 Nov 2013 00:13:06 +0000 (00:13 +0000)]
tests: Added POP3 login authentication with initial response test

10 years agotests: Added POP3 plain authentication with initial response test
Steve Holme [Wed, 13 Nov 2013 00:03:09 +0000 (00:03 +0000)]
tests: Added POP3 plain authentication with initial response test

10 years agoTODO: Added auth= in URLs to the wish list for HTTP
Steve Holme [Tue, 12 Nov 2013 20:29:58 +0000 (20:29 +0000)]
TODO: Added auth= in URLs to the wish list for HTTP

10 years agocurl_easy_setopt: Added the ability to set the login options separately
Steve Holme [Tue, 12 Nov 2013 19:01:04 +0000 (19:01 +0000)]
curl_easy_setopt: Added the ability to set the login options separately

Rather than set the authentication options as part of the login details
specified in the URL, or via the older CURLOPT_USERPWD option, added a
new libcurl option to allow the login options to be set separately.

10 years agocurl.1: mention that -O does no URL decoding
Daniel Stenberg [Tue, 12 Nov 2013 17:28:07 +0000 (09:28 -0800)]
curl.1: mention that -O does no URL decoding

10 years agocurl_easy_setopt.3: clarify CURLOPT_SSL_VERIFYHOST documentation
Tomas Hoger [Mon, 11 Nov 2013 15:20:14 +0000 (16:20 +0100)]
curl_easy_setopt.3: clarify CURLOPT_SSL_VERIFYHOST documentation

- better describe what happens when 1 is specified as parameter
- clarify what "is ignored" means for NSS builds

10 years agoruntests.pl: Added SSPI detection
Steve Holme [Tue, 12 Nov 2013 12:34:56 +0000 (12:34 +0000)]
runtests.pl: Added SSPI detection

10 years agomulti: Small code tidy up to avoid hard return
Steve Holme [Tue, 12 Nov 2013 09:59:22 +0000 (09:59 +0000)]
multi: Small code tidy up to avoid hard return

10 years agotests: Updated CRAM-MD5 tests to use test user details
Steve Holme [Tue, 12 Nov 2013 09:42:59 +0000 (09:42 +0000)]
tests: Updated CRAM-MD5 tests to use test user details

10 years agomulti: Set read socket when returning READSOCK(0)
Björn Stenberg [Mon, 11 Nov 2013 22:43:48 +0000 (23:43 +0100)]
multi: Set read socket when returning READSOCK(0)

This patch fixes and issue introduced in commit 7d7df831981fee, if the
tunnel state was TUNNEL_CONNECT, waitconnect_getsock() would return a
bitmask indicating a readable socket but never stored the socket in the
return array.

10 years agobump: next release will be 7.34.0
Daniel Stenberg [Mon, 11 Nov 2013 07:46:27 +0000 (08:46 +0100)]
bump: next release will be 7.34.0

Due to all the news and changes.

10 years agoconnect: Close temporary sockets in conn_free()
Björn Stenberg [Thu, 7 Nov 2013 23:09:20 +0000 (00:09 +0100)]
connect: Close temporary sockets in conn_free()

The temporary sockets used for Happy Eyeballs were not closed properly,
if curl exited prematurely, which this patch fixes.

10 years agotests: Corrected titles of POP3 and SMTP OAuth 2.0 tests
Steve Holme [Sun, 10 Nov 2013 20:22:44 +0000 (20:22 +0000)]
tests: Corrected titles of POP3 and SMTP OAuth 2.0 tests

10 years agotest823: Fixed expected authentication text from commit e10a26a9d6d6de
Steve Holme [Sun, 10 Nov 2013 20:20:20 +0000 (20:20 +0000)]
test823: Fixed expected authentication text from commit e10a26a9d6d6de

Fixed authentication text due to incorrect digest-uri property.

10 years agotest821: Fixed expected authentication text from commit 2d5455feac9984
Steve Holme [Sun, 10 Nov 2013 20:15:00 +0000 (20:15 +0000)]
test821: Fixed expected authentication text from commit 2d5455feac9984

10 years agoRELEASE-NOTES: Synced with 0f81fbe5da6643
Steve Holme [Sun, 10 Nov 2013 18:16:21 +0000 (18:16 +0000)]
RELEASE-NOTES: Synced with 0f81fbe5da6643

10 years agoares: Fixed compilation under Visual Studio 2012
Kim Vandry [Sun, 10 Nov 2013 17:08:57 +0000 (12:08 -0500)]
ares: Fixed compilation under Visual Studio 2012

10 years agotests: Added IMAP OAuth 2.0 authentication test
Steve Holme [Sun, 10 Nov 2013 17:00:00 +0000 (17:00 +0000)]
tests: Added IMAP OAuth 2.0 authentication test

10 years agotests: Added IMAP DIGEST-MD5 authentication test
Steve Holme [Sun, 10 Nov 2013 16:51:45 +0000 (16:51 +0000)]
tests: Added IMAP DIGEST-MD5 authentication test

10 years agotests: Added IMAP NTLM authentication test
Steve Holme [Sun, 10 Nov 2013 16:42:30 +0000 (16:42 +0000)]
tests: Added IMAP NTLM authentication test

10 years agotests: Added IMAP CRAM-MD5 authentication test
Steve Holme [Sun, 10 Nov 2013 16:33:25 +0000 (16:33 +0000)]
tests: Added IMAP CRAM-MD5 authentication test

10 years agotest819: Fixed expected authentication text from commit 76f924131c9fd3
Steve Holme [Sun, 10 Nov 2013 16:08:12 +0000 (16:08 +0000)]
test819: Fixed expected authentication text from commit 76f924131c9fd3

10 years agoftpserver.pl: Reworked custom reply handling code
Steve Holme [Thu, 7 Nov 2013 20:12:51 +0000 (20:12 +0000)]
ftpserver.pl: Reworked custom reply handling code

1) To fix issues with IMAP custom replies
2) So initial space is not required in IMAP display text
3) To be more readable and understandable

10 years agoftpserver.pl: Reworked unrecognised command responses
Steve Holme [Sun, 10 Nov 2013 10:20:50 +0000 (10:20 +0000)]
ftpserver.pl: Reworked unrecognised command responses

As the IMAP regex could fail and $1 would not contain the command id
updated the unrecognised command response to be more generic and
realistic (like those used in the command handlers).

Additionally updated the POP3, SMTP and FTP responses.

10 years agoftpserver.pl: Fixed processing of IMAP authentication strings
Steve Holme [Sun, 10 Nov 2013 10:08:32 +0000 (10:08 +0000)]
ftpserver.pl: Fixed processing of IMAP authentication strings

10 years agocmake: fix Windows build with IPv6 support
Daniel Stenberg [Fri, 8 Nov 2013 23:07:32 +0000 (00:07 +0100)]
cmake: fix Windows build with IPv6 support

Patch-by: "Z98"
10 years agoRevert "ftpserver.pl: Corrected logic from commit 27b7b1062f9d97"
Steve Holme [Wed, 6 Nov 2013 12:31:46 +0000 (12:31 +0000)]
Revert "ftpserver.pl: Corrected logic from commit 27b7b1062f9d97"

This reverts commit 558034ab7002d1 as it appears to break the auto
builds. More thought is required for this!

10 years agoftpserver.pl: Corrected logic from commit 27b7b1062f9d97
Steve Holme [Wed, 6 Nov 2013 08:07:59 +0000 (08:07 +0000)]
ftpserver.pl: Corrected logic from commit 27b7b1062f9d97

10 years agoftpserver.pl: Fixed IMAP cmdid being sent on custom responses
Steve Holme [Wed, 6 Nov 2013 07:19:01 +0000 (07:19 +0000)]
ftpserver.pl: Fixed IMAP cmdid being sent on custom responses

10 years agotests: Added IMAP login authentication test
Steve Holme [Wed, 6 Nov 2013 00:09:15 +0000 (00:09 +0000)]
tests: Added IMAP login authentication test

10 years agotests: Added IMAP plain authentication test
Steve Holme [Wed, 6 Nov 2013 00:00:00 +0000 (00:00 +0000)]
tests: Added IMAP plain authentication test

10 years agourl.c: Very small amount of policing
Steve Holme [Tue, 5 Nov 2013 23:30:12 +0000 (23:30 +0000)]
url.c: Very small amount of policing

10 years agourl.c: Remove superfluous for loop
Björn Stenberg [Tue, 5 Nov 2013 22:57:22 +0000 (23:57 +0100)]
url.c: Remove superfluous for loop

The reason for this loop's existence was removed in commit
02fbc26d59c591.

10 years agoKNOWN_BUGS: STARTTRANSFER for POST requests
Daniel Stenberg [Tue, 5 Nov 2013 09:21:30 +0000 (10:21 +0100)]
KNOWN_BUGS: STARTTRANSFER for POST requests

added 85. Wrong STARTTRANSFER timer accounting for POST requests

10 years agoCurl_ssl_push_certinfo_len: don't %.*s non-zero-terminated string
Daniel Stenberg [Tue, 5 Nov 2013 08:56:18 +0000 (09:56 +0100)]
Curl_ssl_push_certinfo_len: don't %.*s non-zero-terminated string

Our own printf() replacement clearly can't properly handle %.*s with a
string that isn't zero terminated. Instead of fixing the printf code or
even figuring out what the proper posix behavior is, I reverted this
piece of the code back to the previous version where it does malloc +
memcpy instead.

Regression added in e839446c2a5, released in curl 7.32.0.

Reported-by: Felix Yan
Bug: http://curl.haxx.se/bug/view.cgi?id=1295

10 years agoRELEASE-NOTES: Synced with 7fc3b2ce382ed6
Steve Holme [Tue, 5 Nov 2013 07:17:24 +0000 (07:17 +0000)]
RELEASE-NOTES: Synced with 7fc3b2ce382ed6

10 years agoconnect.h: Updated copyright year for last edit
Steve Holme [Tue, 5 Nov 2013 07:11:40 +0000 (07:11 +0000)]
connect.h: Updated copyright year for last edit

10 years agoconnect: Add connection delay to Happy Eyeballs.
Björn Stenberg [Tue, 29 Oct 2013 10:51:25 +0000 (11:51 +0100)]
connect: Add connection delay to Happy Eyeballs.

This patch adds a 200ms delay between the first and second address
family socket connection attempts.

It also iterates over IP addresses in the order returned by the
system, meaning most dual-stack systems will try IPv6 first.

Additionally, it refactors the connect code, removing most code that
handled synchronous connects. Since all sockets are now non-blocking,
the logic can be made simpler.

10 years agowinbind: Fixed ntlm_auth expecting eol following commit e17c1b25bc33eb
Steve Holme [Mon, 4 Nov 2013 20:12:22 +0000 (20:12 +0000)]
winbind: Fixed ntlm_auth expecting eol following commit e17c1b25bc33eb

10 years agonss.c: Fixed compilation warnings (Take Two)
Steve Holme [Mon, 4 Nov 2013 12:59:34 +0000 (12:59 +0000)]
nss.c: Fixed compilation warnings (Take Two)

nss.c:702: warning: pointer targets in passing argument 3 of
'Curl_extract_certinfo' differ in signedness

nss.c:702: warning: pointer targets in passing argument 4 of
'Curl_extract_certinfo' differ in signedness

Made sure the cast was correctly "unsigned char *" to "char *" and not
"unsigned char *" to "unsigned char *".

10 years agonss.c: Fixed compilation warnings
Steve Holme [Mon, 4 Nov 2013 00:38:58 +0000 (00:38 +0000)]
nss.c: Fixed compilation warnings

nss.c:700: warning: pointer targets in passing argument 3 of
'Curl_extract_certinfo' differ in signedness

nss.c:700: warning: pointer targets in passing argument 4 of
'Curl_extract_certinfo' differ in signedness

10 years agotests: Added test for IMAP NOOP command
Steve Holme [Sun, 3 Nov 2013 21:34:38 +0000 (21:34 +0000)]
tests: Added test for IMAP NOOP command

10 years agotests: Added test for IMAP COPY command
Steve Holme [Sun, 3 Nov 2013 21:24:20 +0000 (21:24 +0000)]
tests: Added test for IMAP COPY command

10 years agotests: Disable IMAP CLOSE and EXPUNGE command tests
Steve Holme [Sun, 3 Nov 2013 20:41:28 +0000 (20:41 +0000)]
tests: Disable IMAP CLOSE and EXPUNGE command tests

This is temporary until curl supports either multiple custom commands
or post-quote commands in IMAP.

10 years agotests: Added tests for IMAP CLOSE and EXPUNGE commands
Steve Holme [Sun, 3 Nov 2013 20:34:35 +0000 (20:34 +0000)]
tests: Added tests for IMAP CLOSE and EXPUNGE commands

10 years agoconnect.c: Code policing on commit 5094bb53f4a027
Steve Holme [Sun, 3 Nov 2013 19:53:58 +0000 (19:53 +0000)]
connect.c: Code policing on commit 5094bb53f4a027

No need for a rhs condition on a bitwise compare.

10 years agonss.c: Fixed compilation warnings
Steve Holme [Sun, 3 Nov 2013 16:36:51 +0000 (16:36 +0000)]
nss.c: Fixed compilation warnings

warning: implicit declaration of function 'Curl_extract_certinfo'

10 years agox509asn1.c: Fixed compilation warnings
Steve Holme [Sun, 3 Nov 2013 16:24:17 +0000 (16:24 +0000)]
x509asn1.c: Fixed compilation warnings

warning: declaration of 'chsize' shadows a global declaration

10 years agoDOCS: Expanded --request description to include POP3 and IMAP details
Steve Holme [Sun, 3 Nov 2013 14:39:10 +0000 (14:39 +0000)]
DOCS: Expanded --request description to include POP3 and IMAP details

10 years agotool_help: Updated --list-only description to include POP3
Steve Holme [Sun, 3 Nov 2013 13:55:22 +0000 (13:55 +0000)]
tool_help: Updated --list-only description to include POP3

10 years agoDOCS: Updated --list-only description to include POP3
Steve Holme [Sun, 3 Nov 2013 13:54:49 +0000 (13:54 +0000)]
DOCS: Updated --list-only description to include POP3

Additionally corrected typos in --oauth2-bearer protocol list.

10 years agobase64: Fixed compilation warnings when using Curl_base64_decode()
Steve Holme [Sun, 3 Nov 2013 12:25:07 +0000 (12:25 +0000)]
base64: Fixed compilation warnings when using Curl_base64_decode()

curl_sasl.c:294: warning: dereferencing type-punned pointer will break
strict-aliasing rules

getpart.c:201: warning: dereferencing type-punned pointer will break
strict-aliasing rules

10 years agoconnect: Fixed "Whut?" no server connection failures
Steve Holme [Sun, 3 Nov 2013 11:27:12 +0000 (11:27 +0000)]
connect: Fixed "Whut?" no server connection failures

Introduced in commit 7d7df831981fee curl would loop displaying "Whut?"
if it was trying to connect to an address and port that didn't have
anything listening on it.

10 years agohttp: Post base64 decoding tidy up
Steve Holme [Sun, 3 Nov 2013 10:17:26 +0000 (10:17 +0000)]
http: Post base64 decoding tidy up

Renamed copy_header_value() to Curl_copy_header_value() as this
function is now non static.

Simplified proxy flag in Curl_http_input_auth() when calling
sub-functions.

Removed unnecessary white space removal when using negotiate as it had
been missed in commit cdccb422671aeb.

10 years agoglob_range: pass the closing bracket for a-z ranges
Daniel Stenberg [Sun, 3 Nov 2013 09:08:10 +0000 (10:08 +0100)]
glob_range: pass the closing bracket for a-z ranges

Regression since commit 5ca96cb844102 (release in 7.33.0)

Reported-by: Marcin Gryszkalis
10 years agogetpart: Fixed base64 encoded parts following commit e17c1b25bc33eb
Steve Holme [Sat, 2 Nov 2013 17:00:00 +0000 (17:00 +0000)]
getpart: Fixed base64 encoded parts following commit e17c1b25bc33eb

10 years agohttp: Added proxy tunnel authentication message header value extraction
Steve Holme [Sat, 2 Nov 2013 11:18:39 +0000 (11:18 +0000)]
http: Added proxy tunnel authentication message header value extraction

...following recent changes to Curl_base64_decode() rather than trying
to parse a header line for the authentication mechanisms which is CRLF
terminated and inline zero terminate it.

10 years agohttp: Added authentication message header value extraction
Steve Holme [Wed, 30 Oct 2013 21:33:28 +0000 (21:33 +0000)]
http: Added authentication message header value extraction

...following recent changes to Curl_base64_decode() rather than trying
to parse a header line for the authentication mechanisms which is CRLF
terminated and inline zero terminate it.

10 years agocurl_multi_wait: accept 0 from multi_timeout() as valid timeout
Daniel Stenberg [Wed, 30 Oct 2013 22:48:08 +0000 (23:48 +0100)]
curl_multi_wait: accept 0 from multi_timeout() as valid timeout

The code rejected 0 as a valid timeout while in fact the function could
indeed legitimately return that and it should be respected.

Reported-by: Bjorn Stenberg
10 years agoemail: Corrected a couple of typos from commit aa0eaef4838ccd
Steve Holme [Wed, 30 Oct 2013 21:25:15 +0000 (21:25 +0000)]
email: Corrected a couple of typos from commit aa0eaef4838ccd

10 years agoTODO: Removed the 'Graceful base64 decoding failure' sections
Steve Holme [Wed, 30 Oct 2013 20:59:11 +0000 (20:59 +0000)]
TODO: Removed the 'Graceful base64 decoding failure' sections

Updated following the recent changes to support graceful failures
during the authentication phrase.

10 years agoemail: Post graceful SASL authentication cancellation tidy up
Steve Holme [Wed, 30 Oct 2013 20:56:38 +0000 (20:56 +0000)]
email: Post graceful SASL authentication cancellation tidy up

10 years agotests: use proper padding in NTLM responses
Kamil Dudka [Wed, 30 Oct 2013 16:52:19 +0000 (17:52 +0100)]
tests: use proper padding in NTLM responses

10 years agoNSS: support for CERTINFO feature
Patrick Monnerat [Wed, 30 Oct 2013 10:12:06 +0000 (11:12 +0100)]
NSS: support for CERTINFO feature

10 years agobase64: removed trailing white space
Daniel Stenberg [Wed, 30 Oct 2013 08:11:10 +0000 (09:11 +0100)]
base64: removed trailing white space

and updated copyright year

10 years agobase64: Added basic validation to base64 input string when decoding
Steve Holme [Wed, 30 Oct 2013 07:31:22 +0000 (07:31 +0000)]
base64: Added basic validation to base64 input string when decoding

A base64 string should be a multiple of 4 characters in length, not
contain any more than 2 padding characters and only contain padding
characters at the end of string. For example: Y3VybA==

Strings such as the following are considered invalid:

Y=   - Invalid length
Y==  - Invalid length
Y=== - More than two padding characters
Y=x= - Padding character contained within string

10 years agoRELEASE-NOTES: synced with 255826c40f9316
Daniel Stenberg [Tue, 29 Oct 2013 22:06:04 +0000 (23:06 +0100)]
RELEASE-NOTES: synced with 255826c40f9316

10 years agobugfix: Don't block waiting for socket1 connect.
Björn Stenberg [Tue, 29 Oct 2013 13:43:01 +0000 (14:43 +0100)]
bugfix: Don't block waiting for socket1 connect.

This patch fixes a bug in Happy Eyeballs where curl would wait for a
connect response from socket1 before checking socket2.

Also, it updates error messages for failed connections, showing the ip
addresses that failed rather than just the host name repeatedly.

Bug: http://curl.haxx.se/mail/lib-2013-10/0236.html
Reported-by: Paul Marks
10 years agosasl: Updated create_digest_md5_message() to use a dynamic buffer
Steve Holme [Sun, 27 Oct 2013 22:53:07 +0000 (22:53 +0000)]
sasl: Updated create_digest_md5_message() to use a dynamic buffer

10 years agoSECURITY: "curl security for developers"
Daniel Stenberg [Mon, 28 Oct 2013 22:19:55 +0000 (23:19 +0100)]
SECURITY: "curl security for developers"

Describes our security process from a project and curl developer's
perspective.

10 years agoOS400: coding style standards
Patrick Monnerat [Mon, 28 Oct 2013 11:00:22 +0000 (12:00 +0100)]
OS400: coding style standards

10 years agoemail: Added support for cancelling NTLM authentication
Steve Holme [Sun, 27 Oct 2013 22:20:18 +0000 (22:20 +0000)]
email: Added support for cancelling NTLM authentication

10 years agosasl: Removed unused variables from commit b87ba2c94217c0
Steve Holme [Sun, 27 Oct 2013 17:04:56 +0000 (17:04 +0000)]
sasl: Removed unused variables from commit b87ba2c94217c0

10 years agoemail: Added support for cancelling DIGEST-MD5 authentication
Steve Holme [Sun, 27 Oct 2013 16:27:38 +0000 (16:27 +0000)]
email: Added support for cancelling DIGEST-MD5 authentication

10 years agoemail: Corrected a couple of typos from 1e39b95682781f
Steve Holme [Sun, 27 Oct 2013 16:24:03 +0000 (16:24 +0000)]
email: Corrected a couple of typos from 1e39b95682781f

10 years agodocs/examples/httpput.c: fix build for MSVC
Gisle Vanem [Thu, 24 Oct 2013 13:21:16 +0000 (15:21 +0200)]
docs/examples/httpput.c: fix build for MSVC

"Dan Fandrich" <dan@coneharvesters.com> wrote:

>> But I'm not sure <unistd.h> is needed at all.
>
> It's needed for close(2). But the only reason that's needed is because fstat
> is used instead of stat(2); if you fix that, then you could remove that
> include altogether.

Okay. I've tested the following with MSVC and MingW. htttput.c now
simply uses stat():

10 years agoemail: Added support for canceling CRAM-MD5 authentication
Steve Holme [Sun, 27 Oct 2013 12:34:56 +0000 (12:34 +0000)]
email: Added support for canceling CRAM-MD5 authentication

10 years agoTypo fix in trynextip().
Björn Stenberg [Sun, 27 Oct 2013 11:27:52 +0000 (12:27 +0100)]
Typo fix in trynextip().

10 years agoTODO: remove "Happy Eyeball dual stack connect"
Daniel Stenberg [Sun, 27 Oct 2013 10:34:09 +0000 (11:34 +0100)]
TODO: remove "Happy Eyeball dual stack connect"

... as it was just merged in commit 7d7df

10 years agoAdd "Happy Eyeballs" for IPv4/IPv6.
Björn Stenberg [Sat, 26 Oct 2013 12:17:33 +0000 (14:17 +0200)]
Add "Happy Eyeballs" for IPv4/IPv6.

This patch invokes two socket connect()s nearly simultaneously, and
the socket that is first connected "wins" and is subsequently used for
the connection. The other is terminated.

There is a very slight IPv4 preference, in that if both sockets connect
simultaneously IPv4 is checked first and thus will win.

10 years agoemail: Added initial support for cancelling authentication
Steve Holme [Sun, 27 Oct 2013 09:10:38 +0000 (09:10 +0000)]
email: Added initial support for cancelling authentication

Should a client application fail to decode an authentication message
received from a server, or not support any of the parameters given by
the server in the message, then the authentication phrase should be
cancelled gracefully by the client rather than simply terminating the
connection.

The authentication phrase should be cancelled by simply sending a '*'
to the server, in response to erroneous data being received, as per
RFC-3501, RFC-4954 and RFC-5034.

This patch adds the necessary state machine constants and appropriate
response handlers in order to add this functionality for the CRAM-MD5,
DIGEST-MD5 and NTLM authentication mechanisms.

10 years agoemail: Moved authentication message parsing into a separate function
Steve Holme [Sun, 27 Oct 2013 09:00:41 +0000 (09:00 +0000)]
email: Moved authentication message parsing into a separate function

...in preparation for upcoming modifications.

10 years agoftp: Fixed compiler warning
Steve Holme [Sat, 26 Oct 2013 23:00:01 +0000 (00:00 +0100)]
ftp: Fixed compiler warning

warning: 'result' may be used uninitialized in this function

10 years agoFTP: make the data connection work when going through proxy
Daniel Stenberg [Sat, 26 Oct 2013 18:19:27 +0000 (20:19 +0200)]
FTP: make the data connection work when going through proxy

This is a regression since the switch to always-multi internally
c43127414d89c.

Test 1316 was modified since we now clearly call the Curl_client_write()
function when doing the LIST transfer part and then the
handler->protocol says FTP and ftpc.transfertype is 'A' which implies
text converting even though that the response is initially a HTTP
CONNECT response in this case.

10 years agotool_help: Added login options to --user description
Steve Holme [Sat, 26 Oct 2013 19:11:48 +0000 (20:11 +0100)]
tool_help: Added login options to --user description

10 years agoemail: Added references to SASL LOGIN authentication draft proposal
Steve Holme [Sat, 26 Oct 2013 13:35:27 +0000 (14:35 +0100)]
email: Added references to SASL LOGIN authentication draft proposal

10 years agotests: Tidy up of SMTP and POP3 tests
Steve Holme [Sat, 26 Oct 2013 12:44:31 +0000 (13:44 +0100)]
tests: Tidy up of SMTP and POP3 tests

Corrected line endings, RFC references and standardised on user names
and passwords used in the tests.

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

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

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

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

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

10 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

10 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

10 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

10 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