]> granicus.if.org Git - curl/log
curl
7 years agoeasy_events: make event data static
Daniel Stenberg [Sun, 6 Aug 2017 21:42:50 +0000 (23:42 +0200)]
easy_events: make event data static

First: this function is only used in debug-builds and not in
release/real builds. It is used to drive tests using the event-based
API.

A pointer to the local struct is passed to CURLMOPT_TIMERDATA, but the
CURLMOPT_TIMERFUNCTION calback can in fact be called even after this
funtion returns, namely when curl_multi_remove_handle() is called.

Reported-by: Brian Carpenter
7 years agogetparameter: avoid returning uninitialized 'usedarg'
Daniel Stenberg [Fri, 4 Aug 2017 09:49:27 +0000 (11:49 +0200)]
getparameter: avoid returning uninitialized 'usedarg'

Fixes #1728

7 years agogssapi: fix memory leak of output token in multi round context
Isaac Boukris [Fri, 21 Jul 2017 23:00:46 +0000 (02:00 +0300)]
gssapi: fix memory leak of output token in multi round context

When multiple rounds are needed to establish a security context
(usually ntlm), we overwrite old token with a new one without free.
Found by proposed gss tests using stub a gss implementation (by
valgrind error), though I have confirmed the leak with a real
gssapi implementation as well.

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

7 years agodarwinssl: fix compiler warning
Marcel Raad [Fri, 4 Aug 2017 20:47:16 +0000 (22:47 +0200)]
darwinssl: fix compiler warning

clang complains:
vtls/darwinssl.c:40:8: error: extra tokens at end of #endif directive
[-Werror,-Wextra-tokens]

This breaks the darwinssl build on Travis. Fix it by making this token
a comment.

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

7 years agoCMake: fix CURL_WERROR for MSVC
Marcel Raad [Tue, 18 Jul 2017 16:31:41 +0000 (18:31 +0200)]
CMake: fix CURL_WERROR for MSVC

When using CURL_WERROR in MSVC builds, the debug flags were overridden
by the release flags and /WX got added twice in debug mode.

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

7 years agoRELEASE-NOTES: synced with 561e9217c
Daniel Stenberg [Fri, 4 Aug 2017 08:32:38 +0000 (10:32 +0200)]
RELEASE-NOTES: synced with 561e9217c

7 years agotest1010: verify that #1718 is fixed
Daniel Stenberg [Thu, 3 Aug 2017 21:50:02 +0000 (23:50 +0200)]
test1010: verify that #1718 is fixed

... by doing two transfers in nocwd mode and check that there's no
superfluous CWD command.

7 years agoFTP: skip unnecessary CWD when in nocwd mode
Daniel Stenberg [Thu, 3 Aug 2017 21:48:57 +0000 (23:48 +0200)]
FTP: skip unnecessary CWD when in nocwd mode

... when reusing a connection. If it didn't do any CWD previously.

Fixes #1718

7 years agotravis: explicitly specify dist
Marcel Raad [Thu, 3 Aug 2017 09:01:25 +0000 (11:01 +0200)]
travis: explicitly specify dist

This makes the builds more reproducible as travis is currently rolling
out trusty as default dist [1]. Specifically, this avoids coverage
check failures when trusty is used as seen in [2] until we figure out
what's wrong.

[1] https://blog.travis-ci.com/2017-07-11-trusty-as-default-linux-is-coming
[2] https://github.com/curl/curl/pull/1692

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

7 years agotravis: BUILD_TYPE => T
Daniel Stenberg [Thu, 3 Aug 2017 22:04:39 +0000 (00:04 +0200)]
travis: BUILD_TYPE => T

(to make the full line appear nicer on travis web UI)

7 years agotravis: add osx build with darwinssl
Daniel Stenberg [Thu, 3 Aug 2017 22:04:39 +0000 (00:04 +0200)]
travis: add osx build with darwinssl

Closes #1706

7 years agodarwin: silence compiler warnings
Daniel Stenberg [Thu, 3 Aug 2017 22:04:39 +0000 (00:04 +0200)]
darwin: silence compiler warnings

With a clang pragma and three type fixes

Fixes #1722

7 years agoBUILD.WINDOWS: mention buildconf.bat for builds off git
Daniel Stenberg [Thu, 3 Aug 2017 11:50:03 +0000 (13:50 +0200)]
BUILD.WINDOWS: mention buildconf.bat for builds off git

7 years agodarwinssl: fix curlssl_sha256sum() compiler warnings on first argument
Daniel Stenberg [Wed, 2 Aug 2017 21:22:53 +0000 (23:22 +0200)]
darwinssl: fix curlssl_sha256sum() compiler warnings on first argument

7 years agotest130: verify comments in .netrc
Daniel Stenberg [Wed, 2 Aug 2017 12:25:21 +0000 (14:25 +0200)]
test130: verify comments in .netrc

7 years agonetrc: skip lines starting with '#'
Gisle Vanem [Wed, 2 Aug 2017 12:24:51 +0000 (14:24 +0200)]
netrc: skip lines starting with '#'

Bug: https://curl.haxx.se/mail/lib-2017-08/0008.html

7 years agoCMake: set MSVC warning level to 4
Marcel Raad [Tue, 18 Jul 2017 16:46:53 +0000 (18:46 +0200)]
CMake: set MSVC warning level to 4

The MSVC warning level defaults to 3 in CMake. Change it to 4, which is
consistent with the Visual Studio and NMake builds. Disable level 4
warning C4127 for the library and additionally C4306 for the test
servers to get a clean CURL_WERROR build as that warning is raised in
some macros in older Visual Studio versions.

Ref: https://github.com/curl/curl/pull/1667#issuecomment-314082794
Closes https://github.com/curl/curl/pull/1711

7 years agoCURLOPT_NETRC.3: fix typo in 7e48aa386156f9c2
Daniel Stenberg [Wed, 2 Aug 2017 13:29:27 +0000 (15:29 +0200)]
CURLOPT_NETRC.3: fix typo in 7e48aa386156f9c2

Reported-by: Viktor Szakats
7 years agoCURLOPT_NETRC.3: mention the file name on windows
Daniel Stenberg [Wed, 2 Aug 2017 12:34:26 +0000 (14:34 +0200)]
CURLOPT_NETRC.3: mention the file name on windows

... and CURLOPT_NETRC_FILE(3).

7 years agotravis: build osx with libressl too
Daniel Stenberg [Wed, 2 Aug 2017 08:32:15 +0000 (10:32 +0200)]
travis: build osx with libressl too

7 years agotravis: build osx with openssl too
Daniel Stenberg [Wed, 2 Aug 2017 08:28:00 +0000 (10:28 +0200)]
travis: build osx with openssl too

7 years agotests/server/util: fix curltime mistake from 4dee50b9c80f9
Daniel Stenberg [Wed, 2 Aug 2017 09:53:27 +0000 (11:53 +0200)]
tests/server/util: fix curltime mistake from 4dee50b9c80f9

7 years agocurl_threads: fix MSVC compiler warning
Marcel Raad [Tue, 1 Aug 2017 09:56:41 +0000 (11:56 +0200)]
curl_threads: fix MSVC compiler warning

Use LongToHandle to convert from long to HANDLE in the Win32
implementation.
This should fix the following warning when compiling with
MSVC 11 (2012) in 64-bit mode:
lib\curl_threads.c(113): warning C4306:
'type cast' : conversion from 'long' to 'HANDLE' of greater size

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

7 years agoBUGS: improved phrasing about security bugs
Daniel Stenberg [Tue, 1 Aug 2017 13:06:08 +0000 (15:06 +0200)]
BUGS: improved phrasing about security bugs

Reported-by: Max Dymond
7 years agoBUGS: clarify how to report security related bugs
Daniel Stenberg [Tue, 1 Aug 2017 12:39:13 +0000 (14:39 +0200)]
BUGS: clarify how to report security related bugs

7 years agomulti: fix request timer management
Brad Spencer [Sat, 29 Jul 2017 14:44:39 +0000 (16:44 +0200)]
multi: fix request timer management

There are some bugs in how timers are managed for a single easy handle
that causes the wrong "next timeout" value to be reported to the
application when a new minimum needs to be recomputed and that new
minimum should be an existing timer that isn't currently set for the
easy handle.  When the application drives a set of easy handles via the
`curl_multi_socket_action()` API (for example), it gets told to wait the
wrong amount of time before the next call, which causes requests to
linger for a long time (or, it is my guess, possibly forever).

Bug: https://curl.haxx.se/mail/lib-2017-07/0033.html

7 years agocurl_setup: Define CURL_NO_OLDIES for building libcurl
Jay Satiro [Tue, 1 Aug 2017 06:56:48 +0000 (02:56 -0400)]
curl_setup: Define CURL_NO_OLDIES for building libcurl

.. to catch accidental use of deprecated error codes.

Ref: https://github.com/curl/curl/issues/1688#issuecomment-316764237

7 years agoconfigure: fix the check for IdnToUnicode
Jeremy Tan [Mon, 31 Jul 2017 11:24:38 +0000 (21:24 +1000)]
configure: fix the check for IdnToUnicode

Fixes #1669
Closes #1713

7 years agohttp: fix response code parser to avoid integer overflow
Daniel Stenberg [Mon, 31 Jul 2017 15:11:18 +0000 (17:11 +0200)]
http: fix response code parser to avoid integer overflow

test 1429 and 1433 were updated to work with the stricter HTTP status line
parser.

Closes #1714
Reported-by: Brian Carpenter
7 years agolibcurl: Stop using error codes defined under CURL_NO_OLDIES
Dwarakanath Yadavalli [Mon, 31 Jul 2017 05:52:04 +0000 (11:22 +0530)]
libcurl: Stop using error codes defined under CURL_NO_OLDIES

Fixes https://github.com/curl/curl/issues/1688
Closes https://github.com/curl/curl/pull/1712

7 years agoinclude.d: clarify --include is only for response headers
Jay Satiro [Sun, 30 Jul 2017 06:29:36 +0000 (02:29 -0400)]
include.d: clarify --include is only for response headers

Follow-up to 171f8de and de6de94.

Bug: https://github.com/curl/curl/commit/de6de94#commitcomment-23370851
Reported-by: Daniel Stenberg
7 years agocmake: support make uninstall
jasjuang [Mon, 10 Jul 2017 23:17:15 +0000 (16:17 -0700)]
cmake: support make uninstall

Closes #1674

7 years agoRELEASE-NOTES: synced with 001701c47
Daniel Stenberg [Sat, 29 Jul 2017 23:25:57 +0000 (01:25 +0200)]
RELEASE-NOTES: synced with 001701c47

7 years agoAppVeyor: now really use CURL_WERROR
Marcel Raad [Tue, 18 Jul 2017 17:06:55 +0000 (19:06 +0200)]
AppVeyor: now really use CURL_WERROR

It was misspelled as CURL_ERROR in commit
2d86e8d1286e0fbe3d811e2e87fa0b5e53722db4.

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

7 years agotool_help: clarify --include is only for response headers
Jay Satiro [Sat, 29 Jul 2017 05:33:25 +0000 (01:33 -0400)]
tool_help: clarify --include is only for response headers

Follow-up to 171f8de.

Ref: https://github.com/curl/curl/issues/1704

7 years agosplay: fix signed/unsigned mismatch warning
Jay Satiro [Sat, 29 Jul 2017 05:13:42 +0000 (01:13 -0400)]
splay: fix signed/unsigned mismatch warning

Follow-up to 4dee50b.

Ref: https://github.com/curl/curl/pull/1693

7 years agoinclude.d: clarify that it concerns the response headers
Daniel Stenberg [Fri, 28 Jul 2017 16:22:50 +0000 (18:22 +0200)]
include.d: clarify that it concerns the response headers

Reported-by: olesteban at github
Fixes #1704

7 years agocurl_rtmp: fix a compiler warning
Johannes Schindelin [Fri, 7 Jul 2017 09:52:48 +0000 (11:52 +0200)]
curl_rtmp: fix a compiler warning

The headers of librtmp declare the socket as `int`, and on Windows, that
disagrees with curl_socket_t.

Bug: #1652

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
7 years agotest1323: verify curlx_tvdiff
Daniel Stenberg [Fri, 28 Jul 2017 13:49:36 +0000 (15:49 +0200)]
test1323: verify curlx_tvdiff

7 years agotimeval: struct curltime is a struct timeval replacement
Daniel Stenberg [Fri, 28 Jul 2017 13:49:36 +0000 (15:49 +0200)]
timeval: struct curltime is a struct timeval replacement

... to make all libcurl internals able to use the same data types for
the struct members. The timeval struct differs subtly on several
platforms so it makes it cumbersome to use everywhere.

Ref: #1652
Closes #1693

7 years agodarwinssl: fix variable type mistake (regression)
Daniel Stenberg [Thu, 27 Jul 2017 16:30:11 +0000 (18:30 +0200)]
darwinssl: fix variable type mistake (regression)

... which made --tlsv1.2 not work because it would blank the max tls
version variable.

Reported-by: Nick Miyake
Bug: #1703

7 years agomulti: mention integer overflow risk if using > 500 million sockets
Daniel Stenberg [Wed, 26 Jul 2017 23:13:47 +0000 (01:13 +0200)]
multi: mention integer overflow risk if using > 500 million sockets

Reported-by: ovidiu-benea@users.noreply.github.com
Closes #1675
Closes #1683

7 years agochecksrc: escape open brace in regex
Daniel Stenberg [Wed, 26 Jul 2017 23:13:19 +0000 (01:13 +0200)]
checksrc: escape open brace in regex

... to silence warning.

7 years agonss: fix a possible use-after-free in SelectClientCert()
Kamil Dudka [Wed, 19 Jul 2017 16:02:26 +0000 (18:02 +0200)]
nss: fix a possible use-after-free in SelectClientCert()

... causing a SIGSEGV in showit() in case the handle used to initiate
the connection has already been freed.

This commit fixes a bug introduced in curl-7_19_5-204-g5f0cae803.

Reported-by: Rob Sanders
Bug: https://bugzilla.redhat.com/1436158

7 years agonss: unify the coding style of nss_send() and nss_recv()
Kamil Dudka [Thu, 20 Jul 2017 06:05:59 +0000 (08:05 +0200)]
nss: unify the coding style of nss_send() and nss_recv()

No changes in behavior intended by this commit.

7 years agotests/server/resolve.c: fix deprecation warning
Marcel Raad [Sun, 16 Jul 2017 12:28:10 +0000 (14:28 +0200)]
tests/server/resolve.c: fix deprecation warning

MSVC warns that gethostbyname is deprecated. Always use getaddrinfo
instead to fix this when IPv6 is enabled, also for IPv4 resolves. This
is also consistent with what libcurl does.

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

7 years agodarwinssl: fix pinnedpubkey build error
Jay Satiro [Mon, 17 Jul 2017 06:46:07 +0000 (02:46 -0400)]
darwinssl: fix pinnedpubkey build error

- s/SessionHandle/Curl_easy/

Bug: https://github.com/curl/curl/commit/eb16305#commitcomment-23035670
Reported-by: Gisle Vanem
7 years agortspd: fix GCC warning after MSVC warning fix
Marcel Raad [Sun, 16 Jul 2017 13:16:46 +0000 (15:16 +0200)]
rtspd: fix GCC warning after MSVC warning fix

Older GCC warns:
/tests/server/rtspd.c:1194:10: warning: missing braces around
initializer [-Wmissing-braces]

Fix this by using memset instead of an initializer.

7 years agolibtest: fix MSVC warning C4706
Marcel Raad [Sun, 16 Jul 2017 11:44:54 +0000 (13:44 +0200)]
libtest: fix MSVC warning C4706

With warning level 4, MSVC warns about assignments within conditional
expressions. Change the while loop to a do-while loop to fix this. This
change is also consistent with CODE_STYLE.md.

7 years agosockfilt: suppress conversion warning with explicit cast
Marcel Raad [Sun, 16 Jul 2017 11:28:45 +0000 (13:28 +0200)]
sockfilt: suppress conversion warning with explicit cast

MSVC warns when implicitly casting -1 to unsigned long.

7 years agortspd: fix MSVC level 4 warning
Marcel Raad [Sun, 16 Jul 2017 11:26:21 +0000 (13:26 +0200)]
rtspd: fix MSVC level 4 warning

warning C4701: potentially uninitialized local variable 'req' used

7 years agowinbuild: re-enable warning C4127 for curl tool
Marcel Raad [Fri, 14 Jul 2017 06:52:14 +0000 (08:52 +0200)]
winbuild: re-enable warning C4127 for curl tool

Disabled in cda19a345f6970e22fe8b7a808aeb8f086a21eac. It only needs to
be disabled for libcurl.

7 years agowinbuild: build with warning level 4
Marcel Raad [Sat, 8 Jul 2017 16:25:22 +0000 (18:25 +0200)]
winbuild: build with warning level 4

This is consistent with 7bc64561a2e63ca93e4b0b31d350773ba80955c2, which
changed the warning level from 3 to 4 for the Visual Studio project
files. But disable the level 4 warning C4127 "conditional expression is
constant", as that one is issued by older versions of the Windows SDK
as well as curl itself under some circumstances.

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

7 years agotravis: install libidn2
Max Dymond [Mon, 10 Jul 2017 16:56:36 +0000 (17:56 +0100)]
travis: install libidn2

Install libidn2 to increase test coverage (IDN tests)

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

7 years agotravis: enable warnings also in release mode
Marcel Raad [Sat, 8 Jul 2017 15:58:20 +0000 (17:58 +0200)]
travis: enable warnings also in release mode

... to get warnings also on Linux/GCC and OSX/clang.

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

7 years agotravis: install libssh2
Max Dymond [Fri, 7 Jul 2017 15:41:47 +0000 (16:41 +0100)]
travis: install libssh2

Install libssh2 to increase test coverage (SFTP, SCP)

7 years agosystem.h: include winsock2.h before windows.h
Marcel Raad [Wed, 12 Jul 2017 05:55:18 +0000 (07:55 +0200)]
system.h: include winsock2.h before windows.h

... to avoid compiler warnings if the user doesn't want
WIN32_LEAN_AND_MEAN.

7 years agobuild: remove WIN32_LEAN_AND_MEAN from individual build systems
Marcel Raad [Tue, 11 Jul 2017 14:51:48 +0000 (16:51 +0200)]
build: remove WIN32_LEAN_AND_MEAN from individual build systems

It's defined for all build systems in curl_setup.h since commit
beb08481d01a07a8b10938b1078a5e298b1c2912. This caused macro
redefinition warnings in the configure builds.

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

7 years agoISSUE_TEMPLATE: Add a comment not to file security issues on github
Jay Satiro [Tue, 11 Jul 2017 15:48:37 +0000 (11:48 -0400)]
ISSUE_TEMPLATE: Add a comment not to file security issues on github

7 years agocurl_setup: always define WIN32_LEAN_AND_MEAN on Windows
Marcel Raad [Mon, 10 Jul 2017 12:56:11 +0000 (14:56 +0200)]
curl_setup: always define WIN32_LEAN_AND_MEAN on Windows

Make sure to always define WIN32_LEAN_AND_MEAN before including any
Windows headers to avoid pulling in unnecessary headers. This avoids
unnecessary macro clashes and compiler warnings.

Ref: https://github.com/curl/curl/issues/1562
Closes https://github.com/curl/curl/pull/1672

7 years agostrerror: Preserve Windows error code in some functions
Jay Satiro [Tue, 11 Jul 2017 05:53:23 +0000 (01:53 -0400)]
strerror: Preserve Windows error code in some functions

This is a follow-up to af02162 which removed (SET_)ERRNO macros. That
commit was an earlier draft that I committed by mistake, which was then
remedied by a5834e5 and e909de6, and now this commit. With this commit
there is now no difference between the current code and the changes that
were approved in the final draft.

Thanks-to: Max Dymond, Marcel Raad, Daniel Stenberg, Gisle Vanem
Ref: https://github.com/curl/curl/pull/1589

7 years agotests: Fix up issues with errno in test files
Max Dymond [Mon, 10 Jul 2017 12:50:15 +0000 (13:50 +0100)]
tests: Fix up issues with errno in test files

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

7 years agoerrno: fix non-windows builds after af0216251b94e7
Daniel Stenberg [Mon, 10 Jul 2017 11:58:35 +0000 (13:58 +0200)]
errno: fix non-windows builds after af0216251b94e7

7 years agomake: fix docs build on OpenBSD
Ryan Winograd [Fri, 7 Jul 2017 22:02:43 +0000 (17:02 -0500)]
make: fix docs build on OpenBSD

Ref: #1591

7 years agoldap: fix MinGW compiler warning
Marcel Raad [Sat, 8 Jul 2017 15:33:58 +0000 (17:33 +0200)]
ldap: fix MinGW compiler warning

ldap_bind_s is marked as deprecated in w32api's winldap.h shipping with
the latest original MinGW, resulting in compiler warnings since commit
f0fe66f13c93d3d0af45d9fb1231c9164e0f9dc8. Fix this for the non-SSPI
case by using ldap_simple_bind_s again instead of ldap_bind_s with
LDAP_AUTH_SIMPLE.

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

7 years agocurl-compilers.m4: disable warning spam with Cygwin's clang
Marcel Raad [Sat, 8 Jul 2017 15:44:34 +0000 (17:44 +0200)]
curl-compilers.m4: disable warning spam with Cygwin's clang

When building with Cygwin or MinGW, libtool uses a wrapper executable
instead of a wrapper script [1], which is written in C and throws
missing-variable-declarations warnings. Don't enable these warnings on
Cygwin and MinGW in order to avoid warnings for every executable built,
which spams the test suite output when using Cygwin's clang.

[1] https://www.gnu.org/software/libtool/manual/html_node/Wrapper-executables.html

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

7 years agocurl_setup_once: Remove ERRNO/SET_ERRNO macros
Jay Satiro [Mon, 19 Jun 2017 04:52:38 +0000 (00:52 -0400)]
curl_setup_once: Remove ERRNO/SET_ERRNO macros

Prior to this change (SET_)ERRNO mapped to GetLastError/SetLastError
for Win32 and regular errno otherwise.

I reviewed the code and found no justifiable reason for conflating errno
on WIN32 with GetLastError/SetLastError. All Win32 CRTs support errno,
and any Win32 multithreaded CRT supports thread-local errno.

Fixes https://github.com/curl/curl/issues/895
Closes https://github.com/curl/curl/pull/1589

7 years agotool_getparam: fix potentially uninitialized err
Jay Satiro [Sun, 9 Jul 2017 16:04:42 +0000 (12:04 -0400)]
tool_getparam: fix potentially uninitialized err

7 years agosmb: rename variable to fix shadowing warning
Marcel Raad [Sat, 8 Jul 2017 21:19:36 +0000 (23:19 +0200)]
smb: rename variable to fix shadowing warning

GCC 4.6.3 on travis complains:
smb.c: In function ‘get_posix_time’:
smb.c:725:13: error: declaration of ‘time’ shadows a global declaration
[-Werror=shadow]

Fix this by renaming the variable.

7 years agotool_cb_wrt: fix variable shadowing warning
Marcel Raad [Sat, 8 Jul 2017 09:43:51 +0000 (11:43 +0200)]
tool_cb_wrt: fix variable shadowing warning

GCC 4.4 complains:
tool_cb_wrt.c:81: error: declaration of ‘isatty’ shadows a global
declaration
/usr/include/unistd.h:782: error: shadowed declaration is here

Fix this by renaming the variable.

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

7 years agoRELEASE-NOTES: synced with be2c999b8
Daniel Stenberg [Fri, 7 Jul 2017 22:15:03 +0000 (00:15 +0200)]
RELEASE-NOTES: synced with be2c999b8

7 years agotravis: install stunnel
Daniel Stenberg [Fri, 7 Jul 2017 14:42:44 +0000 (16:42 +0200)]
travis: install stunnel

7 years agovalgrind.supp: supress OpenSSL false positive seen on travis
Daniel Stenberg [Fri, 7 Jul 2017 14:23:13 +0000 (16:23 +0200)]
valgrind.supp: supress OpenSSL false positive seen on travis

7 years agotravis: detect and use valgrind for normal builds
Daniel Stenberg [Fri, 7 Jul 2017 12:46:17 +0000 (14:46 +0200)]
travis: detect and use valgrind for normal builds

Closes #1653

7 years agotravis: add SMB, DICT, TELNET torture to coverage test
Daniel Stenberg [Fri, 7 Jul 2017 09:03:24 +0000 (11:03 +0200)]
travis: add SMB, DICT, TELNET torture to coverage test

7 years agocmake: offer CMAKE_DEBUG_POSTFIX when building with MSVC
Paul Harris [Thu, 6 Jul 2017 15:53:41 +0000 (23:53 +0800)]
cmake: offer CMAKE_DEBUG_POSTFIX when building with MSVC

Removes BUILD_RELEASE_DEBUG_DIRS since it wasn't used anywhere.

Closes #1649

7 years agoCURLOPT_POSTFIELDS.3: explain the 100-continue magic better
Daniel Stenberg [Fri, 7 Jul 2017 10:43:17 +0000 (12:43 +0200)]
CURLOPT_POSTFIELDS.3: explain the 100-continue magic better

7 years agotest1452: add telnet negotiation
Max Dymond [Wed, 5 Jul 2017 09:12:10 +0000 (10:12 +0100)]
test1452: add telnet negotiation

Add a basic telnet server for negotiating some telnet options before
echoing back any data that's sent to it.

Closes #1645

7 years agotravis: do more tests in the coverage run
Daniel Stenberg [Fri, 7 Jul 2017 08:05:30 +0000 (10:05 +0200)]
travis: do more tests in the coverage run

I added a selection of torture and event tests that run "fast enough"

7 years agocurl_easy_escape.3: mention the (lack of) encoding
Daniel Stenberg [Fri, 7 Jul 2017 08:47:46 +0000 (10:47 +0200)]
curl_easy_escape.3: mention the (lack of) encoding

Fixes #1612
Reported-by: Jeroen Ooms
7 years agomemdebug: don't setbuf() if the file open failed
Gisle Vanem [Thu, 6 Jul 2017 21:14:29 +0000 (23:14 +0200)]
memdebug: don't setbuf() if the file open failed

Bug: https://github.com/curl/curl/issues/828#issuecomment-313475151

7 years agoappveyor: enable CURL_WERROR on all builds
Daniel Stenberg [Thu, 6 Jul 2017 10:12:51 +0000 (12:12 +0200)]
appveyor: enable CURL_WERROR on all builds

7 years agocmake: add CURL_WERROR for enabling "warning as errors"
Daniel Stenberg [Thu, 6 Jul 2017 10:12:31 +0000 (12:12 +0200)]
cmake: add CURL_WERROR for enabling "warning as errors"

7 years agocmake: remove spurious "-l" from linker flags
Hannes Magnusson [Wed, 7 Jun 2017 19:43:40 +0000 (12:43 -0700)]
cmake: remove spurious "-l" from linker flags

Fixes #1552

7 years agotest506: skip if threaded-resolver
Daniel Stenberg [Thu, 6 Jul 2017 09:11:43 +0000 (11:11 +0200)]
test506: skip if threaded-resolver

7 years agoruntests: support "threaded-resolver" as a feature
Daniel Stenberg [Thu, 6 Jul 2017 09:11:07 +0000 (11:11 +0200)]
runtests: support "threaded-resolver" as a feature

... to let tests require it or skip if present

7 years agoasyn-thread.c: fix unused variable warnings on macOS
Daniel Stenberg [Thu, 6 Jul 2017 08:22:28 +0000 (10:22 +0200)]
asyn-thread.c: fix unused variable warnings on macOS

7 years agohttp: s/TINY_INITIAL_POST_SIZE/EXPECT_100_THRESHOLD
Daniel Stenberg [Thu, 6 Jul 2017 09:20:57 +0000 (11:20 +0200)]
http: s/TINY_INITIAL_POST_SIZE/EXPECT_100_THRESHOLD

Make the name reflect its use better, and add a short comment describing
what it's for.

7 years agocmake: if inet_pton is used, bump _WIN32_WINNT
Daniel Stenberg [Wed, 5 Jul 2017 08:21:58 +0000 (10:21 +0200)]
cmake: if inet_pton is used, bump _WIN32_WINNT

... and make sure inet_pton is always checked for when *not* using Windows,
which is a regression from 4fc6ebe18.

Idea-by: Sergei Nikulov
7 years agoselect.h: avoid macro redefinition harder
Daniel Stenberg [Wed, 5 Jul 2017 10:32:09 +0000 (12:32 +0200)]
select.h: avoid macro redefinition harder

... by checking the POLLIN define, as the header file checks don't work
on Windows.

7 years agoinet_pton: fix include on windows to get prototype
Daniel Stenberg [Wed, 5 Jul 2017 08:21:58 +0000 (10:21 +0200)]
inet_pton: fix include on windows to get prototype

inet_pton() exists on Windows and gets used by our cmake builds. Make
sure the correct header file is included to avoid compiler warnings.

Closes #1639

7 years agoTODO: 1.10 auto-detect proxy
Daniel Stenberg [Wed, 5 Jul 2017 08:07:27 +0000 (10:07 +0200)]
TODO: 1.10 auto-detect proxy

Closes #1572

7 years agoTODO: HTTP proxy CONNECT is non-blocking now
Daniel Stenberg [Wed, 5 Jul 2017 08:00:26 +0000 (10:00 +0200)]
TODO: HTTP proxy CONNECT is non-blocking now

7 years agocmake: fix send/recv argument scanner for windows
Daniel Stenberg [Wed, 5 Jul 2017 06:29:43 +0000 (08:29 +0200)]
cmake: fix send/recv argument scanner for windows

... by simply trying the Windows argument types first.

Fixes #1640

7 years agoRELEASE-NOTES: synced with 596cfb6c0
Daniel Stenberg [Tue, 4 Jul 2017 23:11:41 +0000 (01:11 +0200)]
RELEASE-NOTES: synced with 596cfb6c0

7 years agosmb: add support for CURLOPT_FILETIME
Gisle Vanem [Tue, 4 Jul 2017 13:51:45 +0000 (15:51 +0200)]
smb: add support for CURLOPT_FILETIME

Bug: https://curl.haxx.se/mail/lib-2017-07/0005.html

Closes #1643

7 years agotravis: install nghttp2 on linux builds
Daniel Stenberg [Tue, 4 Jul 2017 21:03:49 +0000 (23:03 +0200)]
travis: install nghttp2 on linux builds

Closes #1642

7 years agosmb: fix build for djgpp/MSDOS
Gisle Vanem [Tue, 4 Jul 2017 13:42:33 +0000 (15:42 +0200)]
smb: fix build for djgpp/MSDOS

bug: https://curl.haxx.se/mail/lib-2017-07/0005.html

7 years agoconfigure: try ldap/lber in reversed order first
Daniel Stenberg [Tue, 4 Jul 2017 09:33:51 +0000 (11:33 +0200)]
configure: try ldap/lber in reversed order first

When scanning for which LDAP libraries to use, try the -lldap -llber
combination before the reversed order since it has a greater chance of
working when linking with libcurl statically.

Fixes #1619
Closes #1634
Reported-by: David E. Narváez
7 years agoconfigure: remove checks for 5 functions never used
Daniel Stenberg [Tue, 4 Jul 2017 07:01:39 +0000 (09:01 +0200)]
configure: remove checks for 5 functions never used

fork, getprotobyname, inet_addr, perror, uname

closes #1638