platform/upstream/curl.git
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

11 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

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

11 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

11 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

11 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!

11 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

11 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!

11 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

11 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

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

11 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

11 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+

11 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

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

11 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

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

11 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'

11 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'

11 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

11 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

11 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

11 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

11 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

11 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

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

11 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

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

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

11 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

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

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

11 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

11 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

11 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

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

11 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

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

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

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

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

11 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

11 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

11 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

11 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

11 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

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

11 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

11 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

11 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

11 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

11 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

11 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

11 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

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

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

11 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

11 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

11 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()

11 years agoManpage for curl_multi_wait().
Sara Golemon [Mon, 27 Aug 2012 20:06:28 +0000 (13:06 -0700)]
Manpage for curl_multi_wait().

11 years agomulti: add curl_multi_wait()
Sara Golemon [Mon, 27 Aug 2012 19:48:55 +0000 (12:48 -0700)]
multi: add curl_multi_wait()

/*
 * Name:     curl_multi_wait()
 *
 * Desc:     Poll on all fds within a CURLM set as well as any
 *           additional fds passed to the function.
 *
 * Returns:  CURLMcode type, general multi error code.
 */
CURL_EXTERN CURLMcode curl_multi_wait(CURLM *multi_handle,
                                      struct curl_waitfd extra_fds[],
                                      unsigned int extra_nfds,
                                      int timeout_ms);

11 years agodarwinssl: Bugfix for previous commit for older cats
Nick Zitzmann [Tue, 21 Aug 2012 02:22:51 +0000 (20:22 -0600)]
darwinssl: Bugfix for previous commit for older cats

I accidentally broke functionality for versions of OS X prior to Mountain
Lion in the previous commit. This commit fixes the problems.

11 years agoUse MAX_EASY_HANDLES instead of hardcoding the number of handles twice
Joe Mason [Fri, 31 Aug 2012 23:11:17 +0000 (19:11 -0400)]
Use MAX_EASY_HANDLES instead of hardcoding the number of handles twice

11 years agotest2032: bail out after last transfer
Daniel Stenberg [Fri, 31 Aug 2012 21:23:40 +0000 (23:23 +0200)]
test2032: bail out after last transfer

The test would hang and get aborted with a "ABORTING TEST, since it
seems that it would have run forever." until I prevented that from
happening.

I also fixed the data file which got broken CRLF line endings when I
sucked down the path from Joe's repo == my fault.

Removed #37 from KNOWN_BUGS as this fix and test case verifies exactly
this.

11 years agoNTLM: re-use existing connection better
Joe Mason [Mon, 20 Aug 2012 21:00:40 +0000 (17:00 -0400)]
NTLM: re-use existing connection better

If we need an NTLM connection and one already exists, always choose that
one.

11 years agoNTLM: verify multiple connections work
Joe Mason [Wed, 8 Aug 2012 22:15:04 +0000 (18:15 -0400)]
NTLM: verify multiple connections work

Add test2032 to test that NTLM does not switch connections in the middle
of the handshake

11 years agocurl.1: list the -w variables sorted alphabetically
Daniel Stenberg [Tue, 28 Aug 2012 08:43:12 +0000 (10:43 +0200)]
curl.1: list the -w variables sorted alphabetically

11 years agolibcurl-share.3: remove wrong info of what can be shared
Daniel Stenberg [Mon, 27 Aug 2012 21:49:08 +0000 (23:49 +0200)]
libcurl-share.3: remove wrong info of what can be shared

"Currently you can only share DNS and/or COOKIE data" is incorrect since
also SSL sessions can be shared.

Bug: http://curl.haxx.se/bug/view.cgi?id=3562261
Reported by: Joe Mason

11 years agoexamples: use do/while loop for multi examples
Dave Reisner [Mon, 23 Jul 2012 15:34:25 +0000 (15:34 +0000)]
examples: use do/while loop for multi examples

It's conceivable that after the first time curl_multi_perform returns,
the outvalue still_running will be 0, but work will have been done. This
is shown by a workload of small, purely file:// based URLs. Ensure that
we always read pending messages off the multi handle by forcing the
while loop to run at least once.

11 years agocurl.h: fix comment to refer to current names
Daniel Stenberg [Mon, 27 Aug 2012 12:50:53 +0000 (14:50 +0200)]
curl.h: fix comment to refer to current names

CURLOPT_USE_SSL should be set to CURLUSESSL_* and nothing else in modern
libcurl versions.

11 years agoftpsget: simple example showing a FTPS fetch
Daniel Stenberg [Mon, 27 Aug 2012 12:48:56 +0000 (14:48 +0200)]
ftpsget: simple example showing a FTPS fetch

11 years agosftpget: SFTP is not "SSH FTP"
Daniel Stenberg [Mon, 27 Aug 2012 12:42:56 +0000 (14:42 +0200)]
sftpget: SFTP is not "SSH FTP"

11 years agosftpget: example showing a simple SFTP download
Armel Asselin [Mon, 27 Aug 2012 12:33:27 +0000 (14:33 +0200)]
sftpget: example showing a simple SFTP download

... using SSH-agent

11 years agocurl_multi_perform.3: extended/clarified
Daniel Stenberg [Sun, 26 Aug 2012 22:16:03 +0000 (00:16 +0200)]
curl_multi_perform.3: extended/clarified

11 years agoINSTALL.cmake: clarify some flaws/limits in the cmake build
Daniel Stenberg [Thu, 23 Aug 2012 08:53:08 +0000 (10:53 +0200)]
INSTALL.cmake: clarify some flaws/limits in the cmake build

11 years agohttps.c example: spell check used define
Daniel Stenberg [Tue, 21 Aug 2012 20:30:47 +0000 (22:30 +0200)]
https.c example: spell check used define

Bug: http://curl.haxx.se/bug/view.cgi?id=3559845
Reported by: Olivier Berger

11 years agoconfigure: update the copyright years for the output
Daniel Stenberg [Sat, 18 Aug 2012 22:18:34 +0000 (00:18 +0200)]
configure: update the copyright years for the output

11 years agodarwinssl: add TLS 1.1 and 1.2 support, replace deprecated functions
Nick Zitzmann [Fri, 17 Aug 2012 04:31:41 +0000 (22:31 -0600)]
darwinssl: add TLS 1.1 and 1.2 support, replace deprecated functions

In Mountain Lion, Apple added TLS 1.1 and 1.2, and deprecated a number
of SecureTransport functions, some of which we were using. We now check
to see if the replacement functions are present, and if so, we use them
instead.  The old functions are still present for users of older
cats. Also fixed a build warning that started to appear under Mountain
Lion

11 years agocurl_easy_setopt: documented CURLSOCKTYPE_ACCEPT for SOCKOPTFUNCTION
Daniel Stenberg [Thu, 16 Aug 2012 21:32:55 +0000 (23:32 +0200)]
curl_easy_setopt: documented CURLSOCKTYPE_ACCEPT for SOCKOPTFUNCTION

11 years agoftp: active conn, place calling sockopt callback at the end of function
Gokhan Sengun [Sun, 24 Jun 2012 23:06:50 +0000 (02:06 +0300)]
ftp: active conn, place calling sockopt callback at the end of function

Commit b91d29a28e170c16d65d956db79f2cd3a82372d2 introduces a bug and breaks Curl_closesocket function. sock_accepted flag for the second socket should be tagged as TRUE before the sockopt callback is called because in case the callback returns an error, Curl_closesocket function is going to call the - fclosesocket - callback for the accept()ed socket