platform/upstream/curl.git
12 years agopop3: Added support for sasl plain text authentication
Steve Holme [Thu, 31 May 2012 19:45:53 +0000 (20:45 +0100)]
pop3: Added support for sasl plain text authentication

12 years agocurl_ntlm_msgs.c: Corrected small spelling mistake in comments
Steve Holme [Wed, 30 May 2012 19:56:37 +0000 (20:56 +0100)]
curl_ntlm_msgs.c: Corrected small spelling mistake in comments

12 years agosasl: Moved plain text authentication message creation from smtp.c
Steve Holme [Wed, 30 May 2012 19:52:52 +0000 (20:52 +0100)]
sasl: Moved plain text authentication message creation from smtp.c

Moved the plain text message creation from smtp.c into the sasl module
to allow for use by other modules such as pop3.

12 years agoconfigure: fix LDAPS disabling related misplaced closing parenthesis
Yang Tse [Wed, 30 May 2012 15:40:13 +0000 (17:40 +0200)]
configure: fix LDAPS disabling related misplaced closing parenthesis

12 years agopop3 test server: allow pop3 test server verification to succeed again
Yang Tse [Wed, 30 May 2012 15:39:14 +0000 (17:39 +0200)]
pop3 test server: allow pop3 test server verification to succeed again

Introduce SUPPORTCAPA and SUPPORTAUTH config commands to allow further
pop3 test server expansion for tests that require CAPA or AUTH support,
although this will need some extra work to make it fully functional.

12 years agopop3: Introduced the continue response in pop3_endofresp()
Steve Holme [Mon, 28 May 2012 20:29:01 +0000 (21:29 +0100)]
pop3: Introduced the continue response in pop3_endofresp()

12 years agopop3: Changed response code from O and E to + and -
Steve Holme [Mon, 28 May 2012 19:59:10 +0000 (20:59 +0100)]
pop3: Changed response code from O and E to + and -

The POP3 protocol doesn't really have the concept of error codes and
uses +, +OK and -ERR in response to commands to indicate continue,
success and error.

The AUTH command is one of those commands that requires multiple pieces
of data to be sent to the server where the server will respond with + as
part of the handshaking. This meant changing the values before
continuing with the next stage of adding authentication support.

12 years agopop3: Small code tidy up following authentication work so far
Steve Holme [Mon, 28 May 2012 19:21:52 +0000 (20:21 +0100)]
pop3: Small code tidy up following authentication work so far

Changed the order of the state machine to match the order of actual
events.

Reworked some comments and function parameter positioning that I missed
the other day.

12 years agonss: use human-readable error messages provided by NSS
Kamil Dudka [Mon, 21 May 2012 14:19:12 +0000 (16:19 +0200)]
nss: use human-readable error messages provided by NSS

Bug: http://lists.baseurl.org/pipermail/yum-devel/2012-January/009002.html

12 years agotest1013.pl: filter out Metalink
Daniel Stenberg [Sun, 27 May 2012 21:43:23 +0000 (23:43 +0200)]
test1013.pl: filter out Metalink

Since it isn't a feature supported by curl-config we can't compare that
with the --version output

12 years agopop3: remove variable-not-used warnings
Daniel Stenberg [Sun, 27 May 2012 21:29:15 +0000 (23:29 +0200)]
pop3: remove variable-not-used warnings

12 years agoDOCS: Corrected the "Added in" version number for CURLOPT_MAIL_AUTH
Steve Holme [Sun, 27 May 2012 19:04:36 +0000 (20:04 +0100)]
DOCS: Corrected the "Added in" version number for CURLOPT_MAIL_AUTH

Additionally corrected another RFC link that I missed yesterday.

12 years agopop3: Added support for SASL based authentication mechanism detection
Steve Holme [Sun, 27 May 2012 18:09:38 +0000 (19:09 +0100)]
pop3: Added support for SASL based authentication mechanism detection

Added support for detecting the supported SASL authentication mechanisms
via the AUTH command. There are two ways of detecting them, either by
using the AUTH command, that will return -ERR if not supported or by
using the CAPA command which will return SASL and the list of mechanisms
if supported, not include SASL if SASL authentication is not supported
or -ERR if the CAPA command is not supported. As such it seems simpler
to use the AUTH command and fallback to normal clear text authentication
if the the command is not supported.

Additionally updated the test cases to return -ERR when the AUTH command
is encountered. Additional test cases will be added when support for the
individual authentication mechanisms is added.

12 years agopop3: remove trailing whitespace
Daniel Stenberg [Sun, 27 May 2012 12:08:46 +0000 (14:08 +0200)]
pop3: remove trailing whitespace

12 years agopop3: Code tidy up before the introduction of authentication code
Steve Holme [Sun, 27 May 2012 09:54:13 +0000 (10:54 +0100)]
pop3: Code tidy up before the introduction of authentication code

Moved EOB definition into header file.

Switched the logic around in pop3_endofresp() to allow for the
introduction of auth-mechanism detection.

Repositioned second and third function variables where they will fit
within the 78 character line limit.

Tidied up some comments.

12 years agoEnabled OpenSSL static linkage.
Guenter Knauf [Sun, 27 May 2012 05:26:48 +0000 (07:26 +0200)]
Enabled OpenSSL static linkage.

12 years agoEnabled OpenSSL static linkage.
Guenter Knauf [Sun, 27 May 2012 05:16:45 +0000 (07:16 +0200)]
Enabled OpenSSL static linkage.

12 years agoTry to detect OpenSSL build type automatically.
Guenter Knauf [Sun, 27 May 2012 01:28:43 +0000 (03:28 +0200)]
Try to detect OpenSSL build type automatically.

12 years agometalink: fix build errors when disabled
Daniel Stenberg [Sat, 26 May 2012 21:20:23 +0000 (23:20 +0200)]
metalink: fix build errors when disabled

12 years agoReduced #ifdef HAVE_METALINK
Tatsuhiro Tsujikawa [Sat, 26 May 2012 13:51:03 +0000 (22:51 +0900)]
Reduced #ifdef HAVE_METALINK

12 years agoDisable hash check if neither OpenSSL nor GNUTLS is installed.
Tatsuhiro Tsujikawa [Sat, 26 May 2012 12:21:53 +0000 (21:21 +0900)]
Disable hash check if neither OpenSSL nor GNUTLS is installed.

12 years agoFormat GETOUT_METALINK nicely
Tatsuhiro Tsujikawa [Fri, 25 May 2012 10:51:05 +0000 (19:51 +0900)]
Format GETOUT_METALINK nicely

12 years agoMinimize usage of structs from libmetalink
Tatsuhiro Tsujikawa [Fri, 25 May 2012 10:24:32 +0000 (19:24 +0900)]
Minimize usage of structs from libmetalink

12 years agoCheck checksum of downloaded file if checksum is available
Tatsuhiro Tsujikawa [Mon, 21 May 2012 16:40:11 +0000 (01:40 +0900)]
Check checksum of downloaded file if checksum is available

Metalink file contains several hash types of checksums, such as
md5, sha-1, sha-256, etc. To deal with these checksums, I created
abstraction layer based on lib/curl_md5.h and
lib/md5.c. Basically, they are almost the same but I changed the
code so that it is not hash type dependent. Currently,
GNUTLS(nettle or gcrypt) and OpenSSL functions are supported.

Checksum checking is done by reopening download file.  If there
is an I/O error, the current implementation just prints error
message and does not try next resource.

In this patch, the supported hash types are: md5, sha-1 and sha-256.

12 years agoAlways create directory hierarchy for Metalink.
Tatsuhiro Tsujikawa [Mon, 14 May 2012 13:46:15 +0000 (22:46 +0900)]
Always create directory hierarchy for Metalink.

Filenames contained in Metalink file can include directory information.
Filenames are unique in Metalink file, taking into account the directory
information. So we need to create the directory hierarchy.

Curl has --create-dirs option, but we create directory hierarchy for
Metalink downloads regardless of the option value.

This patch also put metalink int variable outside of HAVE_LIBMETALINK
guard. This reduces the number of #ifdefs.

12 years agoFixed segmentation fault when Metalink has no valid file or no resource.
Tatsuhiro Tsujikawa [Mon, 14 May 2012 12:55:48 +0000 (21:55 +0900)]
Fixed segmentation fault when Metalink has no valid file or no resource.

12 years agoSupport media-type parameter in Content-Type
Tatsuhiro Tsujikawa [Tue, 8 May 2012 15:20:17 +0000 (00:20 +0900)]
Support media-type parameter in Content-Type

12 years agoPrint "Metalink" in Features if Metalink support is enabled.
Tatsuhiro Tsujikawa [Tue, 8 May 2012 15:19:17 +0000 (00:19 +0900)]
Print "Metalink" in Features if Metalink support is enabled.

12 years agoRemoved trailing space
Tatsuhiro Tsujikawa [Sun, 6 May 2012 15:31:54 +0000 (00:31 +0900)]
Removed trailing space

12 years agoAdd --metalink to --help
ant [Sat, 5 May 2012 02:33:41 +0000 (22:33 -0400)]
Add --metalink to --help

12 years agoAdd Metalink information and --metalink option to man page
ant [Sat, 5 May 2012 02:18:33 +0000 (22:18 -0400)]
Add Metalink information and --metalink option to man page

12 years agoAdd Metalink information and --metalink option to man page
ant [Sat, 5 May 2012 01:58:05 +0000 (21:58 -0400)]
Add Metalink information and --metalink option to man page

12 years agoAdds Metalink information to INSTALL
ant [Fri, 4 May 2012 04:00:32 +0000 (00:00 -0400)]
Adds Metalink information to INSTALL

12 years ago--metalink option is available regardless of Metalink support.
Tatsuhiro Tsujikawa [Sat, 28 Apr 2012 14:48:20 +0000 (23:48 +0900)]
--metalink option is available regardless of Metalink support.

12 years agometalink: parse downloaded Metalink file
Tatsuhiro Tsujikawa [Sat, 28 Apr 2012 14:46:32 +0000 (23:46 +0900)]
metalink: parse downloaded Metalink file

Parse downloaded Metalink file and add downloads described there. Fixed
compile error without metalink support.

12 years agoFixed HAVE_LIBMETALINK conditional is always true
Tatsuhiro Tsujikawa [Sat, 28 Apr 2012 14:45:56 +0000 (23:45 +0900)]
Fixed HAVE_LIBMETALINK conditional is always true

12 years agometalink: minor metalinkfile fix
Tatsuhiro Tsujikawa [Sat, 28 Apr 2012 13:53:34 +0000 (22:53 +0900)]
metalink: minor metalinkfile fix

Don't update config->metalinkfile_last in operate(). Use local variable
to point to the current metalinkfile.

12 years agometalink: show help message even if disabled
Tatsuhiro Tsujikawa [Sat, 28 Apr 2012 12:48:56 +0000 (21:48 +0900)]
metalink: show help message even if disabled

Print message if --metalink is used while metalink support is not
enabled. Migrated Metalink support in tool_operate.c and removed
operatemetalink().

12 years agoApplied patches from Daniel
Tatsuhiro Tsujikawa [Sat, 28 Apr 2012 06:36:35 +0000 (15:36 +0900)]
Applied patches from Daniel

12 years agoSupport Metalink.
Tatsuhiro Tsujikawa [Thu, 26 Apr 2012 13:59:52 +0000 (22:59 +0900)]
Support Metalink.

This change adds experimental Metalink support to curl.
To enable Metalink support, run configure with --with-libmetalink.
To feed Metalink file to curl, use --metalink option like this:

  $ curl -O --metalink foo.metalink

We use libmetalink to parse Metalink files.

12 years agoDOCS: Fixed line spacing of authentication examples in CURLOPT_URL
Steve Holme [Sat, 26 May 2012 13:15:33 +0000 (14:15 +0100)]
DOCS: Fixed line spacing of authentication examples in CURLOPT_URL

12 years agoDOCS: Changed domain names in various examples to example.com
Steve Holme [Sat, 26 May 2012 13:05:45 +0000 (14:05 +0100)]
DOCS: Changed domain names in various examples to example.com

Updated various references of real domain names to example.com as per
RFC-2606.

12 years agoDOCS: Fixed meaning of bit 2 in CURLOPT_POSTREDIR
Steve Holme [Sat, 26 May 2012 12:08:37 +0000 (13:08 +0100)]
DOCS: Fixed meaning of bit 2 in CURLOPT_POSTREDIR

Setting bit 2 for this value was documented as having a constant value
defined as CURL_REDIR_POST_303 yet referenced a 302 request.

Additionally corrected the meaning of CURL_REDIR_POST_ALL for all three
bits and fixed problems with the bolding of keywords in this section.

12 years agoDOCS: Standardised how RFCs are referenced.
Steve Holme [Sat, 26 May 2012 11:26:35 +0000 (12:26 +0100)]
DOCS: Standardised how RFCs are referenced.

Standardised how RFCs are referenced so that the website may autolink to
the correct documentation on ietf.org. Additionally removed the one link
to RFC3986 on curl.haxx.se.

12 years agoFix libcurl.pc and curl-config generation for static MingW* cross builds
Yang Tse [Fri, 25 May 2012 21:59:38 +0000 (23:59 +0200)]
Fix libcurl.pc and curl-config generation for static MingW* cross builds

12 years agoMade -D option work with -O and -J.
Tatsuhiro Tsujikawa [Fri, 25 May 2012 08:33:28 +0000 (17:33 +0900)]
Made -D option work with -O and -J.

To achieve this, first new structure HeaderData is defined to hold
necessary data to perform header-related work.  Then tool_header_cb now
receives HeaderData pointer as userdata.  All header-related work
(currently, dumping header and Content-Disposition inspection) are done
in this callback function.  HeaderData.outs->config is used to determine
whether each work is done.

Unit tests were also updated because after this change, curl code always
sets CURLOPT_HEADERFUNCTION and CURLOPT_HEADERDATA.

Tested with -O -J -D, -O -J -i and -O -J -D -i and all worked fine.

12 years agosasl: Re-factored auth-mechanism constants to be more generic
Steve Holme [Fri, 25 May 2012 20:58:17 +0000 (21:58 +0100)]
sasl: Re-factored auth-mechanism constants to be more generic

12 years agosmtp: Moved auth-mechanism constants into a separate header file
Steve Holme [Fri, 25 May 2012 20:49:25 +0000 (21:49 +0100)]
smtp: Moved auth-mechanism constants into a separate header file

Move the SMTP_AUTH constants into a separate header file in
preparation for adding SASL based authentication to POP3 as the two
protocols will need to share them.

12 years agonss: avoid using explicit casts of code pointers
Kamil Dudka [Mon, 21 May 2012 14:31:21 +0000 (16:31 +0200)]
nss: avoid using explicit casts of code pointers

12 years agoDOCS: Added LDAP to the CURLOPT_URL section
Steve Holme [Thu, 24 May 2012 20:17:00 +0000 (21:17 +0100)]
DOCS: Added LDAP to the CURLOPT_URL section

12 years agoTODO: Removed DIGEST-MD5 authentication from SMTP to do list
Steve Holme [Thu, 24 May 2012 17:55:00 +0000 (18:55 +0100)]
TODO: Removed DIGEST-MD5 authentication from SMTP to do list

Removed DIGEST-MD5 from Section 9.1 Other authentication mechanisms as
the feature was added to SMTP in 7.26.0.

Also corrected small spelling mistake.

12 years agobump to 7.26.1: start working towards next release
Daniel Stenberg [Thu, 24 May 2012 16:32:34 +0000 (18:32 +0200)]
bump to 7.26.1: start working towards next release

12 years agoRELEASE-NOTES: synced with ef60fdbd73
Daniel Stenberg [Thu, 24 May 2012 16:04:41 +0000 (18:04 +0200)]
RELEASE-NOTES: synced with ef60fdbd73

Just before 7.26.0 is about to ship

12 years agosmtp: Fixed an issue with the multi-interface always sending postdata
Steve Holme [Tue, 22 May 2012 21:08:25 +0000 (22:08 +0100)]
smtp: Fixed an issue with the multi-interface always sending postdata

Due to the result code being reset to CURLE_OK when smtp_dophase_done()
was called, postdata would incorrectly be sent to the server when the
MAIL FROM or RCPT command was rejected.

As such, libcurl would return the wrong result code from performing the
operation and additionally set CURLINFO_RESPONSE_CODE to be that
returned by the postdata command.

Bug: http://curl.haxx.se/mail/lib-2012-05/0108.html
Reported by: Gokhan Sengun

12 years agoDOCS: Updated version number for features added in the pending release
Steve Holme [Tue, 22 May 2012 19:20:59 +0000 (20:20 +0100)]
DOCS: Updated version number for features added in the pending release

12 years agoFixed compile error with GNUTLS+NETTLE
Tatsuhiro Tsujikawa [Tue, 22 May 2012 13:49:40 +0000 (22:49 +0900)]
Fixed compile error with GNUTLS+NETTLE

In nettle/md5.h, md5_init and md5_update are defined as macros to
nettle_md5_init and nettle_md5_update respectively.  This causes
error when using MD5_params.md5_init and md5_update.  This patch
renames these members as md5_init_func and md5_update_func to
avoid name conflict. For completeness, MD5_params.md5_final was
also renamed as md5_final_func.

The changes in curl_ntlm_core.c is conversion error and fixed by
casting to proper type.

12 years agoTODO-RELEASE: mention the pending biggies for 7.27.0
Daniel Stenberg [Tue, 22 May 2012 09:56:19 +0000 (11:56 +0200)]
TODO-RELEASE: mention the pending biggies for 7.27.0

12 years agowinbuild: fix IPv6 enabled build
Jan Ehrhardt [Tue, 22 May 2012 09:10:27 +0000 (11:10 +0200)]
winbuild: fix IPv6 enabled build

The existing check was wrong so IPv6 support would never be enabled

12 years ago7.26.0: will be the next release version
Daniel Stenberg [Tue, 22 May 2012 08:56:50 +0000 (10:56 +0200)]
7.26.0: will be the next release version

12 years agoRELEASE-NOTES: synced with 8ae1e657e82a
Daniel Stenberg [Tue, 22 May 2012 08:54:08 +0000 (10:54 +0200)]
RELEASE-NOTES: synced with 8ae1e657e82a

And mention that this will become 7.26.0

12 years agoUpdated dependency libary versions.
Guenter Knauf [Tue, 22 May 2012 02:15:37 +0000 (04:15 +0200)]
Updated dependency libary versions.

12 years agocurl-config.1: fix curl-config usage in example
Daniel Stenberg [Sun, 20 May 2012 13:38:54 +0000 (15:38 +0200)]
curl-config.1: fix curl-config usage in example

The curl-config command must be used twice in the single command line to
work properly in some environments.

Bug: http://curl.haxx.se/bug/view.cgi?id=3528241
Reported by: Julian Taylor

12 years agosmtp: Fixed non-escaping of dot character at beginning of line
Steve Holme [Thu, 17 May 2012 10:31:06 +0000 (11:31 +0100)]
smtp: Fixed non-escaping of dot character at beginning of line

A dot character at the beginning of a line would not be escaped to a
double dot as required by RFC-2821, instead it would be deleted by the
mail server. Please see section 4.5.2 of the RFC for more information.

Note: This fix also simplifies the detection of repeated CRLF.CRLF
combinations, such as CRLF.CRLF.CRLF, a little rather than having to
advance the eob counter to 2.

12 years agoFAQ: updated 1.10 How many are using curl?
Daniel Stenberg [Wed, 16 May 2012 21:17:47 +0000 (23:17 +0200)]
FAQ: updated 1.10 How many are using curl?

Now linking to http://daniel.haxx.se/blog/2012/05/16/300m-users/

12 years agodisable-versioned-symbols: removed superfluous 'fi'
Daniel Stenberg [Mon, 14 May 2012 20:23:53 +0000 (22:23 +0200)]
disable-versioned-symbols: removed superfluous 'fi'

The commit e315927a1a left this in

12 years agoMakefileBuild.vc: use the correct IDN variable
Daniel Stenberg [Mon, 14 May 2012 09:40:59 +0000 (11:40 +0200)]
MakefileBuild.vc: use the correct IDN variable

The variable that control IDN enablement is called USE_IDN within these
Makefiles

12 years agoautoconf: improve handling of versioned symbols
Pierre Chapuis [Thu, 10 May 2012 16:50:51 +0000 (18:50 +0200)]
autoconf: improve handling of versioned symbols

It checks whether versioned symbols should be enabled before checking
whether it is possible (i.e. the linker supports --version-script) or
not. This avoids a useless warning when building cURL on a platform that
does not use GNU ld.

Moreover, it fixes broken indentation of this chunk of code.

12 years agocurl.1: clarify -x usage
Daniel Stenberg [Sat, 12 May 2012 21:31:27 +0000 (23:31 +0200)]
curl.1: clarify -x usage

1 - fix the syntax in the .IP line

2 - Provided user names and passwords are URL decoded by libcurl

Bug: http://curl.haxx.se/bug/view.cgi?id=3525935

12 years agoNTLM: is supported in GnuTLS builds too
Daniel Stenberg [Sat, 12 May 2012 21:15:51 +0000 (23:15 +0200)]
NTLM: is supported in GnuTLS builds too

... since commit 9a4c887c4a7 introduced in libcurl 7.19.4

12 years agoTODO: happy eyeballs is now RFC6555
Daniel Stenberg [Sat, 12 May 2012 13:08:35 +0000 (15:08 +0200)]
TODO: happy eyeballs is now RFC6555

12 years agomy_useragent: shorten user-agent
Daniel Stenberg [Sat, 12 May 2012 13:07:07 +0000 (15:07 +0200)]
my_useragent: shorten user-agent

The built-in user-agent will now only say curl/[version] and nothing
else in an attempt to decrease overhead in HTTP requests.

12 years agoCURLOPT_HEADERFUNCTION: works for non-HTTP protocols too
Daniel Stenberg [Sun, 6 May 2012 22:13:46 +0000 (00:13 +0200)]
CURLOPT_HEADERFUNCTION: works for non-HTTP protocols too

12 years agoAdd note about default timeout in CURLOPT_TIMEOUT
Claes Jakobsson [Thu, 3 May 2012 11:49:55 +0000 (13:49 +0200)]
Add note about default timeout in CURLOPT_TIMEOUT

12 years agoMD5: OOM fix
Gokhan Sengun [Wed, 2 May 2012 20:34:45 +0000 (23:34 +0300)]
MD5: OOM fix

check whether md5 initialization succeeded before updating digest of
buffers onto it

12 years agoREALEASE-NOTES: synced with 64f48e884e3c1
Daniel Stenberg [Sun, 29 Apr 2012 21:10:37 +0000 (23:10 +0200)]
REALEASE-NOTES: synced with 64f48e884e3c1

12 years agoadd newly created manual page
Jan Schaumann [Fri, 27 Apr 2012 17:53:19 +0000 (13:53 -0400)]
add newly created manual page

12 years agoadd a manual page for mk-ca-bundle
Jan Schaumann [Fri, 27 Apr 2012 17:49:40 +0000 (13:49 -0400)]
add a manual page for mk-ca-bundle

12 years agoUpdated dependency lib versions.
Guenter Knauf [Thu, 26 Apr 2012 12:40:50 +0000 (14:40 +0200)]
Updated dependency lib versions.

12 years agoURL parse: reject numerical IPv6 addresses outside brackets
Daniel Stenberg [Mon, 23 Apr 2012 18:23:53 +0000 (20:23 +0200)]
URL parse: reject numerical IPv6 addresses outside brackets

Roman Mamedov spotted (in
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=670126) that curl would
not complain when given a URL with an IPv6 numerical address without
brackets. It would simply cut off the last ":[hex]" part and thus not
work correctly.

That's a URL using an illegal syntax and now libcurl will instead return
a clear error code and error message detailing the error.

The above mentioned bug report claims this to be a regression but
libcurl does not guarantee functionality when given URLs that aren't
following the URL spec (RFC3986 mostly). I consider the fact that it
used to handle this differently a mere coincidence.

12 years agoCurl_MD5_init: fix OOM memory leak
Daniel Stenberg [Mon, 23 Apr 2012 21:07:40 +0000 (23:07 +0200)]
Curl_MD5_init: fix OOM memory leak

Bug: http://curl.haxx.se/mail/lib-2012-04/0246.html
Reported by: Michael Mueller

12 years agoOpenSSL cert: provide more details when cert check fails
Gokhan Sengun [Tue, 29 Feb 2000 14:49:47 +0000 (16:49 +0200)]
OpenSSL cert: provide more details when cert check fails

curl needs to be more chatty regarding certificate verification failure
during SSL handshake

12 years agoRevert "sspi: Added version information"
Yang Tse [Mon, 23 Apr 2012 14:28:01 +0000 (16:28 +0200)]
Revert "sspi: Added version information"

This reverts commit 2976de480808119dae08fc6f52c8d75ba1aedb1a.

12 years agoRevert "sspi - Small code tidy up"
Yang Tse [Mon, 23 Apr 2012 14:27:47 +0000 (16:27 +0200)]
Revert "sspi - Small code tidy up"

This reverts commit 46cd5f1daddad3b3e542e6d93eee52e8bb9a8687.

12 years agoRevert "Fixed 'extra tokens at end of #endif directive'."
Yang Tse [Mon, 23 Apr 2012 14:27:33 +0000 (16:27 +0200)]
Revert "Fixed 'extra tokens at end of #endif directive'."

This reverts commit 77172a242fc0c820f97eae39d0e3e0f265222fe6.

12 years agoRevert "Fixed 'Trailing whitespace' found by checksrc."
Yang Tse [Mon, 23 Apr 2012 14:27:20 +0000 (16:27 +0200)]
Revert "Fixed 'Trailing whitespace' found by checksrc."

This reverts commit 683bfa60ad0b52505947e59b03515e5f44378523.

12 years agoRevert "sspi: Code tidy up to remove unused variable."
Yang Tse [Mon, 23 Apr 2012 14:27:04 +0000 (16:27 +0200)]
Revert "sspi: Code tidy up to remove unused variable."

This reverts commit 412510f97407d617426d93b80e6b6bf0a8ff11ac.

12 years agoRevert "Add -lversion if build with SSPI."
Yang Tse [Mon, 23 Apr 2012 14:26:21 +0000 (16:26 +0200)]
Revert "Add -lversion if build with SSPI."

This reverts commit 9ec0b7e0c44d29eca6f45916fe5af3501168fe85.

12 years agoAdd -lversion if build with SSPI.
Guenter Knauf [Mon, 23 Apr 2012 00:14:38 +0000 (02:14 +0200)]
Add -lversion if build with SSPI.

12 years agosspi: Code tidy up to remove unused variable.
Steve Holme [Sun, 22 Apr 2012 20:00:32 +0000 (21:00 +0100)]
sspi: Code tidy up to remove unused variable.

12 years agoFixed 'Trailing whitespace' found by checksrc.
Guenter Knauf [Sun, 22 Apr 2012 19:19:36 +0000 (21:19 +0200)]
Fixed 'Trailing whitespace' found by checksrc.

12 years agoFixed 'extra tokens at end of #endif directive'.
Guenter Knauf [Sun, 22 Apr 2012 19:10:17 +0000 (21:10 +0200)]
Fixed 'extra tokens at end of #endif directive'.

12 years agosspi - Small code tidy up
Steve Holme [Sun, 22 Apr 2012 17:59:07 +0000 (18:59 +0100)]
sspi - Small code tidy up

12 years agosspi: Added version information
Steve Holme [Sun, 22 Apr 2012 17:49:27 +0000 (18:49 +0100)]
sspi: Added version information

Added version information for Windows SSPI to curl's main version
string and removed SSPI from the features string.

12 years agoHTTP: empty chunked POST ended up in two zero size chunks
Daniel Stenberg [Fri, 20 Apr 2012 18:40:55 +0000 (20:40 +0200)]
HTTP: empty chunked POST ended up in two zero size chunks

When doing a chunked-encoded POST with -d (CURLOPT_POSTFIELDS) and the
size of the POST was zero length, it made libcurl first send a zero
chunk and then the terminating one. This could confuse a receiver and it
should rather just send the terminating chunk as it does with this fix.

Test case 1333 is added to verify.

Bug: http://curl.haxx.se/mail/archive-2012-04/0060.html
Reported by: Arnaud Compan

12 years agoUpdated dependency lib versions.
Guenter Knauf [Fri, 20 Apr 2012 11:33:54 +0000 (13:33 +0200)]
Updated dependency lib versions.

12 years agosingleipconnect: return OK even when Curl_socket() fails
Daniel Stenberg [Thu, 19 Apr 2012 21:31:50 +0000 (23:31 +0200)]
singleipconnect: return OK even when Curl_socket() fails

Commit 9109cdec11ee5a brought this regression (shipped since 7.24.0).

The singleipconnect() function must not return an error if Curl_socket()
returns an error. It should then simply return OK and pass a SOCKET_BAD
back simply because that is how the user of this function expects it to
work and something else is not fine.

Reported by: Blaise Potard
Bug: http://curl.haxx.se/bug/view.cgi?id=3516508

12 years agoTake in account that CURLAUTH_* bitmasks are now 'unsigned long' - follow-up
Yang Tse [Thu, 19 Apr 2012 14:31:11 +0000 (16:31 +0200)]
Take in account that CURLAUTH_* bitmasks are now 'unsigned long' - follow-up

MIPSPro compiler detected curl_easy_getinfo() related missing adjustments.
SunPro compiler detected curl tool --libcurl option related missing adjustments.

12 years agourl.c: CURLOPT_HTTPAUTH and CURLOPT_PROXYAUTH fixes
Yang Tse [Wed, 18 Apr 2012 22:35:44 +0000 (00:35 +0200)]
url.c: CURLOPT_HTTPAUTH and CURLOPT_PROXYAUTH fixes

Fail with CURLE_NOT_BUILT_IN when none of requested auth methods is supported.

Reject CURLAUTH_ONLY bit when given alone or with CURLAUTH_NONE.

12 years agoTake in account that CURLAUTH_* bitmasks are now 'unsigned long'
Yang Tse [Wed, 18 Apr 2012 21:04:35 +0000 (23:04 +0200)]
Take in account that CURLAUTH_* bitmasks are now 'unsigned long'

Data type of internal vars holding CURLAUTH_* bitmasks changed from 'long' to
'unsigned long' for proper handling and operating.

12 years agocurl.h: CURLAUTH_* bitmasks adjusted to become 'unsigned long' typed
Yang Tse [Wed, 18 Apr 2012 21:04:07 +0000 (23:04 +0200)]
curl.h: CURLAUTH_* bitmasks adjusted to become 'unsigned long' typed

Info: http://curl.haxx.se/mail/lib-2012-04/0170.html