platform/upstream/curl.git
12 years agotests 1356 to 1363: several -O -J -i -D combinations with FTP protocol
Yang Tse [Mon, 4 Jun 2012 18:58:46 +0000 (20:58 +0200)]
tests 1356 to 1363: several -O -J -i -D combinations with FTP protocol

Currently 1356 to 1362 succeed but a write failure is logged in traceNNNN.

Currently 1363 fails, so disabled for now.

12 years agotests: Updated pop3 tests for change in auth mechanism detection
Steve Holme [Mon, 4 Jun 2012 18:41:56 +0000 (19:41 +0100)]
tests: Updated pop3 tests for change in auth mechanism detection

12 years agopop3: Changed the sasl mechanism detection from auth to capa
Steve Holme [Mon, 4 Jun 2012 18:09:45 +0000 (19:09 +0100)]
pop3: Changed the sasl mechanism detection from auth to capa

Not all SASL enabled POP3 servers support the AUTH command on its own
when trying to detect the supported mechanisms. As such changed the
mechanism detection to use the CAPA command instead.

12 years agocurl_easy_setopt.3: proto updates + cleanups
Daniel Stenberg [Mon, 4 Jun 2012 17:59:48 +0000 (19:59 +0200)]
curl_easy_setopt.3: proto updates + cleanups

- For all *FUNCTION options, they now all show the complete prototype in
  the description. Previously some of them would just refer to a
  typedef'ed function pointer in the curl.h header.

- I made the phrasing of that "Pass a pointer to a function that matches
  the following prototype" the same for all *FUNCTION option descriptions.

- I removed some uses of 'should'. I think I sometimes over-use this
  word as in many places I actually mean MUST or otherwise more specific
  and not-so-optional synonyms.

12 years agotests 1348 to 1355: several -O -J -i -D combinations with FTP protocol
Yang Tse [Mon, 4 Jun 2012 17:40:04 +0000 (19:40 +0200)]
tests 1348 to 1355: several -O -J -i -D combinations with FTP protocol

Currently 1348 to 1354 succeed but a write failure is logged in traceNNNN.

Currently 1355 fails, so disabled for now.

12 years agotests 1346 to 1347: several -O -J -i -D combinations with HTTP protocol
Yang Tse [Mon, 4 Jun 2012 16:54:24 +0000 (18:54 +0200)]
tests 1346 to 1347: several -O -J -i -D combinations with HTTP protocol

12 years agosasl: Small code tidy up
Steve Holme [Mon, 4 Jun 2012 10:02:03 +0000 (11:02 +0100)]
sasl: Small code tidy up

Reworked variable names in Curl_sasl_create_cram_md5_message() to match
those in Curl_sasl_create_digest_md5_message() as they are more
appropriate.

12 years agosasl: Moved digest-md5 authentication message creation from smtp.c
Steve Holme [Mon, 4 Jun 2012 09:53:18 +0000 (10:53 +0100)]
sasl: Moved digest-md5 authentication message creation from smtp.c

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

12 years agosasl: Small code tidy up before moving digest-md5 over
Steve Holme [Mon, 4 Jun 2012 09:49:55 +0000 (10:49 +0100)]
sasl: Small code tidy up before moving digest-md5 over

Correction of comments and variable names.

12 years agoRELEASE-NOTES: Added missing addition of sasl login support
Steve Holme [Sun, 3 Jun 2012 18:28:08 +0000 (19:28 +0100)]
RELEASE-NOTES: Added missing addition of sasl login support

12 years agopop3: Added support for sasl cram-md5 authentication
Steve Holme [Sun, 3 Jun 2012 18:13:16 +0000 (19:13 +0100)]
pop3: Added support for sasl cram-md5 authentication

12 years agoCurl_sasl_create_plain_message: remove TAB
Daniel Stenberg [Sun, 3 Jun 2012 17:42:47 +0000 (19:42 +0200)]
Curl_sasl_create_plain_message: remove TAB

12 years agosasl: Small code tidy up
Steve Holme [Sun, 3 Jun 2012 17:24:35 +0000 (18:24 +0100)]
sasl: Small code tidy up

Added some comments and removed an unreferenced variable.

12 years agopop3.c: Added conditional compilation for NTLM function calls
Steve Holme [Sun, 3 Jun 2012 16:40:05 +0000 (17:40 +0100)]
pop3.c: Added conditional compilation for NTLM function calls

Added USE_NTLM condition compilation around the NTLM functions called
from pop3_statemach_act() introduced in commit 69f7156ad96877.

12 years agosasl: Moved cram-md5 authentication message creation from smtp.c
Steve Holme [Sun, 3 Jun 2012 16:21:49 +0000 (17:21 +0100)]
sasl: Moved cram-md5 authentication message creation from smtp.c

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

12 years agopop3: Fixed an issue with changes introduced in commit c267c53017bc
Steve Holme [Sun, 3 Jun 2012 16:06:48 +0000 (17:06 +0100)]
pop3: Fixed an issue with changes introduced in commit c267c53017bc

Because pop3_endofresp() is called for each line of data yet is not
passed the line and line length, so we have to use the data pointed to
by pp->linestart_resp which contains the whole packet, the mechanisms
were being detected in one call yet the function would be called for
each line of data.

Using curl with verbose mode enabled would show that one line of data
would be received in response to the AUTH command, before the AUTH
<mechanism> command was sent to the server and then the next few lines
of the original AUTH command would be displayed before the response from
the AUTH <mechanism> command. This would then cause problems when
parsing the CRAM-MD5 challenge data as extra data was contained in the
buffer.

Changed the parsing so that each line is checked for the mechanisms
and the function returns FALSE until the whole of the AUTH response has
been processed.

12 years agoversion: bump to 7.27.0 for next release
Daniel Stenberg [Sun, 3 Jun 2012 11:52:25 +0000 (13:52 +0200)]
version: bump to 7.27.0 for next release

Due to new features

12 years agoRELEASE-NOTES: synced with c4e3578e4bf
Daniel Stenberg [Sun, 3 Jun 2012 11:51:54 +0000 (13:51 +0200)]
RELEASE-NOTES: synced with c4e3578e4bf

Also bumped the contributor number and next release is to become 7.27.0

12 years agoTHANKS: 16 new contributors from the 7.26.0 release
Daniel Stenberg [Sun, 3 Jun 2012 11:43:12 +0000 (13:43 +0200)]
THANKS: 16 new contributors from the 7.26.0 release

12 years agoDOCS: Fixed list in Section 18.2 not displaying correctly on web site
Steve Holme [Sun, 3 Jun 2012 00:17:21 +0000 (01:17 +0100)]
DOCS: Fixed list in Section 18.2 not displaying correctly on web site

12 years agoDOCS: Corrected missed heading renumbering from commit 530675a1ad7
Steve Holme [Sun, 3 Jun 2012 00:13:36 +0000 (01:13 +0100)]
DOCS: Corrected missed heading renumbering from commit 530675a1ad7

12 years agoDOCS: Added IMAP and LDAP sections
Steve Holme [Sun, 3 Jun 2012 00:00:45 +0000 (01:00 +0100)]
DOCS: Added IMAP and LDAP sections

Added new sections 11. IMAP and 12. LDAP to document adding SASL based
authentication.

Renumbered current sections 11 to 17 as 13 to 19.

Additionally added 19.10 Add CURLOPT_MAIL_CLIENT option.

12 years agosasl.c: Fix to avoid warnings introduced in commit d9ca9e9869e8
Steve Holme [Sat, 2 Jun 2012 23:00:34 +0000 (00:00 +0100)]
sasl.c: Fix to avoid warnings introduced in commit d9ca9e9869e8

Applied a fix to avoid warnings on systems where Curl_ntlm_sspi_cleanup()
is just a nop.

12 years agopop3.c:Corrected typo in commit 69ba0da8272d
Steve Holme [Sat, 2 Jun 2012 22:12:07 +0000 (23:12 +0100)]
pop3.c:Corrected typo in commit 69ba0da8272d

12 years agopop3: Fixed the issue of having to supply the user name for all requests
Steve Holme [Sat, 2 Jun 2012 21:11:37 +0000 (22:11 +0100)]
pop3: Fixed the issue of having to supply the user name for all requests

Previously it wasn't possible to connect to POP3 and not specify the
user name as a CURLE_ACCESS_DENIED error would be returned. This error
occurred because USER would be sent to the server with a blank user name
if no mailbox user was specified as the server would reply with -ERR.

This wasn't a problem prior to the 7.26.0 release but with the
introduction of custom commands the user and/or application developer
might want to issue a CAPA command without having to log in as a
specific mailbox user.

Additionally this fix won't send the newly introduced AUTH command if no
user name is specified.

12 years agopop3.c: Small code tidy up
Steve Holme [Sat, 2 Jun 2012 20:38:55 +0000 (21:38 +0100)]
pop3.c: Small code tidy up

Corrected lines exceeding 78 characters.

Repositioned some comments and added extra clarity.

12 years agosasl: Corrected variable names in comments and parameters
Steve Holme [Sat, 2 Jun 2012 13:03:55 +0000 (14:03 +0100)]
sasl: Corrected variable names in comments and parameters

12 years agopop3: Added support for sasl ntlm authentication
Steve Holme [Sat, 2 Jun 2012 10:55:58 +0000 (11:55 +0100)]
pop3: Added support for sasl ntlm authentication

12 years agosasl: Small comment style tidy up following ntlm commit
Steve Holme [Sat, 2 Jun 2012 10:09:59 +0000 (11:09 +0100)]
sasl: Small comment style tidy up following ntlm commit

12 years agosasl: Moved ntlm authentication message handling from smtp.c
Steve Holme [Sat, 2 Jun 2012 10:07:58 +0000 (11:07 +0100)]
sasl: Moved ntlm authentication message handling from smtp.c

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

12 years agopop3: Added support for sasl login authentication
Steve Holme [Fri, 1 Jun 2012 14:59:29 +0000 (15:59 +0100)]
pop3: Added support for sasl login authentication

12 years agotests 1334 to 1345: several -O -J -i -D combinations with HTTP protocol
Yang Tse [Fri, 1 Jun 2012 03:48:26 +0000 (05:48 +0200)]
tests 1334 to 1345: several -O -J -i -D combinations with HTTP protocol

12 years agotests: support test definitions with up to 5 file checks in <verify> section
Yang Tse [Fri, 1 Jun 2012 03:37:00 +0000 (05:37 +0200)]
tests: support test definitions with up to 5 file checks in <verify> section

This is done introducing tags <file1> to <file4> besides existing <file> one,
as well as corresponding <stripfile1> to <stripfile4> ones, that can be used
in the <verify> section in the same way as the non-numbered ones.

12 years agosasl: Moved login authentication message creation from smtp.c
Steve Holme [Thu, 31 May 2012 22:11:54 +0000 (23:11 +0100)]
sasl: Moved login authentication message creation from smtp.c

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

12 years agosmtp.c: Reworked message encoding in smtp_state_authpasswd_resp()
Steve Holme [Thu, 31 May 2012 21:58:07 +0000 (22:58 +0100)]
smtp.c: Reworked message encoding in smtp_state_authpasswd_resp()

Rather than encoding the password message itself the
smtp_state_authpasswd_resp() function now delegates the work to the same
function that smtp_state_authlogin_resp() and smtp_authenticate() use
when constructing the encoded user name.

12 years agosmtp.c: Re-factored smtp_auth_login_user() for use with passwords
Steve Holme [Thu, 31 May 2012 21:49:14 +0000 (22:49 +0100)]
smtp.c: Re-factored smtp_auth_login_user() for use with passwords

In preparation for moving to the SASL module re-factored the
smtp_auth_login_user() function to smtp_auth_login() so that it can be
used for both user names and passwords as sending both of these under
the login authentication mechanism is the same.

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/