platform/upstream/curl.git
10 years agognutls: don't use deprecated type names anymore
Alessandro Ghedini [Tue, 29 Apr 2014 12:13:52 +0000 (14:13 +0200)]
gnutls: don't use deprecated type names anymore

10 years agoselect: with winsock, avoid passing unsupported arguments to select()
Brad Spencer [Tue, 27 May 2014 21:58:28 +0000 (23:58 +0200)]
select: with winsock, avoid passing unsupported arguments to select()

"Any two of the parameters, readfds, writefds, or exceptfds, can be
given as null. At least one must be non-null, and any non-null
descriptor set must contain at least one handle to a socket."

http://msdn.microsoft.com/en-ca/library/windows/desktop/ms740141(v=vs.85).aspx

When using select(), cURL doesn't adhere to this (WinSock-specific)
rule, and can ask to monitor empty fd_sets, which leads to select()
returning WSAEINVAL (i.e. EINVAL) and connections failing in mysterious
ways as a result (at least when using the curl_multi_socket_action()
interface).

Bug: http://curl.haxx.se/mail/lib-2014-05/0278.html

10 years agourl-parser: only use if_nametoindex if detected by configure
Daniel Stenberg [Mon, 26 May 2014 20:10:15 +0000 (22:10 +0200)]
url-parser: only use if_nametoindex if detected by configure

The previous #ifdef detection wasn't good enough.

Bug: http://curl.haxx.se/mail/lib-2014-05/0260.html
Reported-by: Chris Young
10 years agocurl_version_info.3: returns a pointer to a static struct
Daniel Stenberg [Mon, 26 May 2014 09:53:49 +0000 (11:53 +0200)]
curl_version_info.3: returns a pointer to a static struct

And clarify that age 3 means 7.16.1 or later.

10 years agopolarssl: add ALPN support
Fabian Frank [Mon, 19 May 2014 09:12:11 +0000 (02:12 -0700)]
polarssl: add ALPN support

PolarSSL added ALPN support in their 1.3.6 release.

See:
https://polarssl.org/tech-updates/releases/polarssl-1.3.6-released

10 years agocurl_easy_reset: reset the URL
Daniel Stenberg [Sat, 24 May 2014 17:05:12 +0000 (19:05 +0200)]
curl_easy_reset: reset the URL

Make sure that the URL is reset and cleared.

Bug: http://curl.haxx.se/mail/lib-2014-05/0235.html
Reported-by: Jonathan Cardoso Machado
10 years agoconfigure: fix the nghttp2 detection when not found
Daniel Stenberg [Sat, 24 May 2014 11:54:28 +0000 (13:54 +0200)]
configure: fix the nghttp2 detection when not found

10 years agoconfigure: detect nghttp2 by default
Daniel Stenberg [Thu, 22 May 2014 06:56:02 +0000 (08:56 +0200)]
configure: detect nghttp2 by default

10 years agoopenssl: Fix uninitialized variable use in NPN callback
Tatsuhiro Tsujikawa [Wed, 21 May 2014 14:34:55 +0000 (23:34 +0900)]
openssl: Fix uninitialized variable use in NPN callback

OpenSSL passes out and outlen variable uninitialized to
select_next_proto_cb callback function.  If the callback function
returns SSL_TLSEXT_ERR_OK, the caller assumes the callback filled
values in out and outlen and processes as such.  Previously, if there
is no overlap in protocol lists, curl code does not fill any values in
these variables and returns SSL_TLSEXT_ERR_OK, which means we are
triggering undefined behavior.  valgrind warns this.

This patch fixes this issue by fallback to HTTP/1.1 if there is no
overlap.

10 years agocurl.1: clarify that -u can't specify a user with colon
Daniel Stenberg [Fri, 23 May 2014 12:33:43 +0000 (14:33 +0200)]
curl.1: clarify that -u can't specify a user with colon

10 years agoREADME: Added Test Suite to the TODO list
Steve Holme [Thu, 22 May 2014 22:08:36 +0000 (23:08 +0100)]
README: Added Test Suite to the TODO list

10 years agobuild: Use CURLX_* file lists for Visual Studio curl tool project generation
Steve Holme [Thu, 22 May 2014 22:05:22 +0000 (23:05 +0100)]
build: Use CURLX_* file lists for Visual Studio curl tool project generation

10 years agotool_getparam.c: Fixed compilation warnings
Steve Holme [Sun, 23 Mar 2014 12:46:54 +0000 (12:46 +0000)]
tool_getparam.c: Fixed compilation warnings

There is an implicit conversion from "unsigned long" to "long"

10 years agoRELEASE-NOTES: Synced with f634355868
Steve Holme [Thu, 22 May 2014 19:31:31 +0000 (20:31 +0100)]
RELEASE-NOTES: Synced with f634355868

10 years agohttp: Fix a compiler warning when http2 support is disabled
Dan Fandrich [Thu, 22 May 2014 06:38:26 +0000 (08:38 +0200)]
http: Fix a compiler warning when http2 support is disabled

10 years agobuild: Fixed incorrect reference to curl_setup.h in Visual Studio files
Steve Holme [Thu, 22 May 2014 06:02:17 +0000 (07:02 +0100)]
build: Fixed incorrect reference to curl_setup.h in Visual Studio files

Fixed a copy / paste error from my 2011 project files.

10 years agodarwinssl: fix lint & build warnings in the previous commit
Nick Zitzmann [Thu, 22 May 2014 00:21:15 +0000 (19:21 -0500)]
darwinssl: fix lint & build warnings in the previous commit

10 years agoAdd support for --cacert in DarwinSSL.
Vilmos Nebehaj [Thu, 17 Apr 2014 14:03:05 +0000 (07:03 -0700)]
Add support for --cacert in DarwinSSL.

Security Framework on OS X makes it possible to supply extra anchor (CA)
certificates via the Certificate, Key, and Trust Services API. This
commit makes the '--cacert' option work using this API.

More information:

https://developer.apple.com/library/mac/documentation/security/Reference/certifkeytrustservices/Reference/reference.html

The HTTPS tests now pass on OS X except 314, which requires the '--crl'
option to work.

10 years agohttp.c: Fixed compilation warning
Steve Holme [Wed, 21 May 2014 23:15:45 +0000 (00:15 +0100)]
http.c: Fixed compilation warning

warning: suggest braces around empty body in an 'else' statement

10 years agobits.close: Fixed compilation warning
Steve Holme [Wed, 21 May 2014 23:09:11 +0000 (00:09 +0100)]
bits.close: Fixed compilation warning

warning: implicit declaration of function 'connclose'

10 years agobits.close: introduce connection close tracking
Daniel Stenberg [Tue, 20 May 2014 08:32:23 +0000 (10:32 +0200)]
bits.close: introduce connection close tracking

Make all code use connclose() and connkeep() when changing the "close
state" for a connection. These two macros take a string argument with an
explanation, and debug builds of curl will include that in the debug
output. Helps tracking connection re-use/close issues.

10 years agoMakefile.inc: Added curlx headers to assist Visual Studio project generation
Steve Holme [Wed, 21 May 2014 21:57:02 +0000 (22:57 +0100)]
Makefile.inc: Added curlx headers to assist Visual Studio project generation

10 years agobuild: Renamed CURLX_ONES file list definition to CURLX_CFILES
Steve Holme [Wed, 21 May 2014 21:51:03 +0000 (22:51 +0100)]
build: Renamed CURLX_ONES file list definition to CURLX_CFILES

Renamed the CURLX_ONES file list definition in order to a) try and be
consistent with other file lists and b) to allow for the addition of
the curlx header files, which will assist with Visual Studio project
files generation rather than hard coding those files.

10 years agobump: Start working on the next release
Steve Holme [Wed, 21 May 2014 21:42:24 +0000 (22:42 +0100)]
bump: Start working on the next release

10 years agoTHANKS: 18 new contributors for 7.37.0
Daniel Stenberg [Tue, 20 May 2014 21:42:47 +0000 (23:42 +0200)]
THANKS: 18 new contributors for 7.37.0

10 years agoRELEASE-NOTES: synced with 85f4075bdbf3
Daniel Stenberg [Tue, 20 May 2014 21:10:58 +0000 (23:10 +0200)]
RELEASE-NOTES: synced with 85f4075bdbf3

Possibly the final update before release...

10 years agoREADME: Added some outstanding tasks to the TODO list
Steve Holme [Tue, 20 May 2014 19:01:26 +0000 (20:01 +0100)]
README: Added some outstanding tasks to the TODO list

Added a couple of outstanding tasks to the TODO section that we didn't
get time to do before the release.

10 years agohttp2: make connection re-use work
Daniel Stenberg [Tue, 20 May 2014 14:50:24 +0000 (16:50 +0200)]
http2: make connection re-use work

Http2 connections would wrongly get closed after each individual
request.

Co-authored-by: Tatsuhiro Tsujikawa
Bug: http://curl.haxx.se/bug/view.cgi?id=1374

10 years agoALPN: fix typo in http/1.1 identifier
Fabian Frank [Tue, 20 May 2014 05:36:31 +0000 (22:36 -0700)]
ALPN: fix typo in http/1.1 identifier

According to https://tools.ietf.org/html/draft-ietf-tls-applayerprotoneg-05
it is "http/1.1" and not "http/1.0".

10 years agobuild-openssl.bat: Added check for OpenSSL source directory
Steve Holme [Tue, 20 May 2014 06:09:57 +0000 (07:09 +0100)]
build-openssl.bat: Added check for OpenSSL source directory

10 years agobuild-openssl.bat: Added default source directory when not specified
Steve Holme [Tue, 20 May 2014 06:01:22 +0000 (07:01 +0100)]
build-openssl.bat: Added default source directory when not specified

Added a default source directory so the user doesn't have to specify
one - the same as that, which the Visual Studio project files expect
the OpenSSL dependencies to be in.

10 years agoMakefile.am: Fixed missing / in VC10+ project file generation
Steve Holme [Mon, 19 May 2014 22:45:54 +0000 (23:45 +0100)]
Makefile.am: Fixed missing / in VC10+ project file generation

10 years agoINSTALL: Updated MSVC 6 caveats
Steve Holme [Sun, 18 May 2014 21:57:51 +0000 (22:57 +0100)]
INSTALL: Updated MSVC 6 caveats

To use an up to date download link as well as remove duplicate
information.

10 years agoINSTALL: Updated for new Visual Studio project files
Steve Holme [Sun, 18 May 2014 21:50:41 +0000 (22:50 +0100)]
INSTALL: Updated for new Visual Studio project files

10 years agobuild: Slight rename of new LIB_* makefile file variables
Steve Holme [Sun, 18 May 2014 20:43:40 +0000 (21:43 +0100)]
build: Slight rename of new LIB_* makefile file variables

In order to try and be consistent between curl and libcurl renamed the
recently introduced LIB_* makefile file variables.

10 years agobuild: Removed old Visual Studio project files
Steve Holme [Sun, 18 May 2014 20:25:53 +0000 (21:25 +0100)]
build: Removed old Visual Studio project files

10 years agomaketgz: two more CRLF
Daniel Stenberg [Sun, 18 May 2014 17:04:32 +0000 (19:04 +0200)]
maketgz: two more CRLF

grrr, missed them in my previous fix

10 years agotest1014: GSS-API is only in curl-config. not in curl
Daniel Stenberg [Sun, 18 May 2014 15:07:29 +0000 (17:07 +0200)]
test1014: GSS-API is only in curl-config. not in curl

Follow-up to commit 121bcfee5d1. curl-config --features now lists
GSS-API but it is not a listed feature in curl -V. This should probably
be synchronized.

10 years agotest1134: verify CREDSPERREQUEST for HTTP
Daniel Stenberg [Sun, 18 May 2014 14:55:03 +0000 (16:55 +0200)]
test1134: verify CREDSPERREQUEST for HTTP

Verifies that the change in 68f0166a92 works as intended and that
different HTTP auth credentials to the same host still re-uses the
connection properly.

10 years agomaketgz: remove CRLF newlines
Daniel Stenberg [Sun, 18 May 2014 10:51:24 +0000 (12:51 +0200)]
maketgz: remove CRLF newlines

10 years agoMakefile.am: Corrected a couple of grammar errors
Steve Holme [Sat, 17 May 2014 23:09:06 +0000 (00:09 +0100)]
Makefile.am: Corrected a couple of grammar errors

10 years agoMakefile.am: Added new Visual Studio project file generation for curl tool
Steve Holme [Sat, 17 May 2014 23:05:55 +0000 (00:05 +0100)]
Makefile.am: Added new Visual Studio project file generation for curl tool

10 years agoMakefile.inc: Added resource file to assist Visual Studio project generation
Steve Holme [Sat, 17 May 2014 22:33:32 +0000 (23:33 +0100)]
Makefile.inc: Added resource file to assist Visual Studio project generation

10 years agomaketgz: run make vc-ide before make dist
Daniel Stenberg [Sat, 17 May 2014 15:03:29 +0000 (17:03 +0200)]
maketgz: run make vc-ide before make dist

To get the VC project files generated before packaging!

10 years agoMakefile.am: Added new Visual Studio project file generation for libcurl
Steve Holme [Sat, 17 May 2014 14:43:12 +0000 (15:43 +0100)]
Makefile.am: Added new Visual Studio project file generation for libcurl

10 years agoMakefile.am: Removed old Visual Studio project file generation
Steve Holme [Sat, 17 May 2014 13:10:45 +0000 (14:10 +0100)]
Makefile.am: Removed old Visual Studio project file generation

10 years agoRELEASE-NOTES: synced with 831f6dd1d986c9
Daniel Stenberg [Sat, 17 May 2014 20:59:43 +0000 (22:59 +0200)]
RELEASE-NOTES: synced with 831f6dd1d986c9

10 years agobuild: Fixed another tabulation issue in the Visual Studio file generator
Steve Holme [Sat, 17 May 2014 12:32:22 +0000 (13:32 +0100)]
build: Fixed another tabulation issue in the Visual Studio file generator

10 years agoaxtls: Fixed too long source line
Dan Fandrich [Sat, 17 May 2014 07:31:30 +0000 (09:31 +0200)]
axtls: Fixed too long source line

10 years agoconfigure: add GSS-API to supported features
Daniel Stenberg [Sat, 17 May 2014 08:19:46 +0000 (10:19 +0200)]
configure: add GSS-API to supported features

Bug: http://curl.haxx.se/bug/view.cgi?id=1344
Reported-by: Michael Osipov
10 years agoconfigure: add SPNEGO to supported features
Daniel Stenberg [Sat, 17 May 2014 08:17:35 +0000 (10:17 +0200)]
configure: add SPNEGO to supported features

Bug: http://curl.haxx.se/bug/view.cgi?id=1343
Reported-by: Michael Osipov
10 years agoaxtls: Add a TODO to a potential blocking call with no timeout
Dan Fandrich [Fri, 16 May 2014 21:27:07 +0000 (23:27 +0200)]
axtls: Add a TODO to a potential blocking call with no timeout

10 years agocurl_easy_getinfo.3: clarify CURLINFO_SIZE_DOWNLOAD
Daniel Stenberg [Fri, 16 May 2014 07:28:28 +0000 (09:28 +0200)]
curl_easy_getinfo.3: clarify CURLINFO_SIZE_DOWNLOAD

It counts "body" data only, no meta data, no headers.

10 years agocurl_easy_setopt.3: prefer XFERINFOFUNCTION to PROGRESSFUNCTION
Daniel Stenberg [Fri, 16 May 2014 06:51:38 +0000 (08:51 +0200)]
curl_easy_setopt.3: prefer XFERINFOFUNCTION to PROGRESSFUNCTION

10 years agoHTTP: CREDSPERREQUEST is for HTTP too
Daniel Stenberg [Thu, 15 May 2014 21:28:31 +0000 (23:28 +0200)]
HTTP: CREDSPERREQUEST is for HTTP too

Commit 517b06d657ace (in 7.36.0) that brought the CREDSPERREQUEST flag
only set it for HTTPS, making HTTP less good at doing connection re-use
than it should be. Now set it for HTTP as well.

Simple test case

"curl -v -u foo:bar localhost --next -u bar:foo localhos"

Bug: http://curl.haxx.se/mail/lib-2014-05/0127.html
Reported-by: Kamil Dudka
10 years agoRELEASE-NOTES: synced with 53a5b95c21586
Daniel Stenberg [Thu, 15 May 2014 20:15:39 +0000 (22:15 +0200)]
RELEASE-NOTES: synced with 53a5b95c21586

10 years agoCURLINFO_SSL_VERIFYRESULT: assign at first connect call
Daniel Stenberg [Sun, 4 May 2014 21:53:38 +0000 (23:53 +0200)]
CURLINFO_SSL_VERIFYRESULT: assign at first connect call

The variable wasn't assigned at all until step3 which would lead to a
failed connect never assigning the variable and thus returning a bad
value.

Reported-by: Larry Lin
Bug: http://curl.haxx.se/mail/lib-2014-04/0203.html

10 years agotimers: fix timer regression involving redirects / reconnects
Daniel Stenberg [Thu, 15 May 2014 18:43:32 +0000 (20:43 +0200)]
timers: fix timer regression involving redirects / reconnects

In commit 0b3750b5c23c25f (released in 7.36.0) we fixed a timeout issue
but instead broke the timings.

To fix this, I introduce a new timestamp to use for the timeouts and
restored the previous timestamp and timestamp position so that the old
timer functionality is restored.

In addition to that, that change also broke connection timeouts for when
more than one connect was used (as it would then count the total time
from the first connect and not for the most recent one). Now
Curl_timeleft() has been modified so that it checks against different
start times depending on which timeout it checks.

Test 1303 is updated accordingly.

Bug: http://curl.haxx.se/mail/lib-2014-05/0147.html
Reported-by: Ryan Braud
10 years agodarwinssl: Updated copyright following recent changes
Steve Holme [Thu, 15 May 2014 17:38:38 +0000 (18:38 +0100)]
darwinssl: Updated copyright following recent changes

10 years agodarwinssl: fix potential crash when attempting to copy an identity
Nick Zitzmann [Wed, 14 May 2014 22:48:14 +0000 (17:48 -0500)]
darwinssl: fix potential crash when attempting to copy an identity
from a P12 file

This could've happened if SecPKCS12Import() returned noErr _and_ no
identity.

10 years agoRELEASE-NOTES: Synced with 52d16c84d2
Steve Holme [Mon, 12 May 2014 22:09:19 +0000 (23:09 +0100)]
RELEASE-NOTES: Synced with 52d16c84d2

10 years agoopenssl: unbreak PKCS12 support
Daniel Stenberg [Mon, 12 May 2014 11:04:27 +0000 (13:04 +0200)]
openssl: unbreak PKCS12 support

Regression introduced in ce362e8eb9c (7.31.0)

Bug: http://curl.haxx.se/bug/view.cgi?id=1371
Reported-by: Dmitry
10 years agoMakefile.inc: Added resource file to assist Visual Studio project generation
Steve Holme [Sun, 11 May 2014 19:52:52 +0000 (20:52 +0100)]
Makefile.inc: Added resource file to assist Visual Studio project generation

10 years agobuild: Fixed some tabulation issues in the Visual Studio file generator
Steve Holme [Sun, 11 May 2014 17:20:52 +0000 (18:20 +0100)]
build: Fixed some tabulation issues in the Visual Studio file generator

10 years agotests: Fixed up DIGEST-MD5 tests following commit 8342b6e1dc
Steve Holme [Sun, 11 May 2014 15:20:52 +0000 (16:20 +0100)]
tests: Fixed up DIGEST-MD5 tests following commit 8342b6e1dc

10 years agosasl: Fixed missing qop in the client's challenge-response message
Steve Holme [Sun, 11 May 2014 14:03:16 +0000 (15:03 +0100)]
sasl: Fixed missing qop in the client's challenge-response message

Whilst the qop directive isn't required to be present in a client's
response, as servers should assume a qop of "auth" if it isn't
specified, some may return authentication failure if it is missing.

10 years agotool_operate.c: Fixed compilation warning
Steve Holme [Sat, 10 May 2014 08:20:49 +0000 (09:20 +0100)]
tool_operate.c: Fixed compilation warning

An enumerated type is mixed with another type.

10 years agoMakefile.inc: Separated the lib and lib/vtls source file variables
Steve Holme [Fri, 9 May 2014 21:27:40 +0000 (22:27 +0100)]
Makefile.inc: Separated the lib and lib/vtls source file variables

To cater for the automatic generation of the new Visual Studio project
files, moved the lib file list into a separated variable so that lib
and lib/vtls can be referenced independently.

10 years agoRELEASE-NOTES: Synced with 0ab2c444b5
Steve Holme [Fri, 9 May 2014 20:24:47 +0000 (21:24 +0100)]
RELEASE-NOTES: Synced with 0ab2c444b5

10 years agoMakefile.b32: Fixed for vtls changes
Steve Holme [Fri, 9 May 2014 20:09:51 +0000 (21:09 +0100)]
Makefile.b32: Fixed for vtls changes

Follow up fix to commits a47c142a8811e8066ef9 and 92b9ae5c5d.

Bug: http://curl.haxx.se/mail/lib-2014-05/0025.html
Reported and assisted by: Jon Torrey

10 years agolib1506: make sure the transfers are not within the same ms
Daniel Stenberg [Fri, 9 May 2014 14:48:46 +0000 (16:48 +0200)]
lib1506: make sure the transfers are not within the same ms

Just to make sure the test is properly repeatable.

Bug: http://curl.haxx.se/mail/lib-2014-05/0081.html
Reported-by: Henrik
10 years agolibtests: add a wait_ms() function
Daniel Stenberg [Fri, 9 May 2014 14:48:11 +0000 (16:48 +0200)]
libtests: add a wait_ms() function

This allows a libcurl test to portably sleep for a given number of
milliseconds.

10 years agotool_operate.c: Fixed TAB is white space from commit 5b8ae0a985
Steve Holme [Fri, 9 May 2014 12:29:23 +0000 (13:29 +0100)]
tool_operate.c: Fixed TAB is white space from commit 5b8ae0a985

10 years agotool_urlglob.c: Fixed compilation warning
Steve Holme [Fri, 9 May 2014 12:15:59 +0000 (13:15 +0100)]
tool_urlglob.c: Fixed compilation warning

An enumerated type is mixed with another type.

10 years agotool_operate.c: Fixed compilation warnings
Steve Holme [Fri, 9 May 2014 12:13:31 +0000 (13:13 +0100)]
tool_operate.c: Fixed compilation warnings

An enumerated type is mixed with another type.

10 years agogetinfo.c: Fixed compilation warning
Steve Holme [Fri, 9 May 2014 11:59:06 +0000 (12:59 +0100)]
getinfo.c: Fixed compilation warning

The indicated statement is not reachable.

10 years agoCONTRIBUTE: mention our Bug/Reported-by commit style
Daniel Stenberg [Fri, 9 May 2014 11:49:00 +0000 (13:49 +0200)]
CONTRIBUTE: mention our Bug/Reported-by commit style

10 years agohttp: avoid auth failure on a duplicated header
Kamil Dudka [Mon, 5 May 2014 12:49:30 +0000 (14:49 +0200)]
http: avoid auth failure on a duplicated header

... 'WWW-Authenticate: Negotiate' received from server

Reported by: David Woodhouse
Bug: https://bugzilla.redhat.com/1093348

10 years agocacertinmem: fix memory leak
Daniel Stenberg [Fri, 9 May 2014 11:33:21 +0000 (13:33 +0200)]
cacertinmem: fix memory leak

While "just" an example it still isn't nice to leak memory.

Bug: http://curl.haxx.se/bug/view.cgi?id=1368
Fixed-by: Marko
10 years agoTODO: firefox will soon support SSL (HTTPS) to proxy
Daniel Stenberg [Fri, 9 May 2014 09:36:11 +0000 (11:36 +0200)]
TODO: firefox will soon support SSL (HTTPS) to proxy

10 years agotest87: Get rid of extraneous square brackets in tag
Dan Fandrich [Fri, 9 May 2014 09:04:30 +0000 (11:04 +0200)]
test87: Get rid of extraneous square brackets in tag

10 years agomk-ca-bundle: added -p
Patrick Watson [Thu, 8 May 2014 09:37:45 +0000 (11:37 +0200)]
mk-ca-bundle: added -p

-p takes a list of Mozilla trust purposes and levels for certificates to
include in output.  Takes the form of a comma separated list of
purposes, a colon, and a comma separated list of levels.

10 years agoFAQ: Added 5.18 Does libcurl use threads?
Daniel Stenberg [Thu, 8 May 2014 07:30:35 +0000 (09:30 +0200)]
FAQ: Added 5.18 Does libcurl use threads?

10 years agoRELEASE-NOTES: Added contributor
Dan Fandrich [Wed, 7 May 2014 20:44:54 +0000 (22:44 +0200)]
RELEASE-NOTES: Added contributor

10 years agoconfigure: Don't set LD_LIBRARY_PATH when cross-compiling
Aaro Koskinen [Wed, 7 May 2014 18:29:47 +0000 (21:29 +0300)]
configure: Don't set LD_LIBRARY_PATH when cross-compiling

Most of LD_LIBRARY_PATH adjustments are already guarded, but not all.

The patch fixes cross-compilation failure when libidn is present.

10 years agohttp2: Compile with latest nghttp2
Tatsuhiro Tsujikawa [Wed, 7 May 2014 15:20:05 +0000 (00:20 +0900)]
http2: Compile with latest nghttp2

Now nghttp2_submit_request returns assigned stream ID, we don't have
to check stream ID using before_stream_send_callback.  The
adjust_priority_callback was removed.

10 years agocurl.1: Added missing --login-options option
Steve Holme [Wed, 7 May 2014 18:45:16 +0000 (19:45 +0100)]
curl.1: Added missing --login-options option

...and removed ;OPTIONS from --user as that functionality was removed
in 7.34.0.

10 years agotool_help: Fixed missing --login-options option
Steve Holme [Wed, 7 May 2014 16:25:40 +0000 (17:25 +0100)]
tool_help: Fixed missing --login-options option

...and removed ;OPTIONS from --user as that functionality was removed
in 7.34.0.

10 years agourl.c: Fixed compilation warning/error
Steve Holme [Wed, 7 May 2014 09:55:01 +0000 (10:55 +0100)]
url.c: Fixed compilation warning/error

Depending on compiler line 3505 could generate the following warning or
error:

* warning: ISO C90 forbids mixed declarations and code
* A declaration cannot appear after an executable statement in a block
* error C2275: 'size_t' : illegal use of this type as an expression

10 years agoTODO: Fixed some spelling mistakes
Steve Holme [Tue, 6 May 2014 21:23:50 +0000 (22:23 +0100)]
TODO: Fixed some spelling mistakes

10 years agoTODO: Add support for concurrent connections in ftpserver.pl
Steve Holme [Tue, 6 May 2014 21:16:03 +0000 (22:16 +0100)]
TODO: Add support for concurrent connections in ftpserver.pl

10 years agobuild: Fixed file format version number in VC12 solution files
Steve Holme [Tue, 6 May 2014 21:01:42 +0000 (22:01 +0100)]
build: Fixed file format version number in VC12 solution files

Unlike previous versions of Visual Studio the VC12 solution file format
does not increment the format version number, but instead, only changes
the version comment text.

This incorrectly set version number would cause problems for any third
party piece of software that would read the solution file expecting the
version number to be 12.00 and found it to be 13.00, such as some build
accelerators.

Verified against a freshly created solution file which was generated
with VC12.

10 years agobuild-openssl.bat: Corrected use of angled brackets in help output
Ivo Bellin Salarin [Tue, 6 May 2014 07:30:44 +0000 (09:30 +0200)]
build-openssl.bat: Corrected use of angled brackets in help output

Angled brackets were used in the help output to indicate that the
compiler and platform arguments are mandatory. Unfortunately this
caused a "< was unexpected at this time" error as the characters are
interpreted as re-direction characters when not escaped.

10 years agoRELEASE-NOTES: changed encoding to UTF-8
Dan Fandrich [Tue, 6 May 2014 12:08:13 +0000 (14:08 +0200)]
RELEASE-NOTES: changed encoding to UTF-8

10 years agoRELEASE-NOTES: synced with 5de8d84098db1bd2
Daniel Stenberg [Tue, 6 May 2014 08:39:31 +0000 (10:39 +0200)]
RELEASE-NOTES: synced with 5de8d84098db1bd2

10 years agofix_hostname: strip off a single trailing dot from host name
Daniel Stenberg [Mon, 5 May 2014 11:47:52 +0000 (13:47 +0200)]
fix_hostname: strip off a single trailing dot from host name

Primarily for SNI, we need the host name without a trailing dot.
"https://www.example.com." resolves fine but fails on SNI unless the dot
is removed.

Reported-by: Leon Winter
Bug: http://curl.haxx.se/mail/lib-2014-04/0161.html

10 years agocurl: bail on cookie use when built with disabled cookies
Daniel Stenberg [Mon, 5 May 2014 12:16:43 +0000 (14:16 +0200)]
curl: bail on cookie use when built with disabled cookies

10 years agoEnable poll on darwin13
Daniel Johnson [Tue, 6 May 2014 03:08:26 +0000 (05:08 +0200)]
Enable poll on darwin13

Poll has long been broken on Mac OS X. Starting with 10.9 (darwin13) it
now works correctly so this patch enables it there.

10 years agocurl_easy_setopt.3: added the proto for CURLOPT_SSH_KNOWNHOSTS
Daniel Stenberg [Mon, 5 May 2014 14:00:43 +0000 (16:00 +0200)]
curl_easy_setopt.3: added the proto for CURLOPT_SSH_KNOWNHOSTS

10 years agotests: Use standard libtest return codes when relevant
Dan Fandrich [Mon, 5 May 2014 13:30:05 +0000 (15:30 +0200)]
tests: Use standard libtest return codes when relevant