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

12 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

12 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

12 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

12 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

12 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

12 years agoftp: active conn, allow application to set sockopt after accept() call
Gokhan Sengun [Sun, 24 Jun 2012 22:46:01 +0000 (01:46 +0300)]
ftp: active conn, allow application to set sockopt after accept() call

For active FTP connections, applications may need setting the sockopt after accept() call returns successful. This fix gives a call to the callback registered with CURL_SOCKOPTFUNCTION option. Also a new sock type - CURLSOCKTYPE_ACCEPT - is added. This type is to be passed to application callbacks with - purpose - parameter. Applications may use this parameter to distinguish between socket types.

12 years agoconfigure: remove the --enable/disable-nonblocking options
Daniel Stenberg [Thu, 16 Aug 2012 17:24:33 +0000 (19:24 +0200)]
configure: remove the --enable/disable-nonblocking options

Removing this option as it currently only functions to lure people into
wrongly using it and falsely believing that libcurl will work fine
without using nonblocking sockets internally - which leads to hard to
track or understand errors.

12 years agoMANUAL review
Ant Bryan [Mon, 13 Aug 2012 20:32:42 +0000 (16:32 -0400)]
MANUAL review

12 years agocurl.1: shorten lines, avoid referring to libcurl instead of curl
Daniel Stenberg [Fri, 10 Aug 2012 08:54:38 +0000 (10:54 +0200)]
curl.1: shorten lines, avoid referring to libcurl instead of curl

12 years agocurl.1: fix more consistent wording
Ant Bryan [Fri, 10 Aug 2012 08:49:22 +0000 (10:49 +0200)]
curl.1: fix more consistent wording

"If this option is used several times, the last one will be used."
uniformity

12 years agossh: use the libssh2 agent API conditionally
Daniel Stenberg [Fri, 10 Aug 2012 06:57:27 +0000 (08:57 +0200)]
ssh: use the libssh2 agent API conditionally

Commit e351972bc89aa4c brought in the ssh agent support but some uses of
the libssh2 agent API was done unconditionally which wasn't good enough
since that API hasn't always been present.

12 years agowhite space fix: shorten long line
Daniel Stenberg [Fri, 10 Aug 2012 06:54:29 +0000 (08:54 +0200)]
white space fix: shorten long line

... to please checksrc.pl

12 years agodocs: update the links to cipher-suites supported by NSS
Kamil Dudka [Thu, 9 Aug 2012 12:08:11 +0000 (14:08 +0200)]
docs: update the links to cipher-suites supported by NSS

... and make the list of cipher-suites in nss.c readable by humans.

Bug: http://curl.haxx.se/mail/archive-2012-08/0016.html

12 years agonss: do not print misleading NSS error codes
Kamil Dudka [Thu, 9 Aug 2012 07:40:00 +0000 (09:40 +0200)]
nss: do not print misleading NSS error codes

12 years agoRELEASE-NOTES: synced with 0774386b23
Daniel Stenberg [Wed, 8 Aug 2012 21:19:05 +0000 (23:19 +0200)]
RELEASE-NOTES: synced with 0774386b23

5 more bug fixes, one change, 6 contributors

12 years agodocs: mention CURLSSH_AUTH_AGENT
Armel Asselin [Fri, 16 Mar 2012 21:40:39 +0000 (22:40 +0100)]
docs: mention CURLSSH_AUTH_AGENT

12 years agoSSH: added agent based authentication
Armel Asselin [Fri, 9 Mar 2012 16:24:42 +0000 (17:24 +0100)]
SSH: added agent based authentication

CURLSSH_AUTH_AGENT is a new auth type for SSH

12 years agobump version to 7.28.0
Daniel Stenberg [Wed, 8 Aug 2012 21:01:34 +0000 (23:01 +0200)]
bump version to 7.28.0

I am about to merge the first patch that adds changes into the pending
release, and thus we bump the minor number.

12 years agoRELEASE-NOTES: added missing link
Daniel Stenberg [Wed, 8 Aug 2012 21:01:14 +0000 (23:01 +0200)]
RELEASE-NOTES: added missing link

12 years agocurl_version: fixed Value stored to 'len' is never read
Daniel Stenberg [Wed, 8 Aug 2012 12:58:09 +0000 (14:58 +0200)]
curl_version: fixed Value stored to 'len' is never read

Fixed this (harmless) clang-analyzer warning. Also fixed the source
indentation level.

12 years agoTODO-RELEASE: the (nil) bug is fixed
Daniel Stenberg [Wed, 8 Aug 2012 12:54:38 +0000 (14:54 +0200)]
TODO-RELEASE: the (nil) bug is fixed

12 years agoadd_next_timeout: minor restructure of code
Daniel Stenberg [Wed, 8 Aug 2012 12:50:32 +0000 (14:50 +0200)]
add_next_timeout: minor restructure of code

By reading the ->head pointer and using that instead of the ->size
number to figure out if there's a list remaining we avoid the (false
positive) clang-analyzer warning that we might dereference of a null
pointer.

12 years agoverbose messages: fixed output of hostnames in re-used connections
Daniel Stenberg [Wed, 8 Aug 2012 11:49:35 +0000 (13:49 +0200)]
verbose messages: fixed output of hostnames in re-used connections

I suspect this is a regression introduced in commit 207cf150, included
since 7.24.0.

Avoid showing '(nil)' as hostname in verbose output by making sure the
hostname fixup function is called early enough to set the pointers that
are used for this. The name data is set again for each request even for
re-used connections to handle multiple hostnames over the same
connection (like with proxy) or that the casing etc of the host name is
changed between requests (which has proven to be important at least once
in the past).

Test1011 was modified to use a redirect with a re-used a connection
since it then showed the bug and now lo longer does. There's currently
no easy way to have the test suite detect 'nil' texts in verbose ouputs
so no tests will detect if this problem gets reintroduced.

Bug: http://curl.haxx.se/mail/lib-2012-07/0111.html
Reported by: Gisle Vanem

12 years agometalink: Un-broke the build when building --with-darwinssl
Nick Zitzmann [Tue, 7 Aug 2012 23:08:54 +0000 (17:08 -0600)]
metalink: Un-broke the build when building --with-darwinssl

12 years agoFix some compiler warnings.
Guenter Knauf [Wed, 8 Aug 2012 03:03:16 +0000 (05:03 +0200)]
Fix some compiler warnings.

12 years agoTODO-RELEASE: two bugs fixed
Daniel Stenberg [Tue, 7 Aug 2012 22:04:00 +0000 (00:04 +0200)]
TODO-RELEASE: two bugs fixed

These are now addressed:

323 - patch - select.c / Curl_socket_check() interrupted

325 - Avoid leak of local device string when reusing connection

12 years agocurl.1: minor format fix for --data-ascii
Daniel Stenberg [Tue, 7 Aug 2012 22:03:30 +0000 (00:03 +0200)]
curl.1: minor format fix for --data-ascii

... and removal of trailing whitespace on a single line

12 years agocurl man page cleanup
Ant Bryan [Tue, 7 Aug 2012 17:15:06 +0000 (13:15 -0400)]
curl man page cleanup

12 years agoAvoid leak of local device string when reusing connection
Mike Crowe [Tue, 17 Jul 2012 16:43:49 +0000 (18:43 +0200)]
Avoid leak of local device string when reusing connection

Ensure that the copy of the CURLOPT_INTERFACE string is freed if we
decide we can reuse an existing connection.

12 years agoCurl_socket_check: fix timeout return value for select users
Daniel Stenberg [Tue, 7 Aug 2012 21:30:05 +0000 (23:30 +0200)]
Curl_socket_check: fix timeout return value for select users

This is the same fix applied for the conditional code that uses select()
that was already done for the poll specific code in commit
b61e8b81f5038.