platform/upstream/curl.git
10 years agosockfilt.c: clean up threaded approach and add documentation
Marc Hoersken [Tue, 22 Apr 2014 15:21:40 +0000 (17:21 +0200)]
sockfilt.c: clean up threaded approach and add documentation

10 years agosockfilt.c: zero initialize variable
Marc Hoersken [Tue, 22 Apr 2014 12:53:16 +0000 (14:53 +0200)]
sockfilt.c: zero initialize variable

10 years agosockfilt.c: fixed getting stuck waiting for MinGW stdin pipe
Marc Hoersken [Tue, 22 Apr 2014 12:52:33 +0000 (14:52 +0200)]
sockfilt.c: fixed getting stuck waiting for MinGW stdin pipe

10 years agoconfigure: use the nghttp2 path correctly with pkg-config
Daniel Stenberg [Mon, 21 Apr 2014 22:24:44 +0000 (00:24 +0200)]
configure: use the nghttp2 path correctly with pkg-config

When --with-nghttp2 was used (without a given path), the
PKG_CONFIG_LIBDIR varialbe could get clobbered and ruin a proper
detection of the library.

Reported-by: Dilyan Palauzov
Bug: http://curl.haxx.se/mail/lib-2014-04/0159.html

10 years agoconfigure: fix wrong comment
Dilyan Palauzov [Mon, 21 Apr 2014 18:12:20 +0000 (20:12 +0200)]
configure: fix wrong comment

copy and paste error

10 years agobuild: Fixed output name for Release builds in VC10 and VC11
Steve Holme [Mon, 21 Apr 2014 16:40:50 +0000 (17:40 +0100)]
build: Fixed output name for Release builds in VC10 and VC11

10 years agosockfilt.c: properly handle disk files, pipes and character input
Marc Hoersken [Sun, 20 Apr 2014 20:15:36 +0000 (22:15 +0200)]
sockfilt.c: properly handle disk files, pipes and character input

10 years agosockfilt.c: ignore non-key-events and continue waiting for input
Marc Hoersken [Sun, 20 Apr 2014 16:26:24 +0000 (18:26 +0200)]
sockfilt.c: ignore non-key-events and continue waiting for input

10 years agosockfilt.c: free memory in case of memory allocation errors
Marc Hoersken [Sun, 20 Apr 2014 16:22:28 +0000 (18:22 +0200)]
sockfilt.c: free memory in case of memory allocation errors

10 years agomulti.c: fix possible invalid memory access in case nfds overflows
Marc Hoersken [Sat, 19 Apr 2014 14:02:14 +0000 (16:02 +0200)]
multi.c: fix possible invalid memory access in case nfds overflows

ufds might not be allocated in case nfds overflows to zero while
extra_nfds is still non-zero. udfs is then accessed within the
extra_nfds-based for loop.

10 years agonetrc.c: fix multiple possible dereferences of null pointers
Marc Hoersken [Sat, 19 Apr 2014 14:00:43 +0000 (16:00 +0200)]
netrc.c: fix multiple possible dereferences of null pointers

10 years agoparsedate.c: check sscanf result before passing it to strlen
Marc Hoersken [Sat, 19 Apr 2014 13:47:07 +0000 (15:47 +0200)]
parsedate.c: check sscanf result before passing it to strlen

10 years agotelnet.c: check sscanf results before passing them to snprintf
Marc Hoersken [Sat, 19 Apr 2014 13:23:04 +0000 (15:23 +0200)]
telnet.c: check sscanf results before passing them to snprintf

10 years agotelnet.c: fix possible use of uninitialized variable
Marc Hoersken [Sat, 19 Apr 2014 13:18:19 +0000 (15:18 +0200)]
telnet.c: fix possible use of uninitialized variable

10 years agotelnet.c: fix possible use of non-null-terminated strings
Marc Hoersken [Sat, 19 Apr 2014 12:26:02 +0000 (14:26 +0200)]
telnet.c: fix possible use of non-null-terminated strings

10 years agourl.c: fix possible use of non-null-terminated string with strlen
Marc Hoersken [Sat, 19 Apr 2014 12:25:32 +0000 (14:25 +0200)]
url.c: fix possible use of non-null-terminated string with strlen

Follow up on b0e742544be22ede33206a597b22682e51e0c676

10 years agotool_writeout.c: initialize string pointer variable
Marc Hoersken [Fri, 18 Apr 2014 22:24:25 +0000 (00:24 +0200)]
tool_writeout.c: initialize string pointer variable

10 years agotool_formparse.c: fix possible use of non-null-terminated strings
Marc Hoersken [Fri, 18 Apr 2014 22:17:47 +0000 (00:17 +0200)]
tool_formparse.c: fix possible use of non-null-terminated strings

10 years agourl.c: fix possible use of non-null-terminated string with strlen
Marc Hoersken [Fri, 18 Apr 2014 22:17:21 +0000 (00:17 +0200)]
url.c: fix possible use of non-null-terminated string with strlen

10 years agoconnect.c: fix multiple possible dereferences of null pointers
Marc Hoersken [Fri, 18 Apr 2014 21:56:54 +0000 (23:56 +0200)]
connect.c: fix multiple possible dereferences of null pointers

In case the first address in the tempaddr array is NULL,
the code would previously dereference an unchecked null pointer.

10 years agotftp.c: fix possible dereference of null pointer
Marc Hoersken [Fri, 18 Apr 2014 21:53:48 +0000 (23:53 +0200)]
tftp.c: fix possible dereference of null pointer

10 years agotool_urlglob.c: added some comments to clarify for loop conditions
Marc Hoersken [Fri, 18 Apr 2014 21:28:26 +0000 (23:28 +0200)]
tool_urlglob.c: added some comments to clarify for loop conditions

I was tempted to change those to >= 0 until I saw that this is
actually a for loop that terminates once i underflows.

10 years agosocks_sspi.c: added pointer guards to FreeContextBuffer calls
Marc Hoersken [Fri, 18 Apr 2014 21:24:41 +0000 (23:24 +0200)]
socks_sspi.c: added pointer guards to FreeContextBuffer calls

The FreeContextBuffer SAL declaration does not declare the pointer
as optional, therefore it must not be NULL.

10 years agomd5.c: fix use of uninitialized variable
Marc Hoersken [Fri, 18 Apr 2014 20:59:25 +0000 (22:59 +0200)]
md5.c: fix use of uninitialized variable

10 years agocurl_schannel.c: added explicit cast of structure pointers
Marc Hoersken [Fri, 18 Apr 2014 20:38:42 +0000 (22:38 +0200)]
curl_schannel.c: added explicit cast of structure pointers

10 years agocurl_schannel.c: fix possible dereference of null pointer
Marc Hoersken [Fri, 18 Apr 2014 20:36:12 +0000 (22:36 +0200)]
curl_schannel.c: fix possible dereference of null pointer

10 years agoRELEASE-NOTES: Synced with 33e0cba8f1
Steve Holme [Fri, 18 Apr 2014 19:35:01 +0000 (20:35 +0100)]
RELEASE-NOTES: Synced with 33e0cba8f1

10 years agocurl_easy_setopt: Updated CURLOPT_URL to include IMAP PARTIAL FETCH example
Steve Holme [Fri, 18 Apr 2014 17:02:04 +0000 (18:02 +0100)]
curl_easy_setopt: Updated CURLOPT_URL to include IMAP PARTIAL FETCH example

10 years agoimap: Extended FETCH support to include PARTIAL URL specifier
Steve Holme [Fri, 18 Apr 2014 16:42:40 +0000 (17:42 +0100)]
imap: Extended FETCH support to include PARTIAL URL specifier

10 years agourl.c: Fixed typo in comment
Steve Holme [Fri, 18 Apr 2014 16:04:39 +0000 (17:04 +0100)]
url.c: Fixed typo in comment

10 years agocurl_easy_setopt: Updated CURLOPT_URL to include IMAP query string examples
Steve Holme [Fri, 18 Apr 2014 15:59:50 +0000 (16:59 +0100)]
curl_easy_setopt: Updated CURLOPT_URL to include IMAP query string examples

10 years agotest810: Updated to use new IMAP URL query string functionality
Steve Holme [Fri, 18 Apr 2014 15:50:38 +0000 (16:50 +0100)]
test810: Updated to use new IMAP URL query string functionality

10 years agoimap: Expanded mailbox SEARCH support to use URL query strings
Steve Holme [Fri, 18 Apr 2014 15:42:45 +0000 (16:42 +0100)]
imap: Expanded mailbox SEARCH support to use URL query strings

10 years agoimap: Added support for parsing URL query strings
Steve Holme [Fri, 18 Apr 2014 14:58:33 +0000 (15:58 +0100)]
imap: Added support for parsing URL query strings

Added support for parsing query strings from the URL as defined by
RFC-5092.

10 years agoimap: Introduced the SEARCH state
Steve Holme [Fri, 18 Apr 2014 14:43:04 +0000 (15:43 +0100)]
imap: Introduced the SEARCH state

10 years agoimap: Fixed untagged response detection when no data after command
Steve Holme [Fri, 18 Apr 2014 14:01:57 +0000 (15:01 +0100)]
imap: Fixed untagged response detection when no data after command

Should a command return untagged responses that contained no data then
the imap_matchresp() function would not detect them as valid responses,
as it wasn't taking the CRLF characters into account at the end of each
line.

10 years agobuild: Added Visual Studio 2012 (VC11) project files
Steve Holme [Fri, 18 Apr 2014 09:24:20 +0000 (10:24 +0100)]
build: Added Visual Studio 2012 (VC11) project files

Carrying on from commit 11025613b9 added VC11 project files which are
capable of supporting side-by-side compilation, 32-bit and 64-bit
builds as well as support for some of the third-party libraries curl
uses.

10 years agobuild: Corrected Visual Studio solutions for DLL Release x64
Steve Holme [Thu, 17 Apr 2014 19:58:48 +0000 (20:58 +0100)]
build: Corrected Visual Studio solutions for DLL Release x64

10 years agoREADME.http2: mention some alt-svc thoughts
Daniel Stenberg [Sat, 22 Mar 2014 16:07:31 +0000 (17:07 +0100)]
README.http2: mention some alt-svc thoughts

10 years agoMakefile.am: Missed separator in commit fbaa2f8660
Steve Holme [Wed, 16 Apr 2014 22:15:02 +0000 (23:15 +0100)]
Makefile.am: Missed separator in commit fbaa2f8660

10 years agobuild: Added Visual Studio 2010 (VC10) project files
Steve Holme [Wed, 16 Apr 2014 20:22:26 +0000 (21:22 +0100)]
build: Added Visual Studio 2010 (VC10) project files

Carrying on from commit 11025613b9 added VC10 project files which are
capable of supporting side-by-side compilation, 32-bit and 64-bit
builds as well as support for some of the third-party libraries curl
uses.

10 years agourl: only use if_nametoindex() if IFNAMSIZ is available
Dan Fandrich [Mon, 14 Apr 2014 06:02:06 +0000 (08:02 +0200)]
url: only use if_nametoindex() if IFNAMSIZ is available

10 years agosymbian: fixed typo in comment
Dan Fandrich [Wed, 9 Apr 2014 20:12:47 +0000 (22:12 +0200)]
symbian: fixed typo in comment

10 years agobuild: Added Visual Studio 2008 (VC9) project files
Steve Holme [Tue, 8 Apr 2014 23:01:51 +0000 (00:01 +0100)]
build: Added Visual Studio 2008 (VC9) project files

Carrying on from commit 11025613b9, added VC9 project files which are
capable of supporting side-by-side compilation, 32-bit and 64-bit
builds as well as support for some of the third-party libraries curl
uses.

10 years agosas: Added DIGEST-MD5 qop-option validation in native challange handling
Steve Holme [Tue, 8 Apr 2014 20:08:02 +0000 (21:08 +0100)]
sas: Added DIGEST-MD5 qop-option validation in native challange handling

Given that we presently support "auth" and not "auth-int" or "auth-conf"
for native challenge-response messages, added client side validation of
the quality-of-protection options from the server's challenge message.

10 years agodist: include the projects/ files in releases
Daniel Stenberg [Tue, 8 Apr 2014 08:17:03 +0000 (10:17 +0200)]
dist: include the projects/ files in releases

... the recent MSVC project files added by Steve Holme

10 years agostrerror: fix comment about vxworks' strerror_r buffer size
Daniel Stenberg [Sun, 6 Apr 2014 21:13:08 +0000 (23:13 +0200)]
strerror: fix comment about vxworks' strerror_r buffer size

Bug: http://curl.haxx.se/mail/lib-2014-04/0063.html
Reported-by: Jeroen Koekkoek
10 years agosasl: Added forward declaration of structures following recent changes
Steve Holme [Sun, 6 Apr 2014 16:09:16 +0000 (17:09 +0100)]
sasl: Added forward declaration of structures following recent changes

To avoid urldata.h being included from the header file or that the
source file has the correct include order as highlighted by one of
the auto builds recently.

10 years agoRELEASE-NOTES: Synced with 5cdb61abb2
Steve Holme [Sun, 6 Apr 2014 15:56:05 +0000 (16:56 +0100)]
RELEASE-NOTES: Synced with 5cdb61abb2

10 years agotests: Disabled DIGEST-MD5 tests when running with SSPI enabled
Steve Holme [Sun, 6 Apr 2014 15:32:05 +0000 (16:32 +0100)]
tests: Disabled DIGEST-MD5 tests when running with SSPI enabled

10 years agosasl: Fixed compilation warning
Steve Holme [Sun, 6 Apr 2014 15:11:17 +0000 (16:11 +0100)]
sasl: Fixed compilation warning

warning: no previous prototype for 'Curl_sasl_create_digest_md5_message'

10 years agosasl: Added curl_memory.h include as per test 1132
Steve Holme [Sun, 6 Apr 2014 15:09:19 +0000 (16:09 +0100)]
sasl: Added curl_memory.h include as per test 1132

10 years agosasl: Fixed compilation warning in SSPI builds
Steve Holme [Sun, 6 Apr 2014 13:21:46 +0000 (14:21 +0100)]
sasl: Fixed compilation warning in SSPI builds

warning: 'sasl_digest_get_key_value' defined but not used

10 years agosasl: Corrected missing free of decoded challenge message from 607883f13c
Steve Holme [Sun, 6 Apr 2014 13:10:18 +0000 (14:10 +0100)]
sasl: Corrected missing free of decoded challenge message from 607883f13c

10 years agosasl: Corrected add of Curl_sasl_decode_digest_md5_message() from 2c49e96092
Steve Holme [Sun, 6 Apr 2014 12:52:03 +0000 (13:52 +0100)]
sasl: Corrected add of Curl_sasl_decode_digest_md5_message() from 2c49e96092

10 years agosasl: Post DIGEST-MD5 SSPI code tidy up
Steve Holme [Sun, 6 Apr 2014 12:29:29 +0000 (13:29 +0100)]
sasl: Post DIGEST-MD5 SSPI code tidy up

* Added comments to SSPI NTLM message generation
* Added comments to native DIGEST-MD5 code
* Removed redundant identity pointer

10 years agosasl: Corrected pre-processor inclusion of SSPI based DIGEST-MD5 code
Steve Holme [Sun, 6 Apr 2014 11:46:53 +0000 (12:46 +0100)]
sasl: Corrected pre-processor inclusion of SSPI based DIGEST-MD5 code

When CURL_DISABLE_CRYPTO_AUTH is defined the DIGEST-MD5 code should not
be included, regardless of whether USE__WINDOWS_SSPI is defined or not.
This is indicated by the definition of USE_HTTP_NEGOTIATE and USE_NTLM
in curl_setup.h.

10 years agosasl: Added support for DIGEST-MD5 via Windows SSPI
Steve Holme [Sun, 6 Apr 2014 11:08:11 +0000 (12:08 +0100)]
sasl: Added support for DIGEST-MD5 via Windows SSPI

10 years agohttp_negotiate_sspi: Fixed compilation when USE_HTTP_NEGOTIATE not defined
Steve Holme [Sun, 6 Apr 2014 00:22:47 +0000 (01:22 +0100)]
http_negotiate_sspi: Fixed compilation when USE_HTTP_NEGOTIATE not defined

10 years agoMakefile.vc6: Added curl_sasl_sspi.c
Steve Holme [Sat, 5 Apr 2014 23:57:23 +0000 (00:57 +0100)]
Makefile.vc6: Added curl_sasl_sspi.c

10 years agoMakefile.vc6: Follow up fix to commit 45d3f00803
Steve Holme [Sat, 5 Apr 2014 23:53:47 +0000 (00:53 +0100)]
Makefile.vc6: Follow up fix to commit 45d3f00803

10 years agontlm: Moved the identity generation into shared SSPI code
Steve Holme [Wed, 2 Apr 2014 21:04:13 +0000 (22:04 +0100)]
ntlm: Moved the identity generation into shared SSPI code

10 years agosasl: Renamed SSPI module following short name clash
Steve Holme [Sat, 5 Apr 2014 23:16:30 +0000 (00:16 +0100)]
sasl: Renamed SSPI module following short name clash

10 years agosasl: Added initial stub functions for SSPI DIGEST-MD support
Steve Holme [Wed, 2 Apr 2014 20:21:12 +0000 (21:21 +0100)]
sasl: Added initial stub functions for SSPI DIGEST-MD support

10 years agosasl: Combined DIGEST-MD5 message decoding and generation
Steve Holme [Wed, 2 Apr 2014 19:53:43 +0000 (20:53 +0100)]
sasl: Combined DIGEST-MD5 message decoding and generation

10 years agoMakefile.vc6: added warnless.c to fix build
Marc Hoersken [Sat, 5 Apr 2014 19:45:39 +0000 (21:45 +0200)]
Makefile.vc6: added warnless.c to fix build

10 years agowinbuild: Updated the VC++ make instructions following commit 11025613b9
Steve Holme [Sat, 5 Apr 2014 17:48:48 +0000 (18:48 +0100)]
winbuild: Updated the VC++ make instructions following commit 11025613b9

* Added information regarding the February 2003 Platform SDK for VC6
* Updated the introduction to be similar to the IDE projects README

10 years agohttp2: Compile with current nghttp2, which supports h2-11
Tatsuhiro Tsujikawa [Sat, 5 Apr 2014 09:57:20 +0000 (18:57 +0900)]
http2: Compile with current nghttp2, which supports h2-11

10 years agowinbuild: Added Visual Studio 2005 (VC8) project files
Steve Holme [Sat, 5 Apr 2014 17:05:03 +0000 (18:05 +0100)]
winbuild: Added Visual Studio 2005 (VC8) project files

Added a more thorough version of the VC8 project files that exist in
the "vs" folder with the intention to add support for other versions of
Visual Studio. These files support side-by-side compilation, 32-bit and
64-bit builds as well as support for some of the third-party libraries
curl uses.

10 years agocurl_easy_setopt: fix wrong version number references
Daniel Stenberg [Fri, 4 Apr 2014 15:20:55 +0000 (17:20 +0200)]
curl_easy_setopt: fix wrong version number references

10 years agodocs: this is for 7.37.0
Daniel Stenberg [Fri, 4 Apr 2014 15:08:28 +0000 (17:08 +0200)]
docs: this is for 7.37.0

And clarify for curl that --proxy-header now must be used for headers
that are meant for a proxy, and they will not be included if the request
is not for a proxy.

10 years agoPROXYHEADER: send these headers in "normal" proxy requests too
Daniel Stenberg [Thu, 20 Feb 2014 16:10:00 +0000 (17:10 +0100)]
PROXYHEADER: send these headers in "normal" proxy requests too

Updated the docs to clarify and the code accordingly, with test 1528 to
verify:

When CURLHEADER_SEPARATE is set and libcurl is asked to send a request
to a proxy but it isn't CONNECT, then _both_ header lists
(CURLOPT_HTTPHEADER and CURLOPT_PROXYHEADER) will be used since the
single request is then made for both the proxy and the server.

10 years agotest1428: verify --proxy-header
Daniel Stenberg [Tue, 4 Feb 2014 22:59:30 +0000 (23:59 +0100)]
test1428: verify --proxy-header

10 years agocurl.1: documented --proxy-header
Daniel Stenberg [Tue, 4 Feb 2014 22:54:39 +0000 (23:54 +0100)]
curl.1: documented --proxy-header

10 years agocurl: add --proxy-header
Maciej Puzio [Tue, 4 Feb 2014 22:48:16 +0000 (23:48 +0100)]
curl: add --proxy-header

10 years agosymbols-in-versions: Added CURLHEADER_*
Daniel Stenberg [Thu, 20 Feb 2014 16:23:59 +0000 (17:23 +0100)]
symbols-in-versions: Added CURLHEADER_*

... and sorted the list

10 years agoCURLOPT_HEADEROPT: added
Daniel Stenberg [Tue, 4 Feb 2014 22:37:29 +0000 (23:37 +0100)]
CURLOPT_HEADEROPT: added

Modified the logic so that CURLOPT_HEADEROPT now controls if PROXYHEADER
is actually used or not.

10 years agoCURLOPT_PROXYHEADER: set headers for proxy-only
Daniel Stenberg [Fri, 31 Jan 2014 07:10:07 +0000 (08:10 +0100)]
CURLOPT_PROXYHEADER: set headers for proxy-only

Includes docs and new test cases: 1525, 1526 and 1527

Co-written-by: Vijay Panghal
10 years agoHTTP: don't send Content-Length: 0 _and_ Expect: 100-continue
Daniel Stenberg [Fri, 4 Apr 2014 12:50:18 +0000 (14:50 +0200)]
HTTP: don't send Content-Length: 0 _and_ Expect: 100-continue

Without request body there's no point in asking for 100-continue.

Bug: http://curl.haxx.se/bug/view.cgi?id=1349
Reported-by: JimS
10 years agoftp: in passive data connect wait for happy eyeballs sockets
Daniel Stenberg [Mon, 24 Mar 2014 22:21:10 +0000 (23:21 +0100)]
ftp: in passive data connect wait for happy eyeballs sockets

When doing passive FTP, the multi state function needs to extract and
use the happy eyeballs sockets to wait for to check for completion!

Bug: http://curl.haxx.se/mail/lib-2014-02/0135.html (ruined)
Reported-by: Alan
10 years agohttp2+openssl: fix compiler warnings in ALPN using code
Daniel Stenberg [Thu, 3 Apr 2014 15:03:02 +0000 (17:03 +0200)]
http2+openssl: fix compiler warnings in ALPN using code

10 years agotests: unified use of some keywords
Dan Fandrich [Thu, 3 Apr 2014 09:46:13 +0000 (11:46 +0200)]
tests: unified use of some keywords

10 years agotests: added some missing closing tags
Dan Fandrich [Thu, 3 Apr 2014 09:45:19 +0000 (11:45 +0200)]
tests: added some missing closing tags

10 years agoruntests: insist on a <keywords> section
Daniel Stenberg [Thu, 3 Apr 2014 09:33:41 +0000 (11:33 +0200)]
runtests: insist on a <keywords> section

Since all present tests now have <keywords> listed, this script will now
refuse to run a given test case if no such section is provided.
Hopefully this will help us make sure new test cases get keywords added
at start.

10 years agotests: add keywords to the last 7 tests lacking them
Daniel Stenberg [Thu, 3 Apr 2014 09:06:24 +0000 (11:06 +0200)]
tests: add keywords to the last 7 tests lacking them

10 years agosmtp: Fixed login denied with a RFC-821 based server
Steve Holme [Mon, 31 Mar 2014 21:59:46 +0000 (22:59 +0100)]
smtp: Fixed login denied with a RFC-821 based server

In addition to commit fe260b75e7 fixed the same issue for RFC-821 based
SMTP servers and allow the credientials to be given to curl even though
they are not used with the server.

10 years agotests: Added SMTP with credientials test when not supported by server
Steve Holme [Sun, 30 Mar 2014 16:53:13 +0000 (17:53 +0100)]
tests: Added SMTP with credientials test when not supported by server

10 years agourldata: spellfix comment
Daniel Stenberg [Tue, 1 Apr 2014 06:00:13 +0000 (08:00 +0200)]
urldata: spellfix comment

Reported-by: Melissa
10 years agoRELEASE-NOTES: Synced with dd07e79023
Steve Holme [Mon, 31 Mar 2014 20:22:42 +0000 (21:22 +0100)]
RELEASE-NOTES: Synced with dd07e79023

10 years agotests: Added SMTP with credentials test for RFC-821 based server
Steve Holme [Sun, 30 Mar 2014 16:32:12 +0000 (17:32 +0100)]
tests: Added SMTP with credentials test for RFC-821 based server

Added SMTP (RFC-821 only) based test case as a reference for the fix
provided by commit fe260b75e7.

10 years agoipv6: strip off zone identifiers in redirects too
Daniel Stenberg [Mon, 31 Mar 2014 07:35:32 +0000 (09:35 +0200)]
ipv6: strip off zone identifiers in redirects too

Follow up to 9317eced984 makes test 1056 work again.

10 years agodocs: Removed mention of -g hack when using IPv6 literals
Dan Fandrich [Mon, 31 Mar 2014 07:02:55 +0000 (09:02 +0200)]
docs: Removed mention of -g hack when using IPv6 literals

This limitation was removed in commit 0bc4938e

10 years agohttp2: let openssl mention the exact protocol negotiated
Daniel Stenberg [Mon, 31 Mar 2014 07:00:58 +0000 (09:00 +0200)]
http2: let openssl mention the exact protocol negotiated

Remove a superfluous "negotiated http2" info line

10 years agohttp2: remove _DRAFT09 from the NPN_HTTP2 enum
Daniel Stenberg [Mon, 31 Mar 2014 06:40:24 +0000 (08:40 +0200)]
http2: remove _DRAFT09 from the NPN_HTTP2 enum

We're progressing throught drafts so there's no point in having a fixed
one in a symbol that'll survive.

10 years agoURL parser: IPv6 zone identifiers are now supported
Till Maas [Sat, 15 Mar 2014 21:42:50 +0000 (22:42 +0100)]
URL parser: IPv6 zone identifiers are now supported

10 years agocurl: stop interpreting IPv6 literals as glob patterns.
Paul Marks [Sun, 30 Mar 2014 05:50:37 +0000 (07:50 +0200)]
curl: stop interpreting IPv6 literals as glob patterns.

This makes it possible to fetch from an IPv6 literal without specifying
the -g option.  Globbing remains available elsehwere in the URL.

For example:
  curl http://[::1]/file[1-3].txt

This creates no ambiguity, because there is no overlap between the
syntax of valid globs and valid IPv6 literals.  Globs contain hyphens
and at most 1 colon, while IPv6 literals have no hyphens, and at least 2
colons.

The peek_ipv6() parser simply whitelists a set of characters and counts
colons, because the real validation happens later on.  The character set
includes A-Z, in case someone decides to implement support for scopes
like [fe80::1%25eth0] in the future.

Signed-off-by: Paul Marks <pmarks@google.com>
10 years agotest938: Updated to use file input for upload
Steve Holme [Sun, 30 Mar 2014 21:32:09 +0000 (22:32 +0100)]
test938: Updated to use file input for upload

As the second URL won't be passed input from stdin.

10 years agotest836: Fixed incorrect username in expected output
Steve Holme [Sun, 30 Mar 2014 21:25:25 +0000 (22:25 +0100)]
test836: Fixed incorrect username in expected output

10 years agoDISABLED: 836, 882 and 938 hang
Daniel Stenberg [Sun, 30 Mar 2014 21:36:57 +0000 (23:36 +0200)]
DISABLED: 836, 882 and 938 hang

10 years agoruntests: check protocol before data
Daniel Stenberg [Sun, 30 Mar 2014 21:15:15 +0000 (23:15 +0200)]
runtests: check protocol before data

When the protocol part fails, the data usually does too but the protocol
part is often more fundamental and often provide the clues you need to
fix the test case.