platform/upstream/curl.git
11 years agohttpcustomheader.c: free the headers after use
Daniel Stenberg [Tue, 6 Nov 2012 10:50:50 +0000 (11:50 +0100)]
httpcustomheader.c: free the headers after use

11 years agouniformly use AM_CPPFLAGS, avoid deprecated INCLUDES
Dave Reisner [Wed, 10 Oct 2012 08:05:02 +0000 (10:05 +0200)]
uniformly use AM_CPPFLAGS, avoid deprecated INCLUDES

Since automake 1.12.4, the warnings are issued on running automake:

  warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')

Avoid INCLUDES and roll these flags into AM_CPPFLAGS.

Compile tested on:
  Ubuntu 10.04 (automake 1:1.11.1-1)
  Ubuntu 12.04 (automake 1:1.11.3-1ubuntu2)
  Arch Linux (automake 1.12.4)

11 years agolibauthretry.c: shorten lines to fit within 80 cols
Daniel Stenberg [Mon, 5 Nov 2012 21:02:56 +0000 (22:02 +0100)]
libauthretry.c: shorten lines to fit within 80 cols

11 years agoftp_readresp: fix build without krb4 support
Daniel Stenberg [Mon, 5 Nov 2012 12:01:48 +0000 (13:01 +0100)]
ftp_readresp: fix build without krb4 support

Oops, my previous commit broke builds with krb support.

11 years agotest/README: mention the 1500 test number range
Daniel Stenberg [Sun, 4 Nov 2012 22:18:20 +0000 (23:18 +0100)]
test/README: mention the 1500 test number range

11 years agoFTP: prevent the multi interface from blocking
Daniel Stenberg [Sun, 4 Nov 2012 17:22:48 +0000 (18:22 +0100)]
FTP: prevent the multi interface from blocking

As pointed out in Bug report #3579064, curl_multi_perform() would
wrongly use a blocking mechanism internally for some commands which
could lead to for example a very long block if the LIST response never
showed.

The solution was to make sure to properly continue to use the multi
interface non-blocking state machine.

The new test 1501 verifies the fix.

Bug: http://curl.haxx.se/bug/view.cgi?id=3579064
Reported by: Guido Berhoerster

11 years agowinbuild: Use machine type of development environment
Marc Hoersken [Thu, 1 Nov 2012 21:23:05 +0000 (22:23 +0100)]
winbuild: Use machine type of development environment

This patch restores the original behavior instead of always
falling back to x86 if no MACHINE-type was specified.

11 years agowinbuild: Additional clean up
Marc Hoersken [Thu, 1 Nov 2012 21:16:47 +0000 (22:16 +0100)]
winbuild: Additional clean up

11 years agoEven more winbuild refactoring
Sapien2 [Thu, 25 Oct 2012 10:54:07 +0000 (14:54 +0400)]
Even more winbuild refactoring

11 years agoMinor winbuild refactoring
Sapien2 [Thu, 25 Oct 2012 10:24:41 +0000 (14:24 +0400)]
Minor winbuild refactoring

11 years agoArchitecture selection for winbuild and minor makefiles refactoring
Sapien2 [Thu, 25 Oct 2012 08:19:50 +0000 (12:19 +0400)]
Architecture selection for winbuild and minor makefiles refactoring

11 years agoBUGS: fix the bug tracker URL
Daniel Stenberg [Thu, 1 Nov 2012 20:33:37 +0000 (21:33 +0100)]
BUGS: fix the bug tracker URL

The URL we used before is the one that goes directly to 'add' a bug
report, but since you can only do that after first having logged in to
sourceforge, the link often doesn't work for visitors.

Bug: http://curl.haxx.se/bug/view.cgi?id=3582408
Reported by: Oscar Norlander

11 years agoevhiperfifo: fix the pointer passed to WRITEDATA
Daniel Stenberg [Thu, 1 Nov 2012 13:19:21 +0000 (14:19 +0100)]
evhiperfifo: fix the pointer passed to WRITEDATA

Bug: http://curl.haxx.se/bug/view.cgi?id=3582407
Reported by: Oscar Norlander

11 years agoFixed MSVC libssh2 static build.
Guenter Knauf [Thu, 1 Nov 2012 00:03:12 +0000 (01:03 +0100)]
Fixed MSVC libssh2 static build.

Since libssh2 supports now agent stuff it also depends on user32.lib.
Posted to the list by Jan Ehrhardt.

11 years agotlsauthtype: deal with the string case insensitively
Daniel Stenberg [Tue, 23 Oct 2012 21:12:58 +0000 (23:12 +0200)]
tlsauthtype: deal with the string case insensitively

When given a string as 'srp' it didn't work, but required 'SRP'.
Starting now, the check disregards casing.

Bug: http://curl.haxx.se/bug/view.cgi?id=3578418
Reported by: Jeff Connelly

11 years agoasyn-ares: restore working with c-ares < 1.6.1
Daniel Stenberg [Tue, 23 Oct 2012 21:06:38 +0000 (23:06 +0200)]
asyn-ares: restore working with c-ares < 1.6.1

Back in those days the public ares.h header didn't include the
ares_version.h header so it needs to be included here.

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

11 years agometalink/md5: Use CommonCrypto on Apple operating systems
Nick Zitzmann [Tue, 16 Oct 2012 17:48:55 +0000 (11:48 -0600)]
metalink/md5: Use CommonCrypto on Apple operating systems

Previously the Metalink code used Apple's CommonCrypto library only if
curl was built using the --with-darwinssl option. Now we use CommonCrypto
on all Apple operating systems including Tiger or later, or iOS 5 or
later, so you don't need to build --with-darwinssl anymore. Also rolled
out this change to libcurl's md5 code.

11 years agohref_extractor.c: fix the URL
Daniel Stenberg [Thu, 18 Oct 2012 17:42:31 +0000 (19:42 +0200)]
href_extractor.c: fix the URL

11 years agohref_extractor: example code extracting href elements
Michał Kowalczyk [Thu, 18 Oct 2012 14:45:51 +0000 (16:45 +0200)]
href_extractor: example code extracting href elements

It does so in a streaming manner using the "Streaming HTML parser".

11 years agodarwinssl: un-broke iOS build, fix error on server disconnect
Nick Zitzmann [Tue, 16 Oct 2012 16:33:13 +0000 (10:33 -0600)]
darwinssl: un-broke iOS build, fix error on server disconnect

The iOS build was broken by a reference to a function that only existed
under OS X; fixed. Also fixed a hard-to-reproduce problem where, if the
server disconnected before libcurl got the chance to hang up first and
SecureTransport was in use, then we'd raise an error instead of failing
gracefully.

11 years agognutls: put reset code into else block
Alessandro Ghedini [Mon, 15 Oct 2012 14:06:54 +0000 (16:06 +0200)]
gnutls: put reset code into else block

Bug: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=690551

11 years agoFix now broken libmetalink-aware OpenSSL build.
Guenter Knauf [Fri, 12 Oct 2012 23:03:34 +0000 (01:03 +0200)]
Fix now broken libmetalink-aware OpenSSL build.

11 years agoRevert c44e674; add OpenSSL includes/defines.
Guenter Knauf [Fri, 12 Oct 2012 22:48:05 +0000 (00:48 +0200)]
Revert c44e674; add OpenSSL includes/defines.

The makefile is designed to build against a libmetalink devel package;
therefore is does not matter what will change inside libmetalink.
Add OpenSSL includes and defines for libmetalink-aware OpenSSL builds.

11 years agoversion-bump: towards 7.28.1!
Daniel Stenberg [Wed, 10 Oct 2012 20:35:08 +0000 (22:35 +0200)]
version-bump: towards 7.28.1!

11 years agoTHANKS: 14 new contributors from 7.28.0
Daniel Stenberg [Wed, 10 Oct 2012 20:33:33 +0000 (22:33 +0200)]
THANKS: 14 new contributors from 7.28.0

11 years agoRELEASE-NOTES: synced with 8373ca3641
Daniel Stenberg [Wed, 10 Oct 2012 19:58:16 +0000 (21:58 +0200)]
RELEASE-NOTES: synced with 8373ca3641

One bug, one contributor. Getting ready for release.

11 years agocurl_multi_wait: no wait if no descriptors to wait for
Daniel Stenberg [Tue, 9 Oct 2012 20:19:49 +0000 (22:19 +0200)]
curl_multi_wait: no wait if no descriptors to wait for

This is a minor change in behavior after having been pointed out by Mark
Tully and discussed on the list. Initially this case would internally
call poll() with no sockets and a timeout which would equal a sleep for
that specified time.

Bug: http://curl.haxx.se/mail/lib-2012-10/0076.html
Reported by: Mark Tully

11 years agoTODO-RELEASE: cleanup for 7.28.0
Daniel Stenberg [Mon, 8 Oct 2012 22:32:11 +0000 (00:32 +0200)]
TODO-RELEASE: cleanup for 7.28.0

one issue is now KNOWN_BUG #79

the other we just skip since nobody is working on it or is planning to
start working on it anytime soon

11 years agocurl_multi_wait.3: style formatting mistake
Daniel Stenberg [Mon, 8 Oct 2012 14:31:42 +0000 (16:31 +0200)]
curl_multi_wait.3: style formatting mistake

11 years agossluse.c: md5.h is required for Curl_ossl_md5sum
Marc Hoersken [Sun, 7 Oct 2012 09:53:17 +0000 (11:53 +0200)]
ssluse.c: md5.h is required for Curl_ossl_md5sum

11 years agocurl_multi_wait.3: fix the name of the man page
Daniel Stenberg [Mon, 8 Oct 2012 12:35:25 +0000 (14:35 +0200)]
curl_multi_wait.3: fix the name of the man page

11 years agocurl_multi_wait.3: renamed the last argument variable for clarity
Daniel Stenberg [Mon, 8 Oct 2012 12:32:15 +0000 (14:32 +0200)]
curl_multi_wait.3: renamed the last argument variable for clarity

11 years agocurl_schannel.c: Fixed caching more data than required
Marc Hoersken [Sat, 6 Oct 2012 13:47:14 +0000 (15:47 +0200)]
curl_schannel.c: Fixed caching more data than required

Do not fill the decrypted data buffer with more data unless
required in order to return the requested amount of data.

11 years agocurl_schannel: Removed buffer limit and optimized buffer strategy
Marc Hoersken [Sat, 6 Oct 2012 11:59:28 +0000 (13:59 +0200)]
curl_schannel: Removed buffer limit and optimized buffer strategy

Since there are servers that seem to return very big encrypted
data packages, we need to be able to handle those without having
an internal size limit. To avoid the buffer growing to fast to
early the initial size was decreased and the minimum free space
in the buffer was decreased as well.

11 years agolib/socks.c: Merged two size variables into one
Marc Hoersken [Thu, 4 Oct 2012 19:27:46 +0000 (21:27 +0200)]
lib/socks.c: Merged two size variables into one

11 years agolib/socks.c: Avoid type conversions where possible
Marc Hoersken [Thu, 4 Oct 2012 18:17:49 +0000 (20:17 +0200)]
lib/socks.c: Avoid type conversions where possible

Streamlined variable names and types to avoid type conversions that
may result in data being lost on non 32-bit systems.

11 years agolib/curl_schannel.c: Hide size_t conversion warning
Marc Hoersken [Thu, 4 Oct 2012 17:55:17 +0000 (19:55 +0200)]
lib/curl_schannel.c: Hide size_t conversion warning

11 years agokrb5/curl_rtmp.c: Hide size_t to int type conversion warning
Marc Hoersken [Fri, 28 Sep 2012 21:57:04 +0000 (23:57 +0200)]
krb5/curl_rtmp.c: Hide size_t to int type conversion warning

11 years agosecurity.c: Aligned internal type to return type
Marc Hoersken [Fri, 28 Sep 2012 21:11:57 +0000 (23:11 +0200)]
security.c: Aligned internal type to return type

Use ssize_t instead of int to avoid conversion problems on 64-bit
systems. Also added curlx_sztosi where necessary.

11 years agolib/curl_schannel: Increased maximum buffer size to factor 128
Marc Hoersken [Wed, 3 Oct 2012 16:15:41 +0000 (18:15 +0200)]
lib/curl_schannel: Increased maximum buffer size to factor 128

11 years agowinbuild/MakefileBuild.vc: Follow up on 0c8ccf7
Marc Hoersken [Wed, 3 Oct 2012 14:56:35 +0000 (16:56 +0200)]
winbuild/MakefileBuild.vc: Follow up on 0c8ccf7

11 years agoRELEASE-NOTES: synced with 971f5bcedd418
Daniel Stenberg [Tue, 2 Oct 2012 08:32:14 +0000 (10:32 +0200)]
RELEASE-NOTES: synced with 971f5bcedd418

9 new bug fixes, 5 changes, 6 more contributors

12 years agomulti_runsingle: CURLOPT_LOW_SPEED_* fix for rate limitation
Daniel Stenberg [Mon, 1 Oct 2012 22:16:20 +0000 (00:16 +0200)]
multi_runsingle: CURLOPT_LOW_SPEED_* fix for rate limitation

During the periods of rate limitation, the speedcheck function wasn't
called and thus the values weren't updated accordingly and it would then
easily trigger wrongly once data got transferred again.

Also, the progress callback's return code was not acknowledged in this
state so it could make an "abort" return code to get ignored and not
have the documented effect of aborting an ongoing transfer.

Bug: http://curl.haxx.se/mail/lib-2012-09/0081.html
Reported by: Jie He

12 years agotool_metalink.c: Filtered resource URLs by type
Tatsuhiro Tsujikawa [Mon, 17 Sep 2012 14:05:39 +0000 (23:05 +0900)]
tool_metalink.c: Filtered resource URLs by type

In Metalink v3, the type attribute of url element indicates the
type of the resource the URL points to. It can include URL to the
meta data, such as BitTorrent metainfo file.  In Curl, we are not
interested in these meta data URLs. Instead, we are only
interested in the HTTP and FTP URLs. This change filters out
non-HTTP and FTP URLs. If we don't filter out them, it will be
downloaded by curl and hash check will fail if hash is provided
and next URL will be tried. This change will cut this useless
network transfer.

12 years agohttps.c example: remember to call curl_global_init()
Kamil Dudka [Mon, 1 Oct 2012 09:20:11 +0000 (11:20 +0200)]
https.c example: remember to call curl_global_init()

... in order not to leak memory on initializing an SSL library.

Reported by: Tomas Mlcoch

12 years agoFAQ: remove the date from the topmost line
Daniel Stenberg [Fri, 28 Sep 2012 13:53:46 +0000 (15:53 +0200)]
FAQ: remove the date from the topmost line

12 years agoFAQ: 5.16 I want a different time-out!
Daniel Stenberg [Fri, 28 Sep 2012 13:50:18 +0000 (15:50 +0200)]
FAQ: 5.16 I want a different time-out!

12 years agoCurl_reconnect_request: clear pointer on failure
Daniel Stenberg [Fri, 28 Sep 2012 11:56:03 +0000 (13:56 +0200)]
Curl_reconnect_request: clear pointer on failure

The Curl_reconnect_request() function could end up returning a pointer
to a free()d struct when Curl_done() failed inside. Clearing the pointer
unconditionally after Curl_done() avoids this risk.

Reported by: Ho-chi Chen
Bug: http://curl.haxx.se/mail/lib-2012-09/0188.html

12 years agoCURLOPT_CONNECTTIMEOUT: works without signals or posix too!
Daniel Stenberg [Wed, 26 Sep 2012 09:46:23 +0000 (11:46 +0200)]
CURLOPT_CONNECTTIMEOUT: works without signals or posix too!

12 years agoMakefile.vc6: Follow up on 0c8ccf7
Marc Hoersken [Mon, 24 Sep 2012 08:26:15 +0000 (10:26 +0200)]
Makefile.vc6: Follow up on 0c8ccf7

12 years agoMakefile.vc6: Added missing default library advapi32.lib
Marc Hoersken [Sun, 23 Sep 2012 08:18:47 +0000 (10:18 +0200)]
Makefile.vc6: Added missing default library advapi32.lib

12 years agoHTTP_ONLY: disable more protocols
Daniel Stenberg [Wed, 19 Sep 2012 09:00:17 +0000 (11:00 +0200)]
HTTP_ONLY: disable more protocols

12 years agotest2006: Updated expected output to include hash name
Daniel Stenberg [Mon, 17 Sep 2012 22:14:34 +0000 (00:14 +0200)]
test2006: Updated expected output to include hash name

Output changed in commit a34197ef77cb

12 years agocmake: use standard findxxx modules for cmake v2.8+
Sergei Nikulov [Thu, 13 Sep 2012 12:08:21 +0000 (16:08 +0400)]
cmake: use standard findxxx modules for cmake v2.8+

12 years agosetup.h: fixed for MS VC10 build
Sergei Nikulov [Thu, 13 Sep 2012 08:29:54 +0000 (12:29 +0400)]
setup.h: fixed for MS VC10 build

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

12 years agoTODO-RELEASE: push new features to 7.29
Daniel Stenberg [Mon, 17 Sep 2012 21:10:32 +0000 (23:10 +0200)]
TODO-RELEASE: push new features to 7.29

Leave two bug fixes as possibly fixed for 7.28 but as nobody seems to be
working on them I have little hope...

12 years agometalink tests: Updated expected output to include hash name
Marc Hoersken [Mon, 17 Sep 2012 05:35:11 +0000 (07:35 +0200)]
metalink tests: Updated expected output to include hash name

12 years agocurl_multi_wait: Add parameter to return number of active sockets
Sara Golemon [Sat, 15 Sep 2012 17:38:52 +0000 (10:38 -0700)]
curl_multi_wait: Add parameter to return number of active sockets

Minor change to recently introduced function.  BC breaking, but since
curl_multi_wait() doesn't exist in any releases that should be fine.

12 years agosocks.c: Fixed warning: conversion to 'int' from 'long unsigned int'
Marc Hoersken [Fri, 14 Sep 2012 14:01:19 +0000 (16:01 +0200)]
socks.c: Fixed warning: conversion to 'int' from 'long unsigned int'

12 years agohttp_negotiate.c: Fxied warning: unused variable 'rc'
Marc Hoersken [Fri, 14 Sep 2012 13:50:24 +0000 (15:50 +0200)]
http_negotiate.c: Fxied warning: unused variable 'rc'

12 years agossh.c: Fixed warning: implicit conversion from enumeration type
Marc Hoersken [Fri, 14 Sep 2012 12:48:55 +0000 (14:48 +0200)]
ssh.c: Fixed warning: implicit conversion from enumeration type

12 years agosocks.c: Check that IPv6 is enabled before using it's features
Marc Hoersken [Fri, 14 Sep 2012 06:12:07 +0000 (08:12 +0200)]
socks.c: Check that IPv6 is enabled before using it's features

12 years agochecksrc: Fixed line length and comment indentation
Marc Hoersken [Thu, 13 Sep 2012 22:44:16 +0000 (00:44 +0200)]
checksrc: Fixed line length and comment indentation

12 years agosocks.c: Updated error messages to handle hostname and IPv6
Marc Hoersken [Mon, 10 Sep 2012 10:46:25 +0000 (12:46 +0200)]
socks.c: Updated error messages to handle hostname and IPv6

12 years agosocks.c: Added support for IPv6 connections through SOCKSv5 proxy
Marc Hoersken [Mon, 10 Sep 2012 10:44:37 +0000 (12:44 +0200)]
socks.c: Added support for IPv6 connections through SOCKSv5 proxy

12 years agoparse_proxy: treat "socks://x" as a socks4 proxy
Daniel Stenberg [Thu, 13 Sep 2012 20:57:38 +0000 (22:57 +0200)]
parse_proxy: treat "socks://x" as a socks4 proxy

Selected socks proxy in Google's Chrome browser. Resulting in the
following environment variables:

NO_PROXY=localhost,127.0.0.0/8
ALL_PROXY=socks://localhost:1080/
all_proxy=socks://localhost:1080/
no_proxy=localhost,127.0.0.0/8

... and libcurl didn't treat 'socks://' as socks but instead picked HTTP
proxy.

Reported by: Scott Bailey

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

12 years agossh: do not crash if MD5 fingerprint is not provided by libssh2
Kamil Dudka [Wed, 12 Sep 2012 14:18:36 +0000 (16:18 +0200)]
ssh: do not crash if MD5 fingerprint is not provided by libssh2

The MD5 fingerprint cannot be computed when running in FIPS mode.

12 years agossh: move the fingerprint checking code to a separate fnc
Kamil Dudka [Wed, 12 Sep 2012 14:06:18 +0000 (16:06 +0200)]
ssh: move the fingerprint checking code to a separate fnc

12 years agotool_metalink.c: Added name of validation hash to messages
Marc Hoersken [Tue, 11 Sep 2012 22:09:23 +0000 (00:09 +0200)]
tool_metalink.c: Added name of validation hash to messages

This makes it easier to debug broken hashes or hash functions.

12 years agowincrypt: Fixed cross-compilation issues caused by include name
Marc Hoersken [Tue, 11 Sep 2012 12:35:18 +0000 (14:35 +0200)]
wincrypt: Fixed cross-compilation issues caused by include name

For some reason WinCrypt.h is named wincrypt.h under MinGW.

12 years agomd5.c: Added support for Microsoft Windows CryptoAPI
Marc Hoersken [Tue, 11 Sep 2012 12:12:41 +0000 (14:12 +0200)]
md5.c: Added support for Microsoft Windows CryptoAPI

12 years agoMakefile.m32: Updated to build against libmetalink 0.1.2
Marc Hoersken [Mon, 10 Sep 2012 23:59:41 +0000 (01:59 +0200)]
Makefile.m32: Updated to build against libmetalink 0.1.2

The include and library path were moved within libmetalink, this
patch adjusts the defaults provided within the curl MinGW makefile.

12 years agotool_metalink.c: Added support for Microsoft Windows CryptoAPI
Marc Hoersken [Mon, 10 Sep 2012 23:58:10 +0000 (01:58 +0200)]
tool_metalink.c: Added support for Microsoft Windows CryptoAPI

Since Metalink support requires a crypto library for hash functions
and Windows comes with the builtin CryptoAPI, this patch adds that
API as a fallback to the supported crypto libraries.
It is automatically used on Windows if no other library is provided.

12 years agolibntlmconnect.c: Fixed typo and conversion
Marc Hoersken [Tue, 11 Sep 2012 10:58:08 +0000 (12:58 +0200)]
libntlmconnect.c: Fixed typo and conversion

12 years agolibntlmconnect.c: Fixed warning: curl_easy_getinfo expects long pointer
Marc Hoersken [Tue, 11 Sep 2012 10:19:05 +0000 (12:19 +0200)]
libntlmconnect.c: Fixed warning: curl_easy_getinfo expects long pointer

Fixed tests/libtest/libntlmconnect.c:52: warning: call to
'_curl_easy_getinfo_err_long' declared with attribute warning:
curl_easy_getinfo expects a pointer to long for this info

12 years agosws.c: Fixed warning: 'err' may be used uninitialized in this function
Marc Hoersken [Tue, 11 Sep 2012 09:48:27 +0000 (11:48 +0200)]
sws.c: Fixed warning: 'err' may be used uninitialized in this function

12 years agolibntlmconnect.c: Fixed warning: comparison of signed/unsigned integer
Marc Hoersken [Tue, 11 Sep 2012 09:02:09 +0000 (11:02 +0200)]
libntlmconnect.c: Fixed warning: comparison of signed/unsigned integer

Windows does not use -1 to represent invalid sockets and the
SOCKET type is unsigned.

12 years agonss.c: Fixed warning: 'err' may be used uninitialized in this function
Marc Hoersken [Tue, 11 Sep 2012 07:49:23 +0000 (09:49 +0200)]
nss.c: Fixed warning: 'err' may be used uninitialized in this function

12 years agotool_metalink.c: Fixed error: 'O_BINARY' undeclared
Marc Hoersken [Tue, 11 Sep 2012 06:20:43 +0000 (08:20 +0200)]
tool_metalink.c: Fixed error: 'O_BINARY' undeclared

Check for O_BINARY which is not available on every system.

12 years agotool_metalink.c: Fixed validation of binary files containing EOF
Marc Hoersken [Mon, 10 Sep 2012 23:42:58 +0000 (01:42 +0200)]
tool_metalink.c: Fixed validation of binary files containing EOF

Since Windows/MinGW threat 0x1A as the EOF character, reading binary
files which contain that byte does not work using text mode.
The read function will only read until the first 0x1A byte. This
means that the hash is not computed from the whole file and the
final validation check using hash comparision fails.

12 years agowinbuild: Added support for building with SPNEGO enabled
Marc Hoersken [Mon, 10 Sep 2012 20:03:56 +0000 (22:03 +0200)]
winbuild: Added support for building with SPNEGO enabled

Since Simple and Protected GSSAPI Negotiation Mechanism
is already implemented in curl and supported by the MinGW
builds, this change adds build support to winbuild makefiles.

12 years agowinbuild: Adjusted order of options to generated config name
Marc Hoersken [Mon, 10 Sep 2012 19:56:39 +0000 (21:56 +0200)]
winbuild: Adjusted order of options to generated config name

Cleaned up order of handled build options by ordering them
nearly alphabetically by using the order of the generated
config name. Preparation for future/more build options.

12 years agoMANUAL: clarified user+password in HTTP URLs
Anthony Bryan [Sun, 9 Sep 2012 21:08:59 +0000 (23:08 +0200)]
MANUAL: clarified user+password in HTTP URLs

12 years agoRELEASE-NOTES: synced with 6c6f1f64c2
Daniel Stenberg [Sun, 9 Sep 2012 12:55:52 +0000 (14:55 +0200)]
RELEASE-NOTES: synced with 6c6f1f64c2

6 bug fixes to mention, 5 contributors

12 years agoTODO-RELEASE: CURLSSH_AUTH_AGENT and curl_multi_wait() are done
Daniel Stenberg [Sun, 9 Sep 2012 12:50:21 +0000 (14:50 +0200)]
TODO-RELEASE: CURLSSH_AUTH_AGENT and curl_multi_wait() are done

-321 - CURLSSH_AUTH_AGENT patch by Armel Asselin

-324 - curl_multi_select() vs curl_multi_fdvec() etc

12 years agocurl_schannel.c: Reference count the credential/session handle
Marc Hoersken [Sun, 9 Sep 2012 10:36:54 +0000 (12:36 +0200)]
curl_schannel.c: Reference count the credential/session handle

Reference counting the credential handle should avoid that such a
handle is freed while it is still required for connection shutdown

12 years agodarwinssl: fixed for older Mac OS X versions
Nick Zitzmann [Sat, 8 Sep 2012 02:01:08 +0000 (20:01 -0600)]
darwinssl: fixed for older Mac OS X versions

SSL didn't work on older cats if built on a newer cat with weak-linking
turned on to support the older cat

12 years agotool_easysrc.c: Test pointers against NULL
David Blaikie [Thu, 6 Sep 2012 19:00:26 +0000 (21:00 +0200)]
tool_easysrc.c: Test pointers against NULL

While validating a new Clang diagnostic (-Wnon-literal-null-conversion -
yes, the name isn't quite correct in this case, but it suffices) I found
a few violations of it in Curl.

12 years agoSOCKS: truly disable it if CURL_DISABLE_PROXY is defined
Daniel Stenberg [Thu, 6 Sep 2012 18:51:30 +0000 (20:51 +0200)]
SOCKS: truly disable it if CURL_DISABLE_PROXY is defined

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

Patch by: Marcel Raad

12 years agomk-ca-bundle: detect start of trust section better
Daniel Stenberg [Tue, 4 Sep 2012 21:21:15 +0000 (23:21 +0200)]
mk-ca-bundle: detect start of trust section better

Each certificate section of the input certdata.txt file has a trust
section following it with details.

This script failed to detect the start of the trust for at least one
cert[*], which made the script continue pass that section into the next
one where it found an 'untrusted' marker and as a result that certficate
was not included in the output.

[*] = "Hellenic Academic and Research Institutions RootCA 2011"

Bug: http://curl.haxx.se/mail/lib-2012-09/0019.html

12 years agognutls: do not fail on non-fatal handshake errors
Alessandro Ghedini [Mon, 20 Aug 2012 14:47:48 +0000 (16:47 +0200)]
gnutls: do not fail on non-fatal handshake errors

Bug: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=685402

12 years agoFILEFORMAT: the FTP commands work for more protocols
Daniel Stenberg [Tue, 4 Sep 2012 17:41:09 +0000 (19:41 +0200)]
FILEFORMAT: the FTP commands work for more protocols

12 years agotest1411: verify SMTP without SIZE support
Daniel Stenberg [Tue, 4 Sep 2012 17:40:46 +0000 (19:40 +0200)]
test1411: verify SMTP without SIZE support

12 years agoSMTP: only send SIZE if supported
František Kučera [Sun, 2 Sep 2012 08:53:27 +0000 (10:53 +0200)]
SMTP: only send SIZE if supported

SMTP client will send SIZE parameter in MAIL FROM command only if server
supports it. Without this patch server might say "504 Command parameter
not implemented" and reject the message.

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

12 years agoftpserver: respond with a 250 to SMTP EHLO
Daniel Stenberg [Tue, 4 Sep 2012 14:50:31 +0000 (16:50 +0200)]
ftpserver: respond with a 250 to SMTP EHLO

... and specify that SIZE is supported. 250 is the "correct" response
code according to RFC 2821

12 years agoRELEASE-NOTES: synced with abb0da919300e
Daniel Stenberg [Mon, 3 Sep 2012 21:20:33 +0000 (23:20 +0200)]
RELEASE-NOTES: synced with abb0da919300e

12 years agoUpdated Symbian build files
Dan Fandrich [Mon, 3 Sep 2012 20:50:12 +0000 (22:50 +0200)]
Updated Symbian build files

This is untested, but at least Symbian still has a chance of
still working now.

12 years agoUpdated build docs w.r.t. Android and binary sizes
Dan Fandrich [Mon, 3 Sep 2012 20:35:46 +0000 (22:35 +0200)]
Updated build docs w.r.t. Android and binary sizes

12 years agosymbols-in-versions: new CURL_WAIT_* symbols
Daniel Stenberg [Sat, 1 Sep 2012 21:53:15 +0000 (23:53 +0200)]
symbols-in-versions: new CURL_WAIT_* symbols

12 years agoUnit test for curl_multi_wait()
Sara Golemon [Sat, 1 Sep 2012 21:27:11 +0000 (23:27 +0200)]
Unit test for curl_multi_wait()