]> granicus.if.org Git - curl/log
curl
8 years agocontrithanks.sh: use same grep pattern and -a flag as contributors.sh
Daniel Stenberg [Mon, 23 May 2016 07:14:19 +0000 (09:14 +0200)]
contrithanks.sh: use same grep pattern and -a flag as contributors.sh

8 years agocontributors.sh: better grep pattern, use grep -a
Daniel Stenberg [Mon, 23 May 2016 07:13:43 +0000 (09:13 +0200)]
contributors.sh: better grep pattern, use grep -a

8 years agoTHANKS-filter: fix more names
Daniel Stenberg [Mon, 23 May 2016 07:13:20 +0000 (09:13 +0200)]
THANKS-filter: fix more names

8 years agocontrithanks.sh: do the same github fix as contributors.sh
Daniel Stenberg [Mon, 23 May 2016 06:50:53 +0000 (08:50 +0200)]
contrithanks.sh: do the same github fix as contributors.sh

from 1577bfa35ba

8 years agocontributors: Show GitHub username if real name unknown
Jay Satiro [Mon, 23 May 2016 06:42:12 +0000 (02:42 -0400)]
contributors: Show GitHub username if real name unknown

Prior to this change if a GitHub contributor's real name was unknown
they would be omitted from the list.

Bug: https://github.com/curl/curl/issues/824

8 years agoRELEASE-NOTES: synced with 3caaeffbe8ded4
Daniel Stenberg [Sat, 21 May 2016 14:05:54 +0000 (16:05 +0200)]
RELEASE-NOTES: synced with 3caaeffbe8ded4

8 years agoopenssl: cleanup must free compression methods
Jay Satiro [Fri, 20 May 2016 20:44:01 +0000 (16:44 -0400)]
openssl: cleanup must free compression methods

- Free compression methods if OpenSSL 1.0.2 to avoid a memory leak.

Bug: https://github.com/curl/curl/issues/817
Reported-by: jveazey@users.noreply.github.com
8 years agocurl_multibyte: fix compiler error
Gisle Vanem [Fri, 20 May 2016 14:50:04 +0000 (16:50 +0200)]
curl_multibyte: fix compiler error

While compiling lib/curl_multibyte.c with '-DUSE_WIN32_IDN' etc. I was
getting:

f:\mingw32\src\inet\curl\lib\memdebug.h(38): error C2054: expected '('
to follow 'CURL_EXTERN'

f:\mingw32\src\inet\curl\lib\memdebug.h(38): error C2085:
'curl_domalloc': not in formal parameter list

8 years agoTHANKS-filter: make Jan-E get proper credit
Daniel Stenberg [Fri, 20 May 2016 14:44:34 +0000 (16:44 +0200)]
THANKS-filter: make Jan-E get proper credit

8 years agowinbuild/Makefile.vc: Fix check on SSL, MBEDTLS, WINSSL exclusivity
Jan-E [Thu, 19 May 2016 20:35:50 +0000 (22:35 +0200)]
winbuild/Makefile.vc: Fix check on SSL, MBEDTLS, WINSSL exclusivity

Closes #818

8 years agolibcurl.m4: Avoid obsolete warning
Alexander Traud [Fri, 20 May 2016 12:57:48 +0000 (14:57 +0200)]
libcurl.m4: Avoid obsolete warning

Closes #821

8 years agoCURLOPT_CONNECT_TO.3: user must not free the list prematurely
Michael Kaufmann [Thu, 19 May 2016 22:06:40 +0000 (00:06 +0200)]
CURLOPT_CONNECT_TO.3: user must not free the list prematurely

The connect-to list isn't copied so as long as the handle may be used
for a transfer the list must be valid.

Bug: https://github.com/curl/curl/pull/819
Reported-by: Michael Kaufmann
8 years agoRELEASE-NOTES: synced with 48114a8634242c
Daniel Stenberg [Thu, 19 May 2016 12:01:30 +0000 (14:01 +0200)]
RELEASE-NOTES: synced with 48114a8634242c

8 years agoopenssl: ERR_remove_thread_state() is deprecated in latest 1.1.0
Daniel Stenberg [Thu, 19 May 2016 09:39:59 +0000 (11:39 +0200)]
openssl: ERR_remove_thread_state() is deprecated in latest 1.1.0

See OpenSSL commit 21e001747d4a

8 years agohttp2: use HTTP/2 in the HTTP/1.1-alike header
Daniel Stenberg [Thu, 19 May 2016 09:16:30 +0000 (11:16 +0200)]
http2: use HTTP/2 in the HTTP/1.1-alike header

... when generating them, not "2.0" as the protocol is called just
HTTP/2 and nothing else.

8 years agodist: include curl_multi_socket_all.3
Jay Satiro [Thu, 19 May 2016 07:13:07 +0000 (03:13 -0400)]
dist: include curl_multi_socket_all.3

Closes https://github.com/curl/curl/pull/816

8 years agobump: Start work on 7.49.1
Steve Holme [Wed, 18 May 2016 16:47:38 +0000 (17:47 +0100)]
bump: Start work on 7.49.1

8 years agocurlbuild.h.dist: check __LP64__ as well to fix MIPS build
Daniel Stenberg [Wed, 18 May 2016 12:10:36 +0000 (14:10 +0200)]
curlbuild.h.dist: check __LP64__ as well to fix MIPS build

The preprocessor check that sets up the 32bit defines for non-configure
builds didn't work properly for MIPS systems as __mips__ is defined for
both 32bit and 64bit. Now __LP64__ is also checked and indicates 64bit.

Reported-by: Tomas Jakobsson
Fixes #813

8 years agoschannel: fix compile break with MSVC XP toolset
Marcel Raad [Wed, 18 May 2016 09:54:58 +0000 (11:54 +0200)]
schannel: fix compile break with MSVC XP toolset

For the Windows XP toolset of Visual C++ 2013/2015, the old Windows SDK
7.1 is used. In this case, _USING_V110_SDK71_ is defined.

Closes #812

8 years agodist: include CHECKSRC.md
Daniel Stenberg [Wed, 18 May 2016 08:35:15 +0000 (10:35 +0200)]
dist: include CHECKSRC.md

Reported-by: Paul Howarth
Bug: https://curl.haxx.se/mail/lib-2016-05/0116.html

8 years agotest/Makefile.am: include manpage-scan.pl and nroff-scan.pl in dist
Daniel Stenberg [Wed, 18 May 2016 07:17:27 +0000 (09:17 +0200)]
test/Makefile.am: include manpage-scan.pl and nroff-scan.pl in dist

Reported-by: Ray Satiro
Bug: https://curl.haxx.se/mail/lib-2016-05/0113.html

8 years agoTHANKS: 24 new names from 7.49.0 release notes curl-7_49_0
Daniel Stenberg [Tue, 17 May 2016 12:50:19 +0000 (14:50 +0200)]
THANKS: 24 new names from 7.49.0 release notes

8 years agoRELEASE-NOTES: 7.49.0
Daniel Stenberg [Tue, 17 May 2016 12:02:11 +0000 (14:02 +0200)]
RELEASE-NOTES: 7.49.0

8 years agombedtls/polarssl: set "hostname" unconditionally
Daniel Stenberg [Sun, 24 Apr 2016 15:52:18 +0000 (17:52 +0200)]
mbedtls/polarssl: set "hostname" unconditionally

...as otherwise the TLS libs will skip the CN/SAN check and just allow
connection to any server. curl previously skipped this function when SNI
wasn't used or when connecting to an IP address specified host.

CVE-2016-3739

Bug: https://curl.haxx.se/docs/adv_20160518A.html
Reported-by: Moti Avrahami
8 years agoCURLOPT_RESOLVE.3: fix typo
Frank Gevaerts [Tue, 17 May 2016 12:22:56 +0000 (14:22 +0200)]
CURLOPT_RESOLVE.3: fix typo

Closes #811

8 years agodocs: CURLOPT_RESOLVE overrides CURLOPT_IPRESOLVE
Daniel Stenberg [Tue, 17 May 2016 11:17:07 +0000 (13:17 +0200)]
docs: CURLOPT_RESOLVE overrides CURLOPT_IPRESOLVE

8 years agoKNOWN_BUGS: GnuTLS backend skips really long certificate fields
Daniel Stenberg [Tue, 17 May 2016 09:13:48 +0000 (11:13 +0200)]
KNOWN_BUGS: GnuTLS backend skips really long certificate fields

Closes #762

8 years agoCURLOPT_HTTPPOST.3: the data needs to be around while in use
Daniel Stenberg [Tue, 17 May 2016 09:08:10 +0000 (11:08 +0200)]
CURLOPT_HTTPPOST.3: the data needs to be around while in use

8 years agoopenssl: get_cert_chain: fix NULL dereference
Daniel Stenberg [Tue, 17 May 2016 07:34:33 +0000 (09:34 +0200)]
openssl: get_cert_chain: fix NULL dereference

CID 1361815: Explicit null dereferenced (FORWARD_NULL)

8 years agoopenssl: get_cert_chain: avoid NULL dereference
Daniel Stenberg [Tue, 17 May 2016 07:14:06 +0000 (09:14 +0200)]
openssl: get_cert_chain: avoid NULL dereference

CID 1361811: Explicit null dereferenced (FORWARD_NULL)

8 years agodprintf_formatf: fix (false?) Coverity warning
Daniel Stenberg [Tue, 17 May 2016 07:06:32 +0000 (09:06 +0200)]
dprintf_formatf: fix (false?) Coverity warning

CID 1024412: Memory - illegal accesses (OVERRUN). Claimed to happen when
we run over 'workend' but the condition says <= workend and for all I
can see it should be safe. Compensating for the warning by adding a byte
margin in the buffer.

Also, removed the extra brace level indentation in the code and made it
so that 'workend' is only assigned once within the function.

8 years agoRELEASE-NOTES: synced with 2dcb5adc72d6
Daniel Stenberg [Mon, 16 May 2016 07:05:03 +0000 (09:05 +0200)]
RELEASE-NOTES: synced with 2dcb5adc72d6

8 years agoTHANKS-filter: fixed Jonathan Cardoso
Daniel Stenberg [Mon, 16 May 2016 07:04:13 +0000 (09:04 +0200)]
THANKS-filter: fixed Jonathan Cardoso

8 years agoftp: fix incorrect out-of-memory code in Curl_pretransfer
Jay Satiro [Mon, 16 May 2016 03:48:47 +0000 (23:48 -0400)]
ftp: fix incorrect out-of-memory code in Curl_pretransfer

- Return value type must match function type.

s/CURLM_OUT_OF_MEMORY/CURLE_OUT_OF_MEMORY/

Caught by Travis CI

8 years agoftp wildcard: segfault due to init only in multi_perform
Daniel Stenberg [Sat, 14 May 2016 22:37:36 +0000 (00:37 +0200)]
ftp wildcard: segfault due to init only in multi_perform

The proper FTP wildcard init is now more properly done in Curl_pretransfer()
and the corresponding cleanup in Curl_close().

The previous place of init/cleanup code made the internal pointer to be NULL
when this feature was used with the multi_socket() API, as it was made within
the curl_multi_perform() function.

Reported-by: Jonathan Cardoso Machado
Fixes #800

8 years agolibcurl-tlibcurl-thread: Update OpenSSL links
Jay Satiro [Fri, 13 May 2016 20:01:35 +0000 (16:01 -0400)]
libcurl-tlibcurl-thread: Update OpenSSL links

Because the old OpenSSL link now redirects to their master documentation
(currently 1.1.0), which does not document the required actions for
OpenSSL <= 1.0.2.

8 years agodarwinssl.c: fix OS X codename typo in comment
Viktor Szakats [Fri, 13 May 2016 07:25:54 +0000 (09:25 +0200)]
darwinssl.c: fix OS X codename typo in comment

8 years agoRELEASE-NOTES: synced with 68701e51c1f7
Daniel Stenberg [Thu, 12 May 2016 22:18:53 +0000 (00:18 +0200)]
RELEASE-NOTES: synced with 68701e51c1f7

Added 8 bug fixes and 5 more contrbutors

8 years agomprintf: Fix processing of width and prec args
Jay Satiro [Wed, 9 Mar 2016 07:59:05 +0000 (02:59 -0500)]
mprintf: Fix processing of width and prec args

Prior to this change a width arg could be erroneously output, and also
width and precision args could not be used together without crashing.

"%0*d%s", 2, 9, "foo"

Before: "092"
After: "09foo"

"%*.*s", 5, 2, "foo"

Before: crash
After: "   fo"

Test 557 is updated to verify this and more

8 years agoConnectionExists: follow-up fix for proxy re-use
Michael Kaufmann [Thu, 12 May 2016 22:02:21 +0000 (00:02 +0200)]
ConnectionExists: follow-up fix for proxy re-use

Follow-up commit to 5823179

Closes #648

8 years agodarwinssl: fix certificate verification disable on OS X 10.8
Per Malmberg [Thu, 12 May 2016 10:16:16 +0000 (12:16 +0200)]
darwinssl: fix certificate verification disable on OS X 10.8

The new way of disabling certificate verification doesn't work on
Mountain Lion (OS X 10.8) so we need to use the old way in that version
too. I've tested this solution on versions 10.7.5, 10.8, 10.9, 10.10.2
and 10.11.

Closes #802

8 years agohttp2: Add space between colon and header value
Cory Benfield [Wed, 11 May 2016 11:35:05 +0000 (12:35 +0100)]
http2: Add space between colon and header value

curl's representation of HTTP/2 responses involves transforming the
response to a format that is similar to HTTP/1.1. Prior to this change,
curl would do this by separating header names and values with only a
colon, without introducing a space after the colon.

While this is technically a valid way to represent a HTTP/1.1 header
block, it is much more common to see a space following the colon. This
change introduces that space, to ensure that incautious tools are safely
able to parse the header block.

This also ensures that the difference between the HTTP/1.1 and HTTP/2
response layout is as minimal as possible.

Bug: https://github.com/curl/curl/issues/797

Closes #798
Fixes #797

8 years agoopenssl: fix compile-time warning in Curl_ossl_check_cxn()
Kamil Dudka [Thu, 12 May 2016 06:36:21 +0000 (08:36 +0200)]
openssl: fix compile-time warning in Curl_ossl_check_cxn()

... introduced in curl-7_48_0-293-g2968c83:

Error: COMPILER_WARNING:
lib/vtls/openssl.c: scope_hint: In function ‘Curl_ossl_check_cxn’
lib/vtls/openssl.c:767:15: warning: conversion to ‘int’ from ‘ssize_t’
may alter its value [-Wconversion]

8 years agoopenssl: stricter connection check function
Jay Satiro [Thu, 12 May 2016 01:21:15 +0000 (21:21 -0400)]
openssl: stricter connection check function

- In the case of recv error, limit returning 'connection still in place'
to EINPROGRESS, EAGAIN and EWOULDBLOCK.

This is an improvement on the parent commit which changed the openssl
connection check to use recv MSG_PEEK instead of SSL_peek.

Ref: https://github.com/curl/curl/commit/856baf5#comments

8 years agoTLS: SSL_peek is not a const operation
Anders Bakken [Tue, 10 May 2016 19:49:33 +0000 (12:49 -0700)]
TLS: SSL_peek is not a const operation

Calling SSL_peek can cause bytes to be read from the raw socket which in
turn can upset the select machinery that determines whether there's data
available on the socket.

Since Curl_ossl_check_cxn only tries to determine whether the socket is
alive and doesn't actually need to see the bytes SSL_peek seems like
the wrong function to call.

We're able to occasionally reproduce a connect timeout due to this
bug. What happens is that Curl doesn't know to call SSL_connect again
after the peek happens since data is buffered in the SSL buffer and thus
select won't fire for this socket.

Closes #795

8 years agoTLS: move the ALPN/NPN enable bits to the connection
Daniel Stenberg [Mon, 9 May 2016 14:50:11 +0000 (16:50 +0200)]
TLS: move the ALPN/NPN enable bits to the connection

Only protocols that actually have a protocol registered for ALPN and NPN
should try to get that negotiated in the TLS handshake. That is only
HTTPS (well, http/1.1 and http/2) right now. Previously ALPN and NPN
would wrongly be used in all handshakes if libcurl was built with it
enabled.

Reported-by: Jay Satiro
Fixes #789

8 years agolibcurl-thread.3: openssl 1.1.0 is safe, and so is boringssl
Daniel Stenberg [Sun, 8 May 2016 13:48:26 +0000 (15:48 +0200)]
libcurl-thread.3: openssl 1.1.0 is safe, and so is boringssl

8 years agoconnect: fix invalid "Network is unreachable" errors
Antonio Larrosa [Thu, 5 May 2016 17:50:15 +0000 (19:50 +0200)]
connect: fix invalid "Network is unreachable" errors

Sometimes, in systems with both ipv4 and ipv6 addresses but where the
network doesn't support ipv6, Curl_is_connected returns an error
(intermittently) even if the ipv4 socket connects successfully.

This happens because there's a for-loop that iterates on the sockets but
the error variable is not resetted when the ipv4 is checked and is ok.

This patch fixes this problem by setting error to 0 when checking the
second socket and not having a result yet.

Fixes #794

8 years agoFAQ: refer to thread safety guidelines
Jay Satiro [Thu, 5 May 2016 18:34:27 +0000 (14:34 -0400)]
FAQ: refer to thread safety guidelines

8 years agoconnections: non-HTTP proxies on different ports aren't reused either
Daniel Stenberg [Mon, 2 May 2016 21:15:05 +0000 (23:15 +0200)]
connections: non-HTTP proxies on different ports aren't reused either

Reported-by: Oleg Pudeyev and fuchaoqun
Fixes #648

8 years agohttp: make sure a blank header overrides accept_decoding
Daniel Stenberg [Mon, 2 May 2016 09:24:11 +0000 (11:24 +0200)]
http: make sure a blank header overrides accept_decoding

Reported-by: rcanavan
Assisted-by: Isaac Boukris
Closes #785

8 years agoCHECKSRC.md: clarified, explained the whitelist file
Daniel Stenberg [Mon, 2 May 2016 09:18:59 +0000 (11:18 +0200)]
CHECKSRC.md: clarified, explained the whitelist file

8 years agonroff-scan.pl: verify that references are made with \fI
Daniel Stenberg [Mon, 2 May 2016 07:09:16 +0000 (09:09 +0200)]
nroff-scan.pl: verify that references are made with \fI

8 years agodocs: unified man page references to use \fI
Daniel Stenberg [Mon, 2 May 2016 07:09:36 +0000 (09:09 +0200)]
docs: unified man page references to use \fI

8 years agoTODO: 17.14 --fail without --location should treat 3xx as a failure
Daniel Stenberg [Mon, 2 May 2016 06:36:54 +0000 (08:36 +0200)]
TODO: 17.14 --fail without --location should treat 3xx as a failure

Closes #727

8 years agoRELEASE-NOTES: synced with 7987f5cb14d
Daniel Stenberg [Sun, 1 May 2016 21:44:02 +0000 (23:44 +0200)]
RELEASE-NOTES: synced with 7987f5cb14d

8 years agoCURLOPT_ACCEPT_ENCODING.3: Follow-up clarification
Isaac Boukris [Sat, 23 Apr 2016 12:52:04 +0000 (15:52 +0300)]
CURLOPT_ACCEPT_ENCODING.3: Follow-up clarification

Mention possible content-length mismatch with sum of bytes reported
by write callbacks when auto decoding is enabled.

See #785

8 years agotest1140: run nroff-scan to verify man pages
Daniel Stenberg [Sun, 1 May 2016 21:07:35 +0000 (23:07 +0200)]
test1140: run nroff-scan to verify man pages

8 years agonroff-scan.pl: verify the .BR references as well
Daniel Stenberg [Sun, 1 May 2016 21:07:06 +0000 (23:07 +0200)]
nroff-scan.pl: verify the .BR references as well

8 years agoCURLOPT_CONV_TO_NETWORK_FUNCTION.3: fix bad man page reference
Daniel Stenberg [Sun, 1 May 2016 21:06:43 +0000 (23:06 +0200)]
CURLOPT_CONV_TO_NETWORK_FUNCTION.3: fix bad man page reference

8 years agoCURLOPT_BUFFERSIZE.3: fix reference to CURLOPT_MAX_RECV_SPEED_LARGE
Daniel Stenberg [Sun, 1 May 2016 21:06:15 +0000 (23:06 +0200)]
CURLOPT_BUFFERSIZE.3: fix reference to CURLOPT_MAX_RECV_SPEED_LARGE

8 years agocurl_easy_pause.3: fix man page reference
Daniel Stenberg [Sun, 1 May 2016 21:05:55 +0000 (23:05 +0200)]
curl_easy_pause.3: fix man page reference

8 years agotool_cb_hdr: Fix --remote-header-name with schemeless URL
Jay Satiro [Sun, 1 May 2016 20:07:04 +0000 (16:07 -0400)]
tool_cb_hdr: Fix --remote-header-name with schemeless URL

- Move the existing scheme check from tool_operate.

In the case of --remote-header-name we want to parse Content-disposition
for a filename, but only if the scheme is http or https. A recent
adjustment 0dc4d8e was made to account for schemeless URLs however it's
not 100% accurate. To remedy that I've moved the scheme check to the
header callback, since at that point the library has already determined
the scheme.

Bug: https://github.com/curl/curl/issues/760
Reported-by: Kai Noda
8 years agotls: make setting pinnedkey option fail if not supported
Daniel Stenberg [Sun, 1 May 2016 15:05:38 +0000 (17:05 +0200)]
tls: make setting pinnedkey option fail if not supported

to make it obvious to users trying to use the feature with TLS backends
not supporting it.

Discussed in #781
Reported-by: Travis Burtrum
8 years agonroff-scan.pl: verifies nroff pages
Daniel Stenberg [Sun, 1 May 2016 14:41:35 +0000 (16:41 +0200)]
nroff-scan.pl: verifies nroff pages

... not used by any test yet but can be used stand-alone.

8 years agoopts: fix broken/bad references
Daniel Stenberg [Sun, 1 May 2016 14:41:04 +0000 (16:41 +0200)]
opts: fix broken/bad references

8 years agodocs: fix bugs in CURLOPT_HTTP_VERSION.3 and CURLOPT_PIPEWAIT.3
Michael Kaufmann [Sun, 1 May 2016 11:22:16 +0000 (13:22 +0200)]
docs: fix bugs in CURLOPT_HTTP_VERSION.3 and CURLOPT_PIPEWAIT.3

Closes #786

8 years agoCURLOPT_ACCEPT_ENCODING.3: clarified
Daniel Stenberg [Sun, 1 May 2016 11:29:11 +0000 (13:29 +0200)]
CURLOPT_ACCEPT_ENCODING.3: clarified

As discussed in #785

8 years agocurl.1: --mail-rcpt can be used multiple times
Daniel Stenberg [Fri, 29 Apr 2016 22:15:44 +0000 (00:15 +0200)]
curl.1: --mail-rcpt can be used multiple times

Reported-by: mgendre
Closes #784

8 years agotests: Use 'pathhelp' for paths conversions in secureserver.pl
Karlson2k [Mon, 22 Feb 2016 07:06:53 +0000 (10:06 +0300)]
tests: Use 'pathhelp' for paths conversions in secureserver.pl

Closes #675

8 years agotests: Use 'pathhelp' for paths conversions in sshserver.pl
Karlson2k [Sun, 21 Feb 2016 20:17:57 +0000 (23:17 +0300)]
tests: Use 'pathhelp' for paths conversions in sshserver.pl

8 years agotests: Use 'pathhelp' for current path in runtests.pl
Karlson2k [Tue, 15 Mar 2016 21:14:47 +0000 (00:14 +0300)]
tests: Use 'pathhelp' for current path in runtests.pl

8 years agotests: pathhelp.pm to process paths on Msys/Cygwin
Karlson2k [Tue, 15 Mar 2016 20:07:19 +0000 (23:07 +0300)]
tests: pathhelp.pm to process paths on Msys/Cygwin

8 years agolib: include curl_printf.h as one of the last headers
Daniel Stenberg [Fri, 29 Apr 2016 13:46:40 +0000 (15:46 +0200)]
lib: include curl_printf.h as one of the last headers

curl_printf.h defines printf to curl_mprintf, etc. This can cause
problems with external headers which may use
__attribute__((format(printf, ...))) markers etc.

To avoid that they cause problems with system includes, we include
curl_printf.h after any system headers. That makes the three last
headers to always be, and we keep them in this order:

 curl_printf.h
 curl_memory.h
 memdebug.h

None of them include system headers, they all do funny #defines.

Reported-by: David Benjamin
Fixes #743

8 years agomemdebug.h: remove inclusion of other headers
Daniel Stenberg [Fri, 29 Apr 2016 13:33:46 +0000 (15:33 +0200)]
memdebug.h: remove inclusion of other headers

Mostly because they're not needed, because memdebug.h is always included
last of all headers so the others already included the correct ones.

But also, starting now we don't want this to accidentally include any
system headers, as the header included _before_ this header may add
defines and other fun stuff that we won't want used in system includes.

8 years agocurl -J: make it work even without http:// scheme on URL
Jay Satiro [Fri, 29 Apr 2016 13:24:10 +0000 (15:24 +0200)]
curl -J: make it work even without http:// scheme on URL

It does open up a miniscule risk that one of the other protocols that
libcurl could use would send back a Content-Disposition header and then
curl would act on it even if not HTTP.

A future mitigation for this risk would be to allow the callback to ask
libcurl which protocol is being used.

Verified with test 1312

Closes #760

8 years agomanpage-scan.pl: also verify the command line option docs
Daniel Stenberg [Thu, 28 Apr 2016 21:52:37 +0000 (23:52 +0200)]
manpage-scan.pl: also verify the command line option docs

This script now also scans src/tool_getparam.c, docs/curl.1 and
src/tool_help.c and will warn if any of them lists a command line option
not mentioned in one of the other places.

8 years agocurl: show the long option version of -q in the -h list
Daniel Stenberg [Thu, 28 Apr 2016 21:50:52 +0000 (23:50 +0200)]
curl: show the long option version of -q in the -h list

8 years agocurl: remove "--socks" as "--socks5" turned 8
Daniel Stenberg [Thu, 28 Apr 2016 21:47:03 +0000 (23:47 +0200)]
curl: remove "--socks" as "--socks5" turned 8

In commit 2e42b0a2524 (Jan 2008) we made the option "--socks" deprecated
and it has not been documented since. The more explicit socks options
(like --socks4 or --socks5) should be used.

8 years agocurl.1: document the deprecated --ftp-ssl option
Daniel Stenberg [Thu, 28 Apr 2016 21:46:31 +0000 (23:46 +0200)]
curl.1: document the deprecated --ftp-ssl option

8 years agocurl: remove --http-request
Daniel Stenberg [Thu, 28 Apr 2016 21:38:28 +0000 (23:38 +0200)]
curl: remove --http-request

It was mentioned as deprecated already in commit ae1912cb0d4 from
1999. It has not been documented in this millennium.

8 years agocurl: mention --ntlm-wb in -h list
Daniel Stenberg [Thu, 28 Apr 2016 21:33:27 +0000 (23:33 +0200)]
curl: mention --ntlm-wb in -h list

8 years agocurl: -h output lacked --proxy-header
Daniel Stenberg [Thu, 28 Apr 2016 21:31:53 +0000 (23:31 +0200)]
curl: -h output lacked --proxy-header

8 years agocurl.1: document --ntlm-wb
Daniel Stenberg [Thu, 28 Apr 2016 21:26:52 +0000 (23:26 +0200)]
curl.1: document --ntlm-wb

8 years agocurl.1: document the long format of -q: --disable
Daniel Stenberg [Thu, 28 Apr 2016 21:23:44 +0000 (23:23 +0200)]
curl.1: document the long format of -q: --disable

8 years agocurl.1: mention the deprecated --krb4 option
Daniel Stenberg [Thu, 28 Apr 2016 21:23:17 +0000 (23:23 +0200)]
curl.1: mention the deprecated --krb4 option

8 years agocurl.1: document --ftp-ssl-reqd
Daniel Stenberg [Thu, 28 Apr 2016 21:18:28 +0000 (23:18 +0200)]
curl.1: document --ftp-ssl-reqd

Even if deprecated, document it so that people will find it as old
scripts may still use it.

8 years agocurl: use --telnet-option as documented
Daniel Stenberg [Thu, 28 Apr 2016 21:13:55 +0000 (23:13 +0200)]
curl: use --telnet-option as documented

The code said "telnet-options" but no documentation ever said so. It
worked fine since the code is fine with a unique match of the first
part.

8 years agogetparam: remove support for --ftpport
Daniel Stenberg [Thu, 28 Apr 2016 21:08:42 +0000 (23:08 +0200)]
getparam: remove support for --ftpport

It has been deprecated and undocumented since commit ad5ead8bed7 (Dec
2003). --ftp-port is the proper long option name.

8 years agocurl: make --disable work as long form of -q
Daniel Stenberg [Thu, 28 Apr 2016 20:32:05 +0000 (22:32 +0200)]
curl: make --disable work as long form of -q

To make the aliases list reflect reality.

8 years agoaliases: remove trailing space from capath string
Daniel Stenberg [Thu, 28 Apr 2016 20:28:37 +0000 (22:28 +0200)]
aliases: remove trailing space from capath string

8 years agocmdline parse: only single letter options have single-letter strings
Daniel Stenberg [Thu, 28 Apr 2016 20:24:10 +0000 (22:24 +0200)]
cmdline parse: only single letter options have single-letter strings

... moved around options so that parsing the code to find all
single-letter options easier.

8 years agoCURLINFO_TLS_SSL_PTR.3: Clarify SSL pointer availability
Jay Satiro [Thu, 28 Apr 2016 20:48:38 +0000 (16:48 -0400)]
CURLINFO_TLS_SSL_PTR.3: Clarify SSL pointer availability

Bug: https://curl.haxx.se/mail/lib-2016-04/0126.html
Reported-by: Bru Rom
8 years agocurl_easy_getinfo.3: remove superfluous blank lines
Daniel Stenberg [Thu, 28 Apr 2016 14:31:37 +0000 (16:31 +0200)]
curl_easy_getinfo.3: remove superfluous blank lines

8 years agotest1139: verifies libcurl option man page presence
Daniel Stenberg [Thu, 28 Apr 2016 14:27:51 +0000 (16:27 +0200)]
test1139: verifies libcurl option man page presence

- checks that each option has its own man page present

- checks that each option is mentioned in its corresponding index man
  page

8 years agocurl_easy_getinfo.3: added missing mention of CURLINFO_TLS_SESSION
Daniel Stenberg [Thu, 28 Apr 2016 14:26:42 +0000 (16:26 +0200)]
curl_easy_getinfo.3: added missing mention of CURLINFO_TLS_SESSION

... although it is deprecated.

8 years agombedtls: Fix session resume
Jay Satiro [Thu, 28 Apr 2016 06:57:12 +0000 (02:57 -0400)]
mbedtls: Fix session resume

This also fixes PolarSSL session resume.

Prior to this change the TLS session information wasn't properly
saved and restored for PolarSSL and mbedTLS.

Bug: https://curl.haxx.se/mail/lib-2016-01/0070.html
Reported-by: Thomas Glanzmann
Bug: https://curl.haxx.se/mail/lib-2016-04/0095.html
Reported-by: Moti Avrahami
8 years agoRELEASE-NOTES: synced with f4298fcc6d2
Daniel Stenberg [Wed, 27 Apr 2016 13:31:38 +0000 (15:31 +0200)]
RELEASE-NOTES: synced with f4298fcc6d2

8 years agoopts: Fix some syntax errors in example code fragments
Michael Kaufmann [Tue, 26 Apr 2016 21:51:50 +0000 (23:51 +0200)]
opts: Fix some syntax errors in example code fragments

Fixes #779

8 years agoopenssl: avoid BN_print a NULL bignum
Daniel Stenberg [Tue, 26 Apr 2016 21:55:31 +0000 (23:55 +0200)]
openssl: avoid BN_print a NULL bignum

OpenSSL 1.1.0-pre seems to return NULL(?) for a whole lot of those
numbers so make sure the function handles this.

Reported-by: Linus Nordberg