platform/upstream/curl.git
11 years agovms: config-vms.h is removed, no use trying to distribute it
Daniel Stenberg [Wed, 6 Feb 2013 10:11:55 +0000 (11:11 +0100)]
vms: config-vms.h is removed, no use trying to distribute it

11 years agoRELEASE-NOTES: mention the SASL buffer overflow
Daniel Stenberg [Wed, 6 Feb 2013 10:02:18 +0000 (11:02 +0100)]
RELEASE-NOTES: mention the SASL buffer overflow

11 years agoCurl_sasl_create_digest_md5_message: fix buffer overflow
Eldar Zaitov [Wed, 30 Jan 2013 22:22:27 +0000 (23:22 +0100)]
Curl_sasl_create_digest_md5_message: fix buffer overflow

When negotiating SASL DIGEST-MD5 authentication, the function
Curl_sasl_create_digest_md5_message() uses the data provided from the
server without doing the proper length checks and that data is then
appended to a local fixed-size buffer on the stack.

This vulnerability can be exploited by someone who is in control of a
server that a libcurl based program is accessing with POP3, SMTP or
IMAP. For applications that accept user provided URLs, it is also
thinkable that a malicious user would feed an application with a URL to
a server hosting code targetting this flaw.

Bug: http://curl.haxx.se/docs/adv_20130206.html

11 years agoFEATURES: Removed erroneous whitespace
Steve Holme [Wed, 6 Feb 2013 09:29:50 +0000 (09:29 +0000)]
FEATURES: Removed erroneous whitespace

Removed whitespace introduced in commit 5f8f20f5e65b that caused
formatting issues when generating the website docs.

11 years agosetup-vms.h: post VMS patch cleanup - III
Yang Tse [Wed, 6 Feb 2013 03:53:34 +0000 (04:53 +0100)]
setup-vms.h: post VMS patch cleanup - III

- rename post-config-vms.h to setup-vms.h
- move its inclusion into proper location in curl_setup.h

11 years agovms_show: post VMS patch cleanup - II
Yang Tse [Wed, 6 Feb 2013 03:51:55 +0000 (04:51 +0100)]
vms_show: post VMS patch cleanup - II

- remove multiple declarations of vms_show and add comments

11 years agotool_main.c: post VMS patch cleanup - I
Yang Tse [Wed, 6 Feb 2013 03:51:00 +0000 (04:51 +0100)]
tool_main.c: post VMS patch cleanup - I

- remove header inclusion already done in curl_setup_once.h

11 years agoFEATURES: Added SSPI to list of NTLM libraries
Steve Holme [Wed, 6 Feb 2013 00:36:54 +0000 (00:36 +0000)]
FEATURES: Added SSPI to list of NTLM libraries

11 years agoFEATURES: Added Secure Transport and qssl to list of SSL libraries
Steve Holme [Wed, 6 Feb 2013 00:30:08 +0000 (00:30 +0000)]
FEATURES: Added Secure Transport and qssl to list of SSL libraries

11 years agoFEATURES: Added email feature set
Steve Holme [Wed, 6 Feb 2013 00:28:50 +0000 (00:28 +0000)]
FEATURES: Added email feature set

Added SMTP, SMTPS, POP3, POP3S, IMAP and IMAPS features.

11 years agoimap.h: Corrected incorrect comment clarification
Steve Holme [Tue, 5 Feb 2013 23:59:47 +0000 (23:59 +0000)]
imap.h: Corrected incorrect comment clarification

Corrected comment clarification made in commit 167717b8069a.

11 years agoCOPYING: Updated copyright year to include 2013
Steve Holme [Tue, 5 Feb 2013 23:05:50 +0000 (23:05 +0000)]
COPYING: Updated copyright year to include 2013

11 years agoRELEASE-NOTES: synced with 25f351424b3538
Daniel Stenberg [Tue, 5 Feb 2013 22:19:19 +0000 (23:19 +0100)]
RELEASE-NOTES: synced with 25f351424b3538

8 more bug fixes mentioned

11 years agoVMS: fix and generate the VMS build config
John E. Malmberg [Mon, 4 Feb 2013 21:56:44 +0000 (22:56 +0100)]
VMS: fix and generate the VMS build config

config_h.com is a new file that generates a config.h file based on the
curl_config.h.in file and a quick scan of the configure script.  This is
actually a generic procedure that is shared with other VMS packages.

The existing pre-built config-vms.h had over 100 entries that were not
correct and in some cases conflicted with the build options available in
the build_vms.com.

generate_config_vms_h_curl.com is a helper procedure to the
config_h.com.  It covers the cases that the generic config_h.com is not
able to figure out, and accepts input from the build_vms.com procedure.

build_curlbuild_h.com is a new file to generate the curlbuild.h file
that Curl is now using when it is using a curl_config.h file.

post-config-vms.h is a new file that is needed to provide VMS specific
definitions, and most of them need to be set before the system header
files are included.

The VMS build procedure is fixed:

   1. Fixed to link in the correct HP ssl library.
   2. Fixed to detect if HP Kerberos is installed.
   3. Fixed to detect if HP LDAP is installed.
   4. Fixed to detect if gnv$libzshr is installed.
   5. Simplified the input parameter parsing to not use a loop.
   6. Warn that 64 bit pointer option support is not complete
      in comments.
   7. Default to IEEE floating if platform supports it so
      resulting libcurl will be compatible with other
      open source projects on VMS.
   8. Default to LARGEFILE if platform supports it.
   9. Default to enable SSL, LDAP, Kerberos, libz
      if the libraries are present.
   10. Build with exact case global symbols for libcurl.
   11. Generate linker option file needed.
   12. Compiler list option only commonly needed items.
   13. fulllist option for those who really want it.
   14. Create debug symbol file on Alpha, IA64.

11 years agoCurl_proxyCONNECT: return once CONNECT is sent
Daniel Stenberg [Tue, 5 Feb 2013 22:01:50 +0000 (23:01 +0100)]
Curl_proxyCONNECT: return once CONNECT is sent

By doing this unconditionally, we infer a simpler and more defined
behavior. This also has the upside that test 1021 no longer fails for me
even if I run with valgrind.

Also fixed some wrong comments.

11 years agoemail: Reworked comments in the endofresp() functions
Steve Holme [Tue, 5 Feb 2013 21:09:34 +0000 (21:09 +0000)]
email: Reworked comments in the endofresp() functions

Tidied up the comments in the endofresp() functions to be more
meaningful prior to release.

11 years agoschannel: Removed extended error connection setup flag
Marc Hoersken [Tue, 5 Feb 2013 21:02:45 +0000 (22:02 +0100)]
schannel: Removed extended error connection setup flag

According KB975858 this flag may cause problems on Windows 7 and
Windows Server 2008 R2 systems. Extended error information is not
currently used by libcurl and therefore not a requirement.

The flag may improve the SSL-connection shutdown in case of an
error. This means it might be a good improvement in the future.

Fixes bug/issue #1187 - thanks for the report

11 years agosingleipconnect: Update *sockp for all CURLE_OK
Tor Arntsen [Tue, 5 Feb 2013 16:26:07 +0000 (17:26 +0100)]
singleipconnect: Update *sockp for all CURLE_OK

The 56b7c87c7 change left a case where a good sockfd was not copied to
*sockp before returning with CURLE_OK

11 years agocurl_easy_perform: Value stored to 'mcode' is never read
Daniel Stenberg [Tue, 5 Feb 2013 13:09:18 +0000 (14:09 +0100)]
curl_easy_perform: Value stored to 'mcode' is never read

pointed out by clang-analyzer

11 years agosingleipconnect: remove dead assignment
Daniel Stenberg [Tue, 5 Feb 2013 13:07:39 +0000 (14:07 +0100)]
singleipconnect: remove dead assignment

pointed out by clang-analyzer

11 years agoCURLMOPT_MAXCONNECTS: restore functionality
Linus Nielsen Feltzing [Tue, 5 Feb 2013 08:07:27 +0000 (09:07 +0100)]
CURLMOPT_MAXCONNECTS: restore functionality

When a connection is no longer used, it is kept in the cache. If the
cache is full, the oldest idle connection is closed. If no connection is
idle, the current one is closed instead.

11 years agoRELEASE-NOTES: Updated following recent changes to the email protocols
Steve Holme [Tue, 5 Feb 2013 00:11:24 +0000 (00:11 +0000)]
RELEASE-NOTES: Updated following recent changes to the email protocols

Added recent additions and fixes following the changes to imap, pop3
and smtp. Additionally added another contributor that helped to test
the imap sasl changes.

11 years agoemail: Provided extra comments following recent pop3/imap fixes
Steve Holme [Mon, 4 Feb 2013 23:51:36 +0000 (23:51 +0000)]
email: Provided extra comments following recent pop3/imap fixes

Provided additional clarification about the logic of the authenticate()
functions following commit 6b6bdc83bd36 and b4270a9af1d0.

11 years agowinbuild: include version info for .dll .exe
Andrei Kurushin [Mon, 4 Feb 2013 23:08:01 +0000 (00:08 +0100)]
winbuild: include version info for .dll .exe

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

11 years agoFAQ: clarify 5.13 How do I stop an ongoing transfer
Daniel Stenberg [Mon, 4 Feb 2013 21:46:51 +0000 (22:46 +0100)]
FAQ: clarify 5.13 How do I stop an ongoing transfer

Rich Gray provided good feedback and we now clarify that you can in fact
stop a multi transfer at any point you like by removing the easy handle.

11 years agocmake: Fix mingw build
Matt Arsenault [Mon, 4 Feb 2013 21:35:09 +0000 (22:35 +0100)]
cmake: Fix mingw build

11 years agocmake: updated OpenSSL build
Sergei Nikulov [Thu, 17 Jan 2013 09:44:05 +0000 (13:44 +0400)]
cmake: updated OpenSSL build

11 years agopop3.c: Updated variable names to use shorter / more readable variant
Steve Holme [Mon, 4 Feb 2013 20:33:30 +0000 (20:33 +0000)]
pop3.c: Updated variable names to use shorter / more readable variant

Tidied up code from commit 6b6bdc83bdUpdated where a few instances of
the pop3c struct variable used the longer conndata struct rather than
matching what other code in pop3_authenticate() used.

11 years agoupdated copyright years.
Guenter Knauf [Mon, 4 Feb 2013 03:50:31 +0000 (04:50 +0100)]
updated copyright years.

11 years agoconfigure: update the copyright years for the output.
Guenter Knauf [Mon, 4 Feb 2013 03:47:26 +0000 (04:47 +0100)]
configure: update the copyright years for the output.

11 years agoimap: Fixed no known authentication mechanism when fallback is required
Steve Holme [Sun, 3 Feb 2013 23:58:03 +0000 (23:58 +0000)]
imap: Fixed no known authentication mechanism when fallback is required

Fixed an issue where (lib)curl is compiled without support for a
supported challenge-response based SASL authentication mechanism, such
as CRAM-MD5 or NTLM, the server doesn't support the LOGIN or PLAIN
mechanisms and (lib)curl doesn't fallback to Clear Text authentication.

Note: In order to fallback to Clear Text authentication properly this
fix adds support for the LOGINDISABLED server capability.
imap: Fixed no known authentication mechanism when fallback is required

Fixed an issue where (lib)curl is compiled without support for a
supported challenge-response based SASL authentication mechanism, such
as CRAM-MD5 or NTLM, the server doesn't support the LOGIN or PLAIN
mechanisms and (lib)curl doesn't fallback to Clear Text authentication.

Note: In order to fallback to Clear Text authentication properly this
fix adds support for the LOGINDISABLED server capability.

Related bug: http://curl.haxx.se/mail/lib-2013-02/0004.html
Reported by: Stanislav Ivochkin

11 years agopop3: Fixed no known authentication mechanism when fallback is required
Steve Holme [Sun, 3 Feb 2013 21:43:08 +0000 (21:43 +0000)]
pop3: Fixed no known authentication mechanism when fallback is required

Fixed an issue where (lib)curl is compiled without support for a
supported challenge-response based SASL authentication mechanism, such
as CRAM-MD5 or NTLM, the server doesn't support the LOGIN or PLAIN
mechanisms and (lib)curl doesn't fallback to APOP or Clear Text
authentication.

Bug: http://curl.haxx.se/mail/lib-2013-02/0004.html
Reported by: Stanislav Ivochkin

11 years agosingleipconnect: simplify and clean up
Daniel Stenberg [Thu, 31 Jan 2013 23:17:07 +0000 (00:17 +0100)]
singleipconnect: simplify and clean up

Remove timeout argument that's never used.

Make the actual connection get detected on a single spot to reduce code
duplication.

Store the IPv6 state already when the connection is attempted.

11 years agoCurl_perfom: removed
Daniel Stenberg [Thu, 31 Jan 2013 23:43:20 +0000 (00:43 +0100)]
Curl_perfom: removed

Curl_perfom is no longer used anywhere since the always-multi commit
c43127414d89ccb9, and some related functions were used only from within
Curl_perfom.

11 years agoUpdated date.
Guenter Knauf [Wed, 30 Jan 2013 17:14:00 +0000 (18:14 +0100)]
Updated date.

11 years agozz40-xc-ovr.m4: fix 'wc' detection - follow-up 2
Yang Tse [Wed, 30 Jan 2013 15:57:43 +0000 (16:57 +0100)]
zz40-xc-ovr.m4: fix 'wc' detection - follow-up 2

- Fix a pair of single quotes to double quotes.

URL: http://curl.haxx.se/mail/lib-2013-01/0355.html
Reported by: Tor Arntsen

11 years agozz40-xc-ovr.m4: fix 'wc' detection - follow-up
Yang Tse [Wed, 30 Jan 2013 14:46:46 +0000 (15:46 +0100)]
zz40-xc-ovr.m4: fix 'wc' detection - follow-up

- Take into account that 'wc' may return leading spaces and/or tabs.

- Set initial IFS to space, tab and newline.

11 years agozz40-xc-ovr.m4: fix 'wc' detection
Yang Tse [Wed, 30 Jan 2013 11:19:23 +0000 (12:19 +0100)]
zz40-xc-ovr.m4: fix 'wc' detection

- Take into account that 'wc' may return leading spaces.

- Set internationalization behavior variables.

Tor Arntsen analyzed and reported the issue.

URL: http://curl.haxx.se/mail/lib-2013-01/0351.html

11 years agozz40-xc-ovr.m4: check another three basic utilities
Yang Tse [Tue, 29 Jan 2013 14:55:41 +0000 (15:55 +0100)]
zz40-xc-ovr.m4: check another three basic utilities

11 years agoFixed debug.c to work again unchanged.
Guenter Knauf [Tue, 29 Jan 2013 12:04:41 +0000 (13:04 +0100)]
Fixed debug.c to work again unchanged.

Added CURLOPT_FOLLOWLOCATION since example.com is now redirected.

11 years agodarwinssl: Fix bug where packets were sometimes transmitted twice
Nick Zitzmann [Tue, 29 Jan 2013 02:34:35 +0000 (19:34 -0700)]
darwinssl: Fix bug where packets were sometimes transmitted twice

There was a bug where, if SSLWrite() returned errSSLWouldBlock but did
succeed in transmitting at least something, then we'd incorrectly
resend the packet. Now we never take errSSLWouldBlock as a sign that
nothing was transferred to/from the server.

Bug: http://curl.haxx.se/mail/lib-2013-01/0295.html
Reported by: Bruno de Carvalho

11 years agoFAQ: "Darwinssl" is AKA "Secure Transport" and supports NTLM
Nick Zitzmann [Thu, 24 Jan 2013 00:41:23 +0000 (17:41 -0700)]
FAQ: "Darwinssl" is AKA "Secure Transport" and supports NTLM

11 years agoRELEASE-NOTES: only list Nick once
Daniel Stenberg [Mon, 28 Jan 2013 21:32:11 +0000 (22:32 +0100)]
RELEASE-NOTES: only list Nick once

Even though he's a fine dude, once is enough for this time!

11 years agozz40-xc-ovr.m4: 1.0 interface stabilization
Yang Tse [Mon, 28 Jan 2013 00:08:15 +0000 (01:08 +0100)]
zz40-xc-ovr.m4: 1.0 interface stabilization

- Stabilization results in 4 public interface m4 macros:
  XC_CONFIGURE_PREAMBLE
  XC_CONFIGURE_PREAMBLE_VER_MAJOR
  XC_CONFIGURE_PREAMBLE_VER_MINOR
  XC_CHECK_PATH_SEPARATOR
- Avoid one level of internal indirection
- Update comments
- Drop XC_OVR_ZZ40 macro

11 years agodocs: fix typos in man pages
Kamil Dudka [Mon, 28 Jan 2013 13:22:48 +0000 (14:22 +0100)]
docs: fix typos in man pages

Reported by: Jiri Jaburek
Bug: https://bugzilla.redhat.com/896544

11 years agodocs: update the comments about loading CA certs with NSS
Kamil Dudka [Mon, 28 Jan 2013 13:07:32 +0000 (14:07 +0100)]
docs: update the comments about loading CA certs with NSS

Bug: https://bugzilla.redhat.com/696783

11 years agoUpdated dependency libs.
Guenter Knauf [Mon, 28 Jan 2013 00:25:39 +0000 (01:25 +0100)]
Updated dependency libs.

11 years agoFixed simple.c to work again unchanged.
Guenter Knauf [Sun, 27 Jan 2013 23:42:16 +0000 (00:42 +0100)]
Fixed simple.c to work again unchanged.

Added CURLOPT_FOLLOWLOCATION since example.com is now redirected.

11 years agosmtp.c: Fixed unnecessary state change if starttls fails
Steve Holme [Sun, 27 Jan 2013 10:44:21 +0000 (10:44 +0000)]
smtp.c: Fixed unnecessary state change if starttls fails

The state machine should only be changed to SMTP_STARTTLS when the
STARTTLS command has been successfully sent to the server.

11 years agopop3.c: Fixed unnecessary state change if starttls fails
Steve Holme [Sun, 27 Jan 2013 10:42:32 +0000 (10:42 +0000)]
pop3.c: Fixed unnecessary state change if starttls fails

The state machine should only be changed to POP3_STARTTLS when the
STLS command has been successfully sent to the server.

11 years agoimap.c: Fixed unnecessary state change if starttls fails
Steve Holme [Sun, 27 Jan 2013 10:41:10 +0000 (10:41 +0000)]
imap.c: Fixed unnecessary state change if starttls fails

The state machine should only be changed to IMAP_STARTTLS when the
STARTTLS command has been successfully sent to the server.

11 years agoemail: Updated comment regarding ssldone usage
Steve Holme [Sat, 26 Jan 2013 15:06:44 +0000 (15:06 +0000)]
email: Updated comment regarding ssldone usage

Updated the ssldone comment as multi mode is always used internally now.

11 years agozz40-xc-ovr.m4: emit witness message in configure BODY
Yang Tse [Sat, 26 Jan 2013 02:49:32 +0000 (03:49 +0100)]
zz40-xc-ovr.m4: emit witness message in configure BODY

This avoids witness message in output when running configure --help,
while sending the message to config.log for other configure runs.

11 years agosmtp.c: Added comments to smtp_endofresp()
Steve Holme [Fri, 25 Jan 2013 22:14:21 +0000 (22:14 +0000)]
smtp.c: Added comments to smtp_endofresp()

Minor code tidy up to add comments similar to those used in the pop3
and imap end of resp functions, in order to assist anyone reading the
code and highlight the similarities between each of these protocols.

11 years agozz40-xc-ovr.m4: truly do version conditional overriding
Yang Tse [Fri, 25 Jan 2013 15:34:13 +0000 (16:34 +0100)]
zz40-xc-ovr.m4: truly do version conditional overriding

- version conditional overriding
- catch unexpanded XC macros
- fix double words in comments

11 years agozz40-xc-ovr.m4: fix variable assignment of subshell output bashism
Yang Tse [Fri, 25 Jan 2013 13:15:08 +0000 (14:15 +0100)]
zz40-xc-ovr.m4: fix variable assignment of subshell output bashism

Tor Arntsen analyzed and reported the issue.

URL: http://curl.haxx.se/mail/lib-2013-01/0306.html

11 years agozz40-xc-ovr.m4: reinstate strict AC_REQUIRE macro dependencies
Yang Tse [Fri, 25 Jan 2013 11:19:45 +0000 (12:19 +0100)]
zz40-xc-ovr.m4: reinstate strict AC_REQUIRE macro dependencies

11 years agozz40-xc-ovr.m4: avoid double single-quote usage
Yang Tse [Fri, 25 Jan 2013 00:47:29 +0000 (01:47 +0100)]
zz40-xc-ovr.m4: avoid double single-quote usage

11 years agozz40-xc-ovr.m4: parentheses balancing of 'case' statements
Yang Tse [Thu, 24 Jan 2013 23:44:11 +0000 (00:44 +0100)]
zz40-xc-ovr.m4: parentheses balancing of 'case' statements

m4 quadrigraph shell comment technique allows proper autoconf
parentheses balancing in shell 'case' statements. The presence
of unbalanced parentheses may otherwise trigger expansion bugs.

11 years agosmtp.c: Corrected RFC references
Steve Holme [Thu, 24 Jan 2013 23:41:57 +0000 (23:41 +0000)]
smtp.c: Corrected RFC references

The most recent version of the SMTP RFC is RFC5321 and not RFC2821 as
previously documented.

Added RFC1870 and re-ordered list numerically.

11 years agosmtp.c: Fixed failure detection during TLS upgrade
Steve Holme [Thu, 24 Jan 2013 20:27:43 +0000 (20:27 +0000)]
smtp.c: Fixed failure detection during TLS upgrade

smtp_state_upgrade_tls() would attempt to incorrectly complete the
upgrade to smtps and start the EHLO command if
Curl_ssl_connect_nonblocking() returned a failure code and if ssldone
was set to TRUE. This would only happen when a non-blocking API hadn't
been provided by the SSL implementation and curlssl_connect() was
called underneath.

11 years agopop3.c: Fixed failure detection during TLS upgrade
Steve Holme [Thu, 24 Jan 2013 20:24:39 +0000 (20:24 +0000)]
pop3.c: Fixed failure detection during TLS upgrade

pop3_state_upgrade_tls() would attempt to incorrectly complete the
upgrade to pop3s and start the CAPA command if
Curl_ssl_connect_nonblocking() returned a failure code and if ssldone
was set to TRUE. This would only happen when a non-blocking API hadn't
been provided by the SSL implementation and curlssl_connect() was
called underneath.

11 years agoimap.c: Fixed failure detection during TLS upgrade
Steve Holme [Thu, 24 Jan 2013 20:22:20 +0000 (20:22 +0000)]
imap.c: Fixed failure detection during TLS upgrade

imap_state_upgrade_tls() would attempt to incorrectly complete the
upgrade to imaps and start the CAPABILITY command if
Curl_ssl_connect_nonblocking() returned a failure code and if ssldone
was set to TRUE. This would only happen when a non-blocking API hadn't
been provided by the SSL implementation and curlssl_connect() was
called underneath.

11 years agozz40-xc-ovr.m4: internals overhauling
Yang Tse [Thu, 24 Jan 2013 17:39:56 +0000 (18:39 +0100)]
zz40-xc-ovr.m4: internals overhauling

- Update comments
- Execute commands in subshells
- Faster path separator check
- Fix missing 'test' command
- Rename private macros
- Minimize AC_REQUIRE usage

11 years agoemail: Removed unnecessary return statements
Steve Holme [Wed, 23 Jan 2013 21:59:56 +0000 (21:59 +0000)]
email: Removed unnecessary return statements

Small tidy up to remove unnecessary return statements prior to the next
fix.

11 years agozz40-xc-ovr.m4: redirect errors and warnings to stderr
Yang Tse [Wed, 23 Jan 2013 20:52:36 +0000 (21:52 +0100)]
zz40-xc-ovr.m4: redirect errors and warnings to stderr

11 years agozz40-xc-ovr.m4: AC_REQUIRE also XC_CONFIGURE_PREAMBLE success message
Yang Tse [Wed, 23 Jan 2013 17:16:52 +0000 (18:16 +0100)]
zz40-xc-ovr.m4: AC_REQUIRE also XC_CONFIGURE_PREAMBLE success message

11 years agozz60-xc-ovr.m4: tighten XC_OVR_ZZ60 macro placement requirements
Yang Tse [Wed, 23 Jan 2013 15:06:35 +0000 (16:06 +0100)]
zz60-xc-ovr.m4: tighten XC_OVR_ZZ60 macro placement requirements

11 years agoconfigure: use XC_CONFIGURE_PREAMBLE early checks
Yang Tse [Wed, 23 Jan 2013 12:54:08 +0000 (13:54 +0100)]
configure: use XC_CONFIGURE_PREAMBLE early checks

Some basic checks we make were placed early enough in generated
configure script when using autoconf 2.5X versions. Newer autoconf
versions expand these checks much further into the configure script,
rendering them useless. Using XC_CONFIGURE_PREAMBLE fixes placement
of early intended checks across all our autoconf supported versions.

11 years agozz40-xc-ovr.m4: provide XC_CONFIGURE_PREAMBLE macro
Yang Tse [Wed, 23 Jan 2013 12:51:03 +0000 (13:51 +0100)]
zz40-xc-ovr.m4: provide XC_CONFIGURE_PREAMBLE macro

11 years agoFAQ: update the SSL lib list and wording in question 2.2
Daniel Stenberg [Wed, 23 Jan 2013 12:17:36 +0000 (13:17 +0100)]
FAQ: update the SSL lib list and wording in question 2.2

11 years agocurl_sasl.c: Corrected references to RFC
Steve Holme [Tue, 22 Jan 2013 22:02:30 +0000 (22:02 +0000)]
curl_sasl.c: Corrected references to RFC

The most recent version of the RFC is RFC4422 and not RFC2222 as
previously documented.

11 years agoemail: Corrected references to SASL RFC
Steve Holme [Tue, 22 Jan 2013 18:37:12 +0000 (18:37 +0000)]
email: Corrected references to SASL RFC

The most recent version of the SASL RFC is RFC4422 and not RFC2222 as
previously documented.

11 years agoformpost: support quotes, commas and semicolon in file names
Ulion [Mon, 21 Jan 2013 22:20:09 +0000 (23:20 +0100)]
formpost: support quotes, commas and semicolon in file names

- document the double-quote and backslash need be escaped if quoting.
- libcurl formdata escape double-quote in filename by backslash.
- curl formparse can parse filename both contains '"' and ',' or ';'.
- curl now can uploading file with ',' or ';' in filename.

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

11 years agomemanalyze.pl: handle fopen() of file names with quotes
Daniel Stenberg [Tue, 22 Jan 2013 13:39:50 +0000 (14:39 +0100)]
memanalyze.pl: handle fopen() of file names with quotes

11 years agoxc-cc-check.m4: re-evaluate exporting and AC_SUBST'ing vars
Yang Tse [Mon, 21 Jan 2013 20:21:30 +0000 (21:21 +0100)]
xc-cc-check.m4: re-evaluate exporting and AC_SUBST'ing vars

Notes:

When running a configure script that has nested packages (for example
libcurl's configure with --enable-ares and c-ares sources embedded in
curl tree) and AC_CONFIG_SUBDIRS([nested-subdir]) machinery is used to
automatically run the nested configure script from within the parent
configure script, it happens that the nested _shell_ script will
inherit shell variables exported from the parent _shell_ script.

If for example parent configure script sets and exports LDFLAGS and LIBS
variables with proper values in order to link either a parent library or
program with a library which will be configured and built by a nested
package; It will happen that when the nested configure script runs, the
nested library does not exist yet and _any_ link-test done in the nested
configure will fail, such as those that autoconf macros perform in order
to detect existing compiler and its characteristics, the result is that
the nested configure script will fail with errors such as:

configure: error: C compiler cannot create executables

For now, we no longer export variables previously exported here.

On the other hand, AC_SUBST'ing them is appropriate and even with nested
packages each package's config.status gets its own package values.

So we reinstate AC_SUBST'ing previously AC_SUBST'ed variables.

11 years agoFAQ: 3.22 curl -X gives me HTTP problems
Daniel Stenberg [Mon, 21 Jan 2013 13:33:12 +0000 (14:33 +0100)]
FAQ: 3.22 curl -X gives me HTTP problems

11 years agoxc-cc-check.m4: avoid recursive package automake'ing breakage
Yang Tse [Mon, 21 Jan 2013 04:20:29 +0000 (05:20 +0100)]
xc-cc-check.m4: avoid recursive package automake'ing breakage

11 years agoxc-cc-check.m4: mark earlier variables that are to be exported
Yang Tse [Sun, 20 Jan 2013 20:06:49 +0000 (21:06 +0100)]
xc-cc-check.m4: mark earlier variables that are to be exported

11 years agoconfigure: autotools compatibility fixes - step I
Yang Tse [Sun, 20 Jan 2013 19:23:20 +0000 (20:23 +0100)]
configure: autotools compatibility fixes - step I

Fix proper macro expansion order across autotools versions for
C compiler and preprocessor program checks.

11 years agopop3.c: Fixed conditional compilation of the apop response function
Steve Holme [Sun, 20 Jan 2013 11:09:53 +0000 (11:09 +0000)]
pop3.c: Fixed conditional compilation of the apop response function

Extended the fix from commit 8b15c84ea91e to additionally exclude
pop3_state_apop_resp() if the CURL_DISABLE_CRYPTO_AUTH flag is
defined.

11 years agoMakefile.inc: fix $(top_srcdir) not allowed in _SOURCES variables
Yang Tse [Sun, 20 Jan 2013 03:17:11 +0000 (04:17 +0100)]
Makefile.inc: fix $(top_srcdir) not allowed in _SOURCES variables

11 years agoformadd: reject trying to read a directory where a file is expected
Daniel Stenberg [Sat, 19 Jan 2013 22:08:12 +0000 (23:08 +0100)]
formadd: reject trying to read a directory where a file is expected

Bug: http://curl.haxx.se/mail/archive-2013-01/0017.html
Reported by: Ulrich Doehner

11 years agocurl_easy_send.3: document return codes
Daniel Stenberg [Sat, 19 Jan 2013 21:58:56 +0000 (22:58 +0100)]
curl_easy_send.3: document return codes

Reported by: Craig Davison
Bug: http://curl.haxx.se/mail/lib-2013-01/0234.html

11 years agocurl_easy_recv.3: document return codes
Daniel Stenberg [Sat, 19 Jan 2013 21:58:02 +0000 (22:58 +0100)]
curl_easy_recv.3: document return codes

Reported by: Craig Davison
Bug: http://curl.haxx.se/mail/lib-2013-01/0234.html

11 years agoemail: General code tidy up
Steve Holme [Sat, 19 Jan 2013 09:49:17 +0000 (09:49 +0000)]
email: General code tidy up

Corrected some function argument definitions to maximize the 80
character line length limit and be in keeping with the curl
coding style.

11 years agopop3.c: Fixed a problem with pop3s connections not connecting properly
Steve Holme [Fri, 18 Jan 2013 21:55:19 +0000 (21:55 +0000)]
pop3.c: Fixed a problem with pop3s connections not connecting properly

Fixed an issue where Curl_ssl_connect_nonblocking() wouldn't complete
correctly and the ssldone flag wouldn't be set to true for pop3s based
connections.

Bug introduced in commit: 4ffb8a6398ed.

11 years agoRELEASE-NOTES: add references to several bugfixes+changes
Daniel Stenberg [Fri, 18 Jan 2013 14:57:11 +0000 (15:57 +0100)]
RELEASE-NOTES: add references to several bugfixes+changes

11 years agoRELEASE-NOTES: Added missing imap fix
Steve Holme [Fri, 18 Jan 2013 12:15:37 +0000 (12:15 +0000)]
RELEASE-NOTES: Added missing imap fix

Added missing imap fix as per commit 709b3506cd9b.

11 years agoruntests.pl: make VPATH builds find valgrind.supp
Yang Tse [Fri, 18 Jan 2013 10:20:41 +0000 (11:20 +0100)]
runtests.pl: make VPATH builds find valgrind.supp

11 years agoRELEASE-NOTES: synced with c43127414d89
Daniel Stenberg [Thu, 17 Jan 2013 23:12:18 +0000 (00:12 +0100)]
RELEASE-NOTES: synced with c43127414d89

11 years agoalways-multi: always use non-blocking internals
Daniel Stenberg [Thu, 17 Jan 2013 11:59:23 +0000 (12:59 +0100)]
always-multi: always use non-blocking internals

Remove internal separated behavior of the easy vs multi intercace.
curl_easy_perform() is now using the multi interface itself.

Several minor multi interface quirks and bugs have been fixed in the
process.

Much help with debugging this has been provided by: Yang Tse

11 years agourl.c: fix HTTP CONNECT tunnel establishment upon delayed response
Yang Tse [Thu, 17 Jan 2013 16:07:19 +0000 (17:07 +0100)]
url.c: fix HTTP CONNECT tunnel establishment upon delayed response

Fixes initial proxy response being processed by the tunneled protocol
handler instead of the HTTP wrapper handler. This issue would trigger
upon delayed CONNECT response from the proxy.

Additionally fixes a multi interface code-path in which connections
would not time out properly.

This does not fix known bug #39.

URL: http://curl.haxx.se/mail/lib-2013-01/0191.html

11 years ago--libcurl: fix for non-zero default options
Yves Arrouye [Mon, 14 Jan 2013 19:06:32 +0000 (20:06 +0100)]
--libcurl: fix for non-zero default options

If the default value for an option taking a long as its value is non
zero, and it is set by zero by a command line option, then that command
line option is not reflected in --libcurl's output. This is because line
520-521 of tool_setopt.c look like:

if(!lval)
    skip = TRUE;

An example of a command-line option doing so is the -k option that sets
CURLOPT_SLL_VERIFYPEER and CURLOPT_SSL_VERIFYHOST to 0L, when the
defaults are non-zero.

11 years agoFTP: reject illegal port numbers in EPSV 229 responses
Daniel Stenberg [Tue, 15 Jan 2013 21:35:48 +0000 (22:35 +0100)]
FTP: reject illegal port numbers in EPSV 229 responses

11 years agocommit bc682cbd follow-up
Yang Tse [Tue, 15 Jan 2013 18:40:41 +0000 (19:40 +0100)]
commit bc682cbd follow-up

11 years agobuild: use per-target '_CPPFLAGS' for those currently using default
Yang Tse [Tue, 15 Jan 2013 15:28:07 +0000 (16:28 +0100)]
build: use per-target '_CPPFLAGS' for those currently using default

Automake documents that doing this will make it choose a different name
for intermediate object files even when sharing source files across
targets of same Makefile.am.

Up to automake 1.13.1 target's intermediate object files were placed
in the build subdirectory of the target. We depended on this, probably
undocumented behavior, to achieve same behavior as if a per-target flag
had been specified when building targets that actually belong to
different Makefile.am files.

It seems automake 1.13.2 is going to break behavior mentioned above.

So, lets use a documented behavior in order to achieve same purpose,
across automake versions, no matter where automake wishes to place
intermediate object files.

Our build targets that already were using a per-target '_CFLAGS' or
'_CPPFLAGS' need no 'fixing', these were already 'fixed'. The only
Makefile.am or Makefile.in files in libcurl's source tree touched by
this 'fix' are tests/libtest/Makefile.inc and tests/unit/Makefile.inc.

11 years agotests/libtest/Makefile.inc: sort build targets
Yang Tse [Tue, 15 Jan 2013 15:04:31 +0000 (16:04 +0100)]
tests/libtest/Makefile.inc: sort build targets

11 years agotests/Makefile.am: remove wildcard usage in EXTRA_DIST
Yang Tse [Tue, 15 Jan 2013 11:36:08 +0000 (12:36 +0100)]
tests/Makefile.am: remove wildcard usage in EXTRA_DIST

11 years agonss: fix error messages for CURLE_SSL_{CACERT,CRL}_BADFILE
Kamil Dudka [Tue, 15 Jan 2013 11:58:08 +0000 (12:58 +0100)]
nss: fix error messages for CURLE_SSL_{CACERT,CRL}_BADFILE

Do not use the error messages from NSS for errors not occurring in NSS.