]> granicus.if.org Git - curl/log
curl
7 years agomulti: remove leftover debug infof() calls from e9fd794a6
Daniel Stenberg [Fri, 12 May 2017 15:19:30 +0000 (17:19 +0200)]
multi: remove leftover debug infof() calls from e9fd794a6

7 years agopipeline: fix mistakenly trying to pipeline POSTs
Daniel Stenberg [Fri, 12 May 2017 14:29:06 +0000 (16:29 +0200)]
pipeline: fix mistakenly trying to pipeline POSTs

The function IsPipeliningPossible() would return TRUE if either
pipelining OR HTTP/2 were possible on a connection, which would lead to
it returning TRUE even for POSTs on HTTP/1 connections.

It now returns a bitmask so that the caller can differentiate which kind
the connection allows.

Fixes #1481
Closes #1483
Reported-by: stootill at github
7 years agombedtls: Support server renegotiation request
Ron Eldor [Tue, 9 May 2017 13:57:19 +0000 (16:57 +0300)]
mbedtls: Support server renegotiation request

Tested with servers: IIS 7.5; OpenSSL 1.0.2.

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

7 years agocookie_interface: fix -Wcomma warning
Marcel Raad [Thu, 11 May 2017 07:59:56 +0000 (09:59 +0200)]
cookie_interface: fix -Wcomma warning

clang 5.0 complains:
possible misuse of comma operator here [-Wcomma]

7 years agoformdata: fix -Wcomma warning
Marcel Raad [Thu, 11 May 2017 08:01:58 +0000 (10:01 +0200)]
formdata: fix -Wcomma warning

clang 5.0 complains:
possible misuse of comma operator here [-Wcomma]

Change the comma to a semicolon to fix that.

7 years agomulti: use a fixed array of timers instead of malloc
Daniel Stenberg [Tue, 9 May 2017 10:47:49 +0000 (12:47 +0200)]
multi: use a fixed array of timers instead of malloc

... since the total amount is low this is faster, easier and reduces
memory overhead.

Also, Curl_expire_done() can now mark an expire timeout as done so that
it never times out.

Closes #1472

7 years agomulti: assign IDs to all timers and make each timer singleton
Daniel Stenberg [Tue, 9 May 2017 10:47:49 +0000 (12:47 +0200)]
multi: assign IDs to all timers and make each timer singleton

 A) reduces the timeout lists drastically

 B) prevents a lot of superfluous loops for timers that expires "in vain"
    when it has actually already been extended to fire later on

7 years agotests: remove superfluous test 1399
Richard Hsu [Tue, 9 May 2017 21:30:15 +0000 (14:30 -0700)]
tests: remove superfluous test 1399

@MarcelRaad noted that `test1399` causes infinite loop on MinGW.
Looking into this, seems like it is related to how Windows handles
CRLF. See https://github.com/curl/curl/commit/9e093f by @mback2k.
Removing `test1399` as it's identical to `test1326` then with such a
fix.

Test 1399 was broughy by commit 862b02f8947039e

Closes #1478

7 years agotests: make test file names more unique
Dan Fandrich [Tue, 9 May 2017 17:49:17 +0000 (19:49 +0200)]
tests: make test file names more unique

Include the test number in the names of files written out by tests to
reduce the chance of accidental duplication and to make it more clear
which test is associated with which file.

7 years agotests: removed redundant --trace-ascii arguments
Dan Fandrich [Tue, 9 May 2017 17:43:22 +0000 (19:43 +0200)]
tests: removed redundant --trace-ascii arguments

This is already added by the test suite; it's not clear why all these
tests had it, unless it's cargo-culting.

7 years agotool: fix remaining -Wcast-qual warnings
Marcel Raad [Tue, 9 May 2017 17:20:28 +0000 (19:20 +0200)]
tool: fix remaining -Wcast-qual warnings

Avoid casting away low-level const.

7 years agoformboundary: convert assert into run-time check
Daniel Stenberg [Tue, 9 May 2017 07:08:25 +0000 (09:08 +0200)]
formboundary: convert assert into run-time check

... to really make sure the boundary fits in the target buffer.

Fixes unused parameter 'buflen' warning.

Reported-by: Michael Kaufmann
Bug: https://github.com/curl/curl/pull/1468#issuecomment-300078754

7 years agotests: list the primary server first in the server section
Dan Fandrich [Mon, 8 May 2017 22:36:38 +0000 (00:36 +0200)]
tests: list the primary server first in the server section

7 years agocurl: generate the --help output
Daniel Stenberg [Mon, 8 May 2017 21:30:29 +0000 (23:30 +0200)]
curl: generate the --help output

... using the docs/cmdline-opts/gen.pl script, so that we get all the
command line option documentation from the same source.

The generation of the list has to be done manually and pasted into the
source code.

Closes #1465

7 years agotests: updated for modified fake random
Daniel Stenberg [Mon, 8 May 2017 21:23:29 +0000 (23:23 +0200)]
tests: updated for modified fake random

7 years agorand: treat fake entropy the same regardless of endianness
Jay Satiro [Mon, 8 May 2017 21:23:28 +0000 (23:23 +0200)]
rand: treat fake entropy the same regardless of endianness

When the random seed is purposely made predictable for testing purposes
by using the CURL_ENTROPY environment variable, process that data in an
endian agnostic way so the the initial random seed is the same
regardless of endianness.

- Change Curl_rand to write to a char array instead of int array.

- Add Curl_rand_hex to write random hex characters to a buffer.

Fixes #1315
Closes #1468

Co-authored-by: Daniel Stenberg
Reported-by: Michael Kaufmann
7 years agotests: give each stunnel.conf file a unique name
Dan Fandrich [Sun, 7 May 2017 13:02:02 +0000 (15:02 +0200)]
tests: give each stunnel.conf file a unique name

Otherwise, subsequent uses of stunnel overwrite the configuration file
of previous invocations so they can no longer be inspected.

7 years agotool_msgs: remove wrong cast
Marcel Raad [Mon, 8 May 2017 18:23:44 +0000 (20:23 +0200)]
tool_msgs: remove wrong cast

Commit 481e0de00a9003b9c5220b120e3fc302d9b0932d changed the variable
type from int to size_t, so don't cast the result of strlen to int
anymore.

7 years agotftpd: fix signed/unsigned mismatch warnings
Marcel Raad [Mon, 8 May 2017 18:09:32 +0000 (20:09 +0200)]
tftpd: fix signed/unsigned mismatch warnings

alarm's argument is unsigned.

7 years agolibtest: fix MinGW-w64 warnings
Marcel Raad [Mon, 8 May 2017 17:59:46 +0000 (19:59 +0200)]
libtest: fix MinGW-w64 warnings

long is 32 bits while size_t is 64 bits on MinGW-w64, so
typecheck-gcc.h complains when using size_t for a long option.
Also, curl_socket_t is unsigned long long rather than int.

7 years agocurl.1: depend the build on the Makefile.inc too
Daniel Stenberg [Mon, 8 May 2017 13:10:09 +0000 (15:10 +0200)]
curl.1: depend the build on the Makefile.inc too

... to also make it update when we remove files, like we did for
--environment in commit a8e388dd1095.

7 years agoRELEASE-NOTES: synced with e3f84efc32d6b01a
Daniel Stenberg [Mon, 8 May 2017 08:18:30 +0000 (10:18 +0200)]
RELEASE-NOTES: synced with e3f84efc32d6b01a

7 years agoruntests: fix "use of undefined value" warning in -R handling
Daniel Stenberg [Mon, 8 May 2017 08:08:48 +0000 (10:08 +0200)]
runtests: fix "use of undefined value" warning in -R handling

7 years agotest537: use correct variable type
Marcel Raad [Fri, 5 May 2017 07:37:05 +0000 (09:37 +0200)]
test537: use correct variable type

Avoids narrowing conversion warnings because rlim_t is usually
unsigned long.

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

7 years agosendrecv: fix MinGW-w64 warning
Marcel Raad [Sun, 7 May 2017 20:14:28 +0000 (22:14 +0200)]
sendrecv: fix MinGW-w64 warning

The first argument to select is an int, while curl_socket_t is
unsigned long long when using WinSock. It's ignored anyway [1].

[1] https://msdn.microsoft.com/en-us/library/windows/desktop/ms740141.aspx

7 years agotool_parsecfg: fix -Wcast-qual warning
Marcel Raad [Sun, 7 May 2017 18:27:12 +0000 (20:27 +0200)]
tool_parsecfg: fix -Wcast-qual warning

Don't convert string literal to char * before assigning it to
const char *.

7 years agoasyn-thread: fix unused macro warnings
Marcel Raad [Sun, 7 May 2017 17:02:34 +0000 (19:02 +0200)]
asyn-thread: fix unused macro warnings

Don't do anything in this file if CURLRES_THREADED is not defined.

7 years agotftp: silence bad-function-cast warning
Marcel Raad [Sun, 7 May 2017 14:26:19 +0000 (16:26 +0200)]
tftp: silence bad-function-cast warning

The cases this warns about are handled elsewhere, so just use an
intermediate variable to silence the warning.

7 years agobuildconf: fix hang on IRIX
canavan at github [Sat, 6 May 2017 22:06:56 +0000 (00:06 +0200)]
buildconf: fix hang on IRIX

Apparently, /usr/bin/m4 ignores the --version parameter and waits for
input from stdin.

Fixes #1471

7 years agoopts: fix bad example formatting \n => \\n
Daniel Stenberg [Sat, 6 May 2017 21:51:29 +0000 (23:51 +0200)]
opts: fix bad example formatting \n => \\n

...to render properly nroff.

7 years agoopts: examples added to 8 more libcurl option man pages
Daniel Stenberg [Sat, 6 May 2017 21:38:39 +0000 (23:38 +0200)]
opts: examples added to 8 more libcurl option man pages

7 years agocurl: remove tool_writeenv.[ch]
Daniel Stenberg [Wed, 3 May 2017 12:28:40 +0000 (14:28 +0200)]
curl: remove tool_writeenv.[ch]

... and USE_ENVIRONMENT and --environment. It was once added for RISC OS
support and its platform specific behavior has been annoying ever
since. Added in commit c3c8bbd3b2688da8e, mostly unchanged since
then. Most probably not actually used for years.

Closes #1463

7 years agoruntests.pl: simplify the datacheck read section
Dan Fandrich [Sat, 6 May 2017 07:04:00 +0000 (09:04 +0200)]
runtests.pl: simplify the datacheck read section

Also, document that numbered datacheck sections are possible.

7 years agotests: fix -Wcast-qual warnings
Marcel Raad [Fri, 5 May 2017 19:29:50 +0000 (21:29 +0200)]
tests: fix -Wcast-qual warnings

Avoid casting string literals to non-const char *.

7 years agodocs/opts: 24 more man pages now have examples
Daniel Stenberg [Fri, 5 May 2017 15:26:08 +0000 (17:26 +0200)]
docs/opts: 24 more man pages now have examples

7 years agodocs/opts: 23 more man pages now have examples
Daniel Stenberg [Fri, 5 May 2017 14:30:23 +0000 (16:30 +0200)]
docs/opts: 23 more man pages now have examples

7 years agotests/server: run checksrc by default in debug-builds
Daniel Stenberg [Fri, 5 May 2017 13:51:25 +0000 (15:51 +0200)]
tests/server: run checksrc by default in debug-builds

7 years agocurl_slist_append.3: clarify a NULL input creates a new list
Daniel Stenberg [Fri, 5 May 2017 11:54:32 +0000 (13:54 +0200)]
curl_slist_append.3: clarify a NULL input creates a new list

7 years agounit1305: fix compiler warning
Marcel Raad [Fri, 5 May 2017 09:44:22 +0000 (11:44 +0200)]
unit1305: fix compiler warning

calloc and ai_addrlen expect different (usually unsigned) types.

7 years agoruntests: use -R for random order
Daniel Stenberg [Fri, 5 May 2017 06:12:24 +0000 (08:12 +0200)]
runtests: use -R for random order

Suggested-by: Dan Fandrich
7 years agoruntests: add -o to run test cases in scrambled order
Daniel Stenberg [Thu, 4 May 2017 14:32:56 +0000 (16:32 +0200)]
runtests: add -o to run test cases in scrambled order

... instead of numerical order.

Closes #1466

7 years agosockfilt.c: shortened too long line
Dan Fandrich [Thu, 4 May 2017 20:36:40 +0000 (22:36 +0200)]
sockfilt.c: shortened too long line

7 years agotests/server: make string literals const
Marcel Raad [Thu, 4 May 2017 18:19:10 +0000 (20:19 +0200)]
tests/server: make string literals const

assign string literals to const char * instead of char * in order to
avoid a lot of these warnings:
cast from 'const char *' to 'char *' drops const qualifier
[-Wcast-qual]

7 years agoschannel: return a more specific error code for SEC_E_UNTRUSTED_ROOT
Dan Fandrich [Thu, 4 May 2017 16:19:13 +0000 (18:19 +0200)]
schannel: return a more specific error code for SEC_E_UNTRUSTED_ROOT

7 years agotest557: set a known good numeric locale
Dan Fandrich [Thu, 4 May 2017 16:03:03 +0000 (18:03 +0200)]
test557: set a known good numeric locale

Windows does not allow setting the locale with environment variables (as
the test attempted to do), so the test failed when run with a user
locale that has a comma as radixchar. Changed the test to call
setlocale() explicitly to ensure that a known working locale is set even
on Windows.

7 years agocurl: fix warning "comma at end of enumerator list"
Daniel Stenberg [Thu, 4 May 2017 13:49:38 +0000 (15:49 +0200)]
curl: fix warning "comma at end of enumerator list"

7 years agotest559: verify use of minimum CURLOPT_BUFFERSIZE
Daniel Stenberg [Thu, 4 May 2017 13:39:04 +0000 (15:39 +0200)]
test559: verify use of minimum CURLOPT_BUFFERSIZE

7 years agocurl_setup_once: use SEND_QUAL_ARG2 for swrite
Marcel Raad [Thu, 4 May 2017 06:50:35 +0000 (08:50 +0200)]
curl_setup_once: use SEND_QUAL_ARG2 for swrite

SEND_QUAL_ARG2 had to be set, but was never used. Use it in swrite to
avoid warnings about casting away low-level const.

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

7 years agoCURLINFO_REDIRECT_URL.3: add example
Daniel Stenberg [Wed, 3 May 2017 22:00:13 +0000 (00:00 +0200)]
CURLINFO_REDIRECT_URL.3: add example

7 years agoCURLINFO_EFFECTIVE_URL.3: add example
Daniel Stenberg [Wed, 3 May 2017 22:00:07 +0000 (00:00 +0200)]
CURLINFO_EFFECTIVE_URL.3: add example

7 years agolib: fix compiler warnings
Marcel Raad [Tue, 2 May 2017 18:47:13 +0000 (20:47 +0200)]
lib: fix compiler warnings

Fix the following warnings when building the tests by using the correct
types:
cast from 'const char *' to 'void *' drops const qualifier
[-Wcast-qual]
implicit conversion changes signedness [-Wsign-conversion]

7 years agotypecheck-gcc: add support for CURLINFO_SOCKET
Marcel Raad [Wed, 26 Apr 2017 18:14:51 +0000 (20:14 +0200)]
typecheck-gcc: add support for CURLINFO_SOCKET

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

7 years agotypecheck-gcc: add missing string options
Marcel Raad [Wed, 26 Apr 2017 17:56:24 +0000 (19:56 +0200)]
typecheck-gcc: add missing string options

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

7 years agoabstract-unix-socket.d: shorten the help text to fit within 79 cols
Daniel Stenberg [Wed, 3 May 2017 12:22:58 +0000 (14:22 +0200)]
abstract-unix-socket.d: shorten the help text to fit within 79 cols

7 years agoRELEASE-NOTES: synced with 862b02f89
Daniel Stenberg [Tue, 2 May 2017 21:41:21 +0000 (23:41 +0200)]
RELEASE-NOTES: synced with 862b02f89

7 years agoTelnet: Write full buffer instead of byte-by-byte
Richard Hsu [Wed, 5 Apr 2017 02:26:29 +0000 (19:26 -0700)]
Telnet: Write full buffer instead of byte-by-byte

Previous TODO wanting to write in chunks. We should support writing more
at once since some TELNET servers may respond immediately upon first
byte written such as WHOIS servers.

Closes #1389

7 years agocurl: non-boolean command line args reject --no- prefixes
Daniel Stenberg [Sun, 30 Apr 2017 23:23:53 +0000 (01:23 +0200)]
curl: non-boolean command line args reject --no- prefixes

... and instead properly respond with an error message to the user
instead of silently ignoring.

Fixes #1453
Closes #1458

7 years agotestpart: remove _MPRINTF_REPLACE
Marcel Raad [Tue, 2 May 2017 19:09:41 +0000 (21:09 +0200)]
testpart: remove _MPRINTF_REPLACE

Support for _MPRINTF_REPLACE in mprintf.h was removed in
55452ebdff47f98bf3cc383f1dfc3623fcaefefd, replaced with curl_printf.h.

7 years agogtls: fixed a lingering BUFSIZE reference
Dan Fandrich [Tue, 2 May 2017 07:08:56 +0000 (09:08 +0200)]
gtls: fixed a lingering BUFSIZE reference

7 years agossh: fix compiler warning from e40e9d7f0de
Daniel Stenberg [Tue, 2 May 2017 06:32:04 +0000 (08:32 +0200)]
ssh: fix compiler warning from e40e9d7f0de

7 years agourl: let CURLOPT_BUFFERSIZE realloc to smaller sizes too
Daniel Stenberg [Sun, 30 Apr 2017 22:31:56 +0000 (00:31 +0200)]
url: let CURLOPT_BUFFERSIZE realloc to smaller sizes too

Closes #1449

7 years agoBUFSIZE: rename to READBUFFER_*, make separate MASTERBUF_SIZE
Daniel Stenberg [Tue, 25 Apr 2017 13:31:14 +0000 (15:31 +0200)]
BUFSIZE: rename to READBUFFER_*, make separate MASTERBUF_SIZE

7 years agoopenssl: use local stack for temp storage
Daniel Stenberg [Tue, 25 Apr 2017 13:28:50 +0000 (15:28 +0200)]
openssl: use local stack for temp storage

7 years agosendf: remove use of BUFSIZE from debug data conversions
Daniel Stenberg [Tue, 25 Apr 2017 13:19:19 +0000 (15:19 +0200)]
sendf: remove use of BUFSIZE from debug data conversions

The buffer can have other sizes.

7 years agobuffer: use data->set.buffer_size instead of BUFSIZE
Daniel Stenberg [Tue, 25 Apr 2017 12:38:34 +0000 (14:38 +0200)]
buffer: use data->set.buffer_size instead of BUFSIZE

... to properly use the dynamically set buffer size!

7 years agokrb5: use private buffer for temp string, not receive buffer
Daniel Stenberg [Tue, 25 Apr 2017 12:37:45 +0000 (14:37 +0200)]
krb5: use private buffer for temp string, not receive buffer

7 years agoupload: UPLOAD_BUFSIZE is now for the upload buffer
Daniel Stenberg [Tue, 25 Apr 2017 12:37:06 +0000 (14:37 +0200)]
upload: UPLOAD_BUFSIZE is now for the upload buffer

7 years agounit1606: do not print/access buffer
Daniel Stenberg [Tue, 25 Apr 2017 06:46:18 +0000 (08:46 +0200)]
unit1606: do not print/access buffer

It was a wrong assumption that it could do that!

7 years agohttp-proxy: use a dedicated CONNECT response buffer
Daniel Stenberg [Mon, 24 Apr 2017 23:03:17 +0000 (01:03 +0200)]
http-proxy: use a dedicated CONNECT response buffer

To make it suitably independent of the receive buffer and its flexible
size.

7 years agotransfer: fix minor buffer_size mistake
Daniel Stenberg [Mon, 24 Apr 2017 22:50:50 +0000 (00:50 +0200)]
transfer: fix minor buffer_size mistake

7 years agofailf: use private buffer, don't clobber receive buffer
Daniel Stenberg [Mon, 24 Apr 2017 22:50:21 +0000 (00:50 +0200)]
failf: use private buffer, don't clobber receive buffer

7 years agopingpong: use the set buffer size
Daniel Stenberg [Mon, 24 Apr 2017 22:50:04 +0000 (00:50 +0200)]
pingpong: use the set buffer size

7 years agohttp2: use the correct set buffer size
Daniel Stenberg [Mon, 24 Apr 2017 22:49:23 +0000 (00:49 +0200)]
http2: use the correct set buffer size

7 years agohttp: don't clobber the receive buffer for timecond
Daniel Stenberg [Mon, 24 Apr 2017 22:48:56 +0000 (00:48 +0200)]
http: don't clobber the receive buffer for timecond

7 years agobuffer_size: make sure it always has the correct size
Daniel Stenberg [Mon, 24 Apr 2017 22:16:10 +0000 (00:16 +0200)]
buffer_size: make sure it always has the correct size

Removes the need for CURL_BUFSIZE

7 years agofile: use private buffer for C-L output
Daniel Stenberg [Mon, 24 Apr 2017 22:15:28 +0000 (00:15 +0200)]
file: use private buffer for C-L output

... instead of clobbering the download buffer.

7 years agoCURLOPT_BUFFERSIZE: 1024 bytes is now the minimum size
Daniel Stenberg [Mon, 24 Apr 2017 22:09:22 +0000 (00:09 +0200)]
CURLOPT_BUFFERSIZE: 1024 bytes is now the minimum size

The buffer is needed to receive FTP, HTTP CONNECT responses etc so
already at this size things risk breaking and smaller is certainly not
wise.

7 years agoftp: use private buffer for temp storage, not receive buffer
Daniel Stenberg [Mon, 24 Apr 2017 14:05:46 +0000 (16:05 +0200)]
ftp: use private buffer for temp storage, not receive buffer

7 years agohttp: use private user:password output buffer
Daniel Stenberg [Mon, 24 Apr 2017 13:33:57 +0000 (15:33 +0200)]
http: use private user:password output buffer

Don't clobber the receive buffer.

7 years agoanyauthput: remove unused code
Marcel Raad [Mon, 1 May 2017 19:51:02 +0000 (21:51 +0200)]
anyauthput: remove unused code

The definition of TRUE was introduced in
4a728747e6f8845e500910e397dfc99aaf4a7984 and is not used anymore since
e664cd5826d43930fcc5b5dbaedbec94af33184b.
The usage of intptr_t was removed in
32e38b8f42477cf5ce3c3fef2fcc9db82f7fb7be.

7 years agotool: Fix missing prototype warnings for CURL_DOES_CONVERSIONS
Jay Satiro [Mon, 1 May 2017 18:10:43 +0000 (14:10 -0400)]
tool: Fix missing prototype warnings for CURL_DOES_CONVERSIONS

- Include tool_convert.h where needed.

Bug: https://github.com/curl/curl/issues/1460
Reported-by: Gisle Vanem
7 years agocurl_setup: Ensure no more than one IDN lib is enabled
Jay Satiro [Mon, 1 May 2017 17:44:39 +0000 (13:44 -0400)]
curl_setup: Ensure no more than one IDN lib is enabled

Prior to this change it was possible for libcurl to be built with both
Windows' native IDN lib (normaliz) and libidn2 enabled. It appears that
doesn't offer any benefit --and could cause a bug-- since libcurl's IDN
handling is written to use either one but not both.

Bug: https://github.com/curl/curl/issues/1441#issuecomment-297689856
Reported-by: Gisle Vanem
7 years agogetpart: use correct variable type
Marcel Raad [Mon, 1 May 2017 11:17:57 +0000 (13:17 +0200)]
getpart: use correct variable type

This fixes the following clang warning:
getpart.c:201:17: warning: cast from function call of type 'CURLcode'
to non-matching type 'int' [-Wbad-function-cast]

7 years agotests: declare TU-local variables static
Marcel Raad [Mon, 1 May 2017 10:55:09 +0000 (12:55 +0200)]
tests: declare TU-local variables static

This fixes missing-variable-declarations warnings when building with
clang.

7 years agotool_cb_prg: fix double-promotion warning
Marcel Raad [Mon, 1 May 2017 09:46:44 +0000 (11:46 +0200)]
tool_cb_prg: fix double-promotion warning

clang complains:
tool_cb_prg.c:86:22: error: implicit conversion increases
floating-point precision: 'float' to 'double'
[-Werror,-Wdouble-promotion]

Fix this by using a double instead of a float constant.

7 years agoexamples: fixed too long line and too long string warnings
Dan Fandrich [Mon, 1 May 2017 07:16:12 +0000 (09:16 +0200)]
examples: fixed too long line and too long string warnings

7 years agoexamples: declare TU-local variables static
Marcel Raad [Sun, 30 Apr 2017 21:29:31 +0000 (23:29 +0200)]
examples: declare TU-local variables static

This fixes missing-variable-declarations warnings when building with
clang.

7 years agohttp2: declare TU-local variables static
Marcel Raad [Sun, 30 Apr 2017 20:33:33 +0000 (22:33 +0200)]
http2: declare TU-local variables static

This fixes the following clang warnings:

http2.c:184:27: error: no previous extern declaration for non-static
variable 'Curl_handler_http2' [-Werror,-Wmissing-variable-declarations]
http2.c:204:27: error: no previous extern declaration for non-static
variable 'Curl_handler_http2_ssl'
[-Werror,-Wmissing-variable-declarations]

7 years agounit1604: fixed indentation
Dan Fandrich [Sun, 30 Apr 2017 13:21:54 +0000 (15:21 +0200)]
unit1604: fixed indentation

7 years agounit1604: fixed compilation under Windows, broken in the previous commit
Dan Fandrich [Sun, 30 Apr 2017 11:35:17 +0000 (13:35 +0200)]
unit1604: fixed compilation under Windows, broken in the previous commit

7 years agotests: fixed OOM handling of unit tests to abort test
Dan Fandrich [Sun, 30 Apr 2017 08:54:26 +0000 (10:54 +0200)]
tests: fixed OOM handling of unit tests to abort test

It's dangerous to continue to run the test when a memory alloc fails.

7 years agocurl_rtmp: fix missing-variable-declarations warnings
Marcel Raad [Sat, 29 Apr 2017 17:17:51 +0000 (19:17 +0200)]
curl_rtmp: fix missing-variable-declarations warnings

clang complains:

curl_rtmp.c:61:27: error: no previous extern declaration for non-static variable 'Curl_handler_rtmp' [-Werror,-Wmissing-variable-declarations]
curl_rtmp.c:81:27: error: no previous extern declaration for non-static variable 'Curl_handler_rtmpt' [-Werror,-Wmissing-variable-declarations]
curl_rtmp.c:101:27: error: no previous extern declaration for non-static variable 'Curl_handler_rtmpe' [-Werror,-Wmissing-variable-declarations]
curl_rtmp.c:121:27: error: no previous extern declaration for non-static variable 'Curl_handler_rtmpte' [-Werror,-Wmissing-variable-declarations]
curl_rtmp.c:141:27: error: no previous extern declaration for non-static variable 'Curl_handler_rtmps' [-Werror,-Wmissing-variable-declarations]
curl_rtmp.c:161:27: error: no previous extern declaration for non-static variable 'Curl_handler_rtmpts' [-Werror,-Wmissing-variable-declarations]

Fix this by including the header file.

7 years agourl: fixed a memory leak on OOM while setting CURLOPT_BUFFERSIZE
Dan Fandrich [Sat, 29 Apr 2017 16:52:51 +0000 (18:52 +0200)]
url: fixed a memory leak on OOM while setting CURLOPT_BUFFERSIZE

7 years agotests: added --remote-time tests for remaining protocols that support it
Dan Fandrich [Sat, 29 Apr 2017 08:16:06 +0000 (10:16 +0200)]
tests: added --remote-time tests for remaining protocols that support it

7 years agoruntests.pl: support multiline <postcheck> commands
Dan Fandrich [Sat, 29 Apr 2017 08:00:15 +0000 (10:00 +0200)]
runtests.pl: support multiline <postcheck> commands

7 years agotool_operate: use utimes instead of obsolescent utime when available
Dan Fandrich [Wed, 26 Apr 2017 23:24:07 +0000 (01:24 +0200)]
tool_operate: use utimes instead of obsolescent utime when available

7 years agotest1443: test --remote-time
Dan Fandrich [Thu, 27 Apr 2017 20:29:06 +0000 (22:29 +0200)]
test1443: test --remote-time

7 years agohttp-proxy: removed unused argument in CURL_DISABLE_PROXY case
Dan Fandrich [Thu, 27 Apr 2017 09:42:04 +0000 (11:42 +0200)]
http-proxy: removed unused argument in CURL_DISABLE_PROXY case

Missed in commit 55c3c02e

7 years agocookie_interface.c: changed the other domain to example.com too
Daniel Stenberg [Wed, 26 Apr 2017 22:30:34 +0000 (00:30 +0200)]
cookie_interface.c: changed the other domain to example.com too

7 years agocookie_interface.c: fix cookie domain so the example works
Daniel Stenberg [Wed, 26 Apr 2017 22:27:59 +0000 (00:27 +0200)]
cookie_interface.c: fix cookie domain so the example works