]> granicus.if.org Git - curl/log
curl
8 years agoversion: thread safety
Jay Satiro [Wed, 16 Mar 2016 23:13:42 +0000 (19:13 -0400)]
version: thread safety

8 years agotransfer: Removed redundant HTTP authentication include files
Steve Holme [Wed, 16 Mar 2016 07:13:16 +0000 (07:13 +0000)]
transfer: Removed redundant HTTP authentication include files

It would also seem that share.h is not required here either as there
are no references to the Curl_share structure or functions.

8 years agoeasy: Removed redundant HTTP authentication include files
Steve Holme [Wed, 16 Mar 2016 06:59:42 +0000 (06:59 +0000)]
easy: Removed redundant HTTP authentication include files

8 years agoCURLOPT_SSLENGINE.3: Only for OpenSSL built with engine support
Jay Satiro [Tue, 15 Mar 2016 20:00:36 +0000 (16:00 -0400)]
CURLOPT_SSLENGINE.3: Only for OpenSSL built with engine support

Bug: https://curl.haxx.se/mail/lib-2016-03/0150.html
Reported-by: Oliver Graute
8 years agocurl_sasl: Minor code indent fixes
Steve Holme [Tue, 15 Mar 2016 06:47:13 +0000 (06:47 +0000)]
curl_sasl: Minor code indent fixes

8 years agoruntests: mention when run event-based
Daniel Stenberg [Mon, 14 Mar 2016 14:39:16 +0000 (15:39 +0100)]
runtests: mention when run event-based

8 years agoeasy: add check to malloc() when running event-based
Daniel Stenberg [Mon, 14 Mar 2016 14:37:03 +0000 (15:37 +0100)]
easy: add check to malloc() when running event-based

... to allow torture tests then too.

8 years agomemdebug: skip logging the limit countdown, fflush when reached
Daniel Stenberg [Mon, 14 Mar 2016 14:36:40 +0000 (15:36 +0100)]
memdebug: skip logging the limit countdown, fflush when reached

8 years agoCODE_STYLE: Space around operators
Daniel Stenberg [Mon, 14 Mar 2016 13:31:14 +0000 (14:31 +0100)]
CODE_STYLE: Space around operators

As just discussed on the mailing list, also document how we prefer
spacing in expressions.

8 years agocurl: glob_range: no need to check unsigned variable for negative
Daniel Stenberg [Mon, 14 Mar 2016 09:50:53 +0000 (10:50 +0100)]
curl: glob_range: no need to check unsigned variable for negative

cppcheck warned:

[src/tool_urlglob.c:283]: (style) Checking if unsigned variable 'step_n'
is less than zero.

8 years agoCODE_STYLE: add example for indent style as well
Daniel Stenberg [Mon, 14 Mar 2016 09:40:02 +0000 (10:40 +0100)]
CODE_STYLE: add example for indent style as well

8 years agoCODE_STYLE: mention braces for functions too
Daniel Stenberg [Mon, 14 Mar 2016 09:36:51 +0000 (10:36 +0100)]
CODE_STYLE: mention braces for functions too

8 years agodocs/Makefile.am: include CODE_STYLE in tarball too
Daniel Stenberg [Mon, 14 Mar 2016 09:31:36 +0000 (10:31 +0100)]
docs/Makefile.am: include CODE_STYLE in tarball too

8 years agoCONTRIBUTE: moved out code style to a separate document
Daniel Stenberg [Mon, 14 Mar 2016 09:31:00 +0000 (10:31 +0100)]
CONTRIBUTE: moved out code style to a separate document

8 years agoCODE_STYLE: initial version
Daniel Stenberg [Mon, 14 Mar 2016 09:28:54 +0000 (10:28 +0100)]
CODE_STYLE: initial version

Ripped out from CONTRIBUTE into its own document, but also extended from
there.

8 years agocurl_sasl.c: minor code indent fixes
Daniel Stenberg [Mon, 14 Mar 2016 08:55:38 +0000 (09:55 +0100)]
curl_sasl.c: minor code indent fixes

8 years agomulti: simplified singlesocket
Daniel Stenberg [Mon, 14 Mar 2016 08:44:14 +0000 (09:44 +0100)]
multi: simplified singlesocket

Since sh_getentry() now checks for invalid sockets itself and by
narrowing the scope of the remove_sock_from_hash variable.

8 years agomulti: introduce sh_getentry() for looking up sockets in the sockhash
Daniel Stenberg [Mon, 14 Mar 2016 08:18:01 +0000 (09:18 +0100)]
multi: introduce sh_getentry() for looking up sockets in the sockhash

Simplify the code by using a single entry that looks for a socket in the
socket hash. As indicated in #712, the code looked for CURL_SOCKET_BAD
at some point and that is ineffective/wrong and this makes it easier to
avoid that.

8 years agomulti hash: ensure modulo performed on curl_socket_t
Jaime Fullaondo [Sun, 13 Mar 2016 06:19:20 +0000 (01:19 -0500)]
multi hash: ensure modulo performed on curl_socket_t

Closes #712

8 years agobase64: Minor coding standard and style updates
Steve Holme [Sun, 13 Mar 2016 17:59:06 +0000 (17:59 +0000)]
base64: Minor coding standard and style updates

8 years agobase64: Use 'CURLcode result' for curl result codes
Steve Holme [Sun, 13 Mar 2016 17:14:57 +0000 (17:14 +0000)]
base64: Use 'CURLcode result' for curl result codes

8 years agonegotiate: Use 'CURLcode result' for curl result codes
Steve Holme [Sun, 13 Mar 2016 17:09:58 +0000 (17:09 +0000)]
negotiate: Use 'CURLcode result' for curl result codes

8 years agomulti_runsingle: avoid loop in CURLM_STATE_WAITPROXYCONNECT
Maksim Kuzevanov [Mon, 7 Mar 2016 16:37:49 +0000 (19:37 +0300)]
multi_runsingle: avoid loop in CURLM_STATE_WAITPROXYCONNECT

Closes #703

8 years agoTODO: Use the RFC6265 test suite
Daniel Stenberg [Sun, 13 Mar 2016 10:01:53 +0000 (11:01 +0100)]
TODO: Use the RFC6265 test suite

8 years agochecksrc.bat: Added the ability to scan src and lib source independently
Steve Holme [Sun, 13 Mar 2016 01:01:33 +0000 (01:01 +0000)]
checksrc.bat: Added the ability to scan src and lib source independently

8 years agodigest: Use boolean based success code for Curl_sasl_digest_get_pair()
Steve Holme [Sat, 12 Mar 2016 17:25:15 +0000 (17:25 +0000)]
digest: Use boolean based success code for Curl_sasl_digest_get_pair()

Rather than use a 0 and 1 integer base result code use a TRUE / FALSE
based success code.

8 years agodigest: Corrected some typos in comments
Steve Holme [Sat, 12 Mar 2016 13:20:03 +0000 (13:20 +0000)]
digest: Corrected some typos in comments

8 years agokrb5: Corrected some typos in function descriptions
Steve Holme [Sat, 12 Mar 2016 11:59:52 +0000 (11:59 +0000)]
krb5: Corrected some typos in function descriptions

8 years agontlm: Corrected some typos in function descriptions
Steve Holme [Sat, 12 Mar 2016 11:56:10 +0000 (11:56 +0000)]
ntlm: Corrected some typos in function descriptions

8 years agourl: Corrected indentation when calling idna_to_ascii_lz()
Steve Holme [Fri, 11 Mar 2016 07:46:09 +0000 (07:46 +0000)]
url: Corrected indentation when calling idna_to_ascii_lz()

8 years agoidn_win32: Use boolean based success codes
Steve Holme [Fri, 11 Mar 2016 07:24:39 +0000 (07:24 +0000)]
idn_win32: Use boolean based success codes

Rather than use 0 and 1 integer base result codes use a FALSE / TRUE
based success code.

8 years agoidn_win32.c: warning: Trailing whitespace
Daniel Stenberg [Thu, 10 Mar 2016 22:32:45 +0000 (23:32 +0100)]
idn_win32.c: warning: Trailing whitespace

8 years agoidn_win32.c: Fixed compilation warning from commit 9e7fcd4291
Steve Holme [Thu, 10 Mar 2016 21:52:09 +0000 (21:52 +0000)]
idn_win32.c: Fixed compilation warning from commit 9e7fcd4291

warning C4267: 'function': conversion from 'size_t' to 'int',
               possible loss of data

8 years agoTHANKS-filter: unify Michael König
Daniel Stenberg [Thu, 10 Mar 2016 13:10:05 +0000 (14:10 +0100)]
THANKS-filter: unify Michael König

8 years agoRELEASE-NOTES: synced with 863c5766dd
Daniel Stenberg [Thu, 10 Mar 2016 13:09:44 +0000 (14:09 +0100)]
RELEASE-NOTES: synced with 863c5766dd

8 years agoftp: remove a check for NULL(!)
Daniel Stenberg [Thu, 10 Mar 2016 12:52:22 +0000 (13:52 +0100)]
ftp: remove a check for NULL(!)

... as it implies we need to check for that on all the other variable
references as well (as Coverity otherwise warns us for missing NULL
checks), and we're alredy making sure that the pointer is never NULL.

8 years agocookies: first n/v pair in Set-Cookie: is the cookie, then parameters
Daniel Stenberg [Thu, 10 Mar 2016 10:20:56 +0000 (11:20 +0100)]
cookies: first n/v pair in Set-Cookie: is the cookie, then parameters

RFC 6265 section 4.1.1 spells out that the first name/value pair in the
header is the actual cookie name and content, while the following are
the parameters.

libcurl previously had a more liberal approach which causes significant
problems when introducing new cookie parameters, like the suggested new
cookie priority draft.

The previous logic read all n/v pairs from left-to-right and the first
name used that wassn't a known parameter name would be used as the
cookie name, thus accepting "Set-Cookie: Max-Age=2; person=daniel" to be
a cookie named 'person' while an RFC 6265 compliant parser should
consider that to be a cookie named 'Max-Age' with an (unknown) parameter
'person'.

Fixes #709

8 years agokrb5: improved type handling to avoid clang compiler warnings
Daniel Stenberg [Thu, 10 Mar 2016 09:40:10 +0000 (10:40 +0100)]
krb5: improved type handling to avoid clang compiler warnings

8 years agourl.c: fix clang warning: no newline at end of file
Daniel Stenberg [Thu, 10 Mar 2016 08:36:49 +0000 (09:36 +0100)]
url.c: fix clang warning: no newline at end of file

8 years agocurl_multi_wait: never return -1 in 'numfds'
Daniel Stenberg [Wed, 9 Mar 2016 09:57:42 +0000 (10:57 +0100)]
curl_multi_wait: never return -1 in 'numfds'

Such a return value isn't documented but could still happen, and the
curl tool code checks for it. It would happen when the underlying
Curl_poll() function returns an error. Starting now we mask that error
as a user of curl_multi_wait() would have no way to handle it anyway.

Reported-by: Jay Satiro
Closes #707

8 years agoHTTP2.md: add CURL_HTTP_VERSION_2TLS and updated alt-svc link
Daniel Stenberg [Wed, 9 Mar 2016 10:09:39 +0000 (11:09 +0100)]
HTTP2.md: add CURL_HTTP_VERSION_2TLS and updated alt-svc link

8 years agocurl_multi_wait.3: add example
Daniel Stenberg [Wed, 9 Mar 2016 07:35:17 +0000 (08:35 +0100)]
curl_multi_wait.3: add example

8 years agoimap/pop3/smtp: Fixed connections upgraded with TLS are not reused
Steve Holme [Sat, 5 Mar 2016 20:10:11 +0000 (20:10 +0000)]
imap/pop3/smtp: Fixed connections upgraded with TLS are not reused

Regression since commit 710f14edba.

Bug: https://github.com/curl/curl/issues/422
Reported-by: Justin Ehlert
8 years agoopt-docs: fix heading macros
Jay Satiro [Tue, 8 Mar 2016 18:23:35 +0000 (13:23 -0500)]
opt-docs: fix heading macros

..SH should be .SH

Bug: https://github.com/curl/curl/issues/705
Reported-by: Eric S. Raymond
8 years agocookie: do not refuse cookies for localhost
Tim Rühsen [Wed, 2 Mar 2016 10:07:16 +0000 (11:07 +0100)]
cookie: do not refuse cookies for localhost

Closes #658

8 years agoftp_done: clear tunnel_state when secondary socket closes
Daniel Stenberg [Mon, 7 Mar 2016 23:07:14 +0000 (00:07 +0100)]
ftp_done: clear tunnel_state when secondary socket closes

Introducing a function for closing the secondary connection to make this
bug less likely to happen again.

Reported-by: daboul
Closes #701

8 years agoopenssl: use the correct OpenSSL/BoringSSL/LibreSSL in messages
Gisle Vanem [Tue, 8 Mar 2016 13:19:01 +0000 (14:19 +0100)]
openssl: use the correct OpenSSL/BoringSSL/LibreSSL in messages

8 years agoHTTP2.md: HTTP/2 by default for curl's HTTPS connections
Daniel Stenberg [Tue, 8 Mar 2016 07:15:47 +0000 (08:15 +0100)]
HTTP2.md: HTTP/2 by default for curl's HTTPS connections

8 years agopipeline: Sanity check pipeline pointer before accessing it.
Anders Bakken [Mon, 7 Mar 2016 19:38:26 +0000 (11:38 -0800)]
pipeline: Sanity check pipeline pointer before accessing it.

I got a crash with this stack:

curl/lib/url.c:2873 (Curl_removeHandleFromPipeline)
curl/lib/url.c:2919 (Curl_getoff_all_pipelines)
curl/lib/multi.c:561 (curl_multi_remove_handle)
curl/lib/url.c:415 (Curl_close)
curl/lib/easy.c:859 (curl_easy_cleanup)

Closes #704

8 years agoHTTP2.md: mention the disable ALPN and NPN options
Daniel Stenberg [Mon, 7 Mar 2016 23:02:52 +0000 (00:02 +0100)]
HTTP2.md: mention the disable ALPN and NPN options

8 years agoTODO: 17.12 keep running, read instructions from pipe/socket
Daniel Stenberg [Mon, 7 Mar 2016 22:21:50 +0000 (23:21 +0100)]
TODO: 17.12 keep running, read instructions from pipe/socket

And delete trailing whitespace
And rename section 17 to "command line tool" from "client"

Closes #702

8 years agoREADME.md: linkified
Daniel Stenberg [Mon, 7 Mar 2016 10:09:56 +0000 (11:09 +0100)]
README.md: linkified

It also makes it less readable as plain text, so let's keep this
primarily for github use.

Removed the top ascii art logo, as it looks weird when markdownified.

8 years agoREADME.md: markdown version of README
Daniel Stenberg [Mon, 7 Mar 2016 10:03:55 +0000 (11:03 +0100)]
README.md: markdown version of README

Attempt to make it look more appealing on github

8 years agomprintf: update trio project link
Jay Satiro [Mon, 7 Mar 2016 03:57:47 +0000 (22:57 -0500)]
mprintf: update trio project link

8 years agoCURLOPT_ACCEPTTIMEOUT_MS.3: added example
Daniel Stenberg [Sun, 6 Mar 2016 22:33:18 +0000 (23:33 +0100)]
CURLOPT_ACCEPTTIMEOUT_MS.3: added example

8 years agoCURLOPT_ACCEPT_ENCODING.3: added example
Daniel Stenberg [Sun, 6 Mar 2016 22:30:42 +0000 (23:30 +0100)]
CURLOPT_ACCEPT_ENCODING.3: added example

8 years agoCURLOPT_APPEND.3: added example
Daniel Stenberg [Sun, 6 Mar 2016 22:28:35 +0000 (23:28 +0100)]
CURLOPT_APPEND.3: added example

8 years agoCURLOPT_NOPROGRESS.3: added example, conform to stardard style
Daniel Stenberg [Sun, 6 Mar 2016 22:14:02 +0000 (23:14 +0100)]
CURLOPT_NOPROGRESS.3: added example, conform to stardard style

8 years agobuild-openssl/checksrc.bat: Fixed prepend vs append of Perl path
Steve Holme [Sun, 6 Mar 2016 20:02:58 +0000 (20:02 +0000)]
build-openssl/checksrc.bat: Fixed prepend vs append of Perl path

Fixed inconsistency from commit 1eae114065 and 0ad6c72227 of the order
in which Perl was added to the PATH.

8 years agoopts: added two examples
Daniel Stenberg [Sun, 6 Mar 2016 16:42:37 +0000 (17:42 +0100)]
opts: added two examples

8 years agoCURLOPT_SSL_CTX_FUNCTION.3: use .NF for example
Daniel Stenberg [Sun, 6 Mar 2016 16:20:16 +0000 (17:20 +0100)]
CURLOPT_SSL_CTX_FUNCTION.3: use .NF for example

8 years agoCURLOPT_SSL_CTX_FUNCTION.3: added example
Daniel Stenberg [Sun, 6 Mar 2016 15:58:34 +0000 (16:58 +0100)]
CURLOPT_SSL_CTX_FUNCTION.3: added example

and removed erroneous reference to test case lib509

8 years agocurlx.c: use more curl style code
Daniel Stenberg [Sun, 6 Mar 2016 15:54:58 +0000 (16:54 +0100)]
curlx.c: use more curl style code

8 years agotest46: change cookie expiry date
Daniel Stenberg [Sun, 6 Mar 2016 15:22:49 +0000 (16:22 +0100)]
test46: change cookie expiry date

Since two of the cookies would now otherwise expire and cause the test
to fail after commit 20de9b4f09

Discussed in #697

8 years agomakefile.m32: add missing libs for static -winssl-ssh2 builds
Viktor Szakats [Wed, 2 Mar 2016 02:25:22 +0000 (03:25 +0100)]
makefile.m32: add missing libs for static -winssl-ssh2 builds

Bug: https://github.com/curl/curl/pull/693

8 years agombedtls: fix user-specified SSL protocol version
Jay Satiro [Sun, 6 Mar 2016 02:35:16 +0000 (21:35 -0500)]
mbedtls: fix user-specified SSL protocol version

Prior to this change when a single protocol CURL_SSLVERSION_ was
specified by the user that version was set only as the minimum version
but not as the maximum version as well.

8 years ago.gitignore: Added *.VC.opendb and *.vcxproj.user files for VC14
Steve Holme [Sat, 5 Mar 2016 21:49:09 +0000 (21:49 +0000)]
.gitignore: Added *.VC.opendb and *.vcxproj.user files for VC14

8 years agobuild-openssl.bat: Fixed cannot find perl if installed but not in path
Steve Holme [Sat, 5 Mar 2016 21:04:43 +0000 (21:04 +0000)]
build-openssl.bat: Fixed cannot find perl if installed but not in path

8 years agochecksrc.bat: Fixed cannot find perl if installed but not in path
Steve Holme [Sat, 5 Mar 2016 21:03:40 +0000 (21:03 +0000)]
checksrc.bat: Fixed cannot find perl if installed but not in path

8 years agomakefile.m32: fix to allow -ssh2-winssl combination
Viktor Szakats [Wed, 2 Mar 2016 02:00:37 +0000 (03:00 +0100)]
makefile.m32: fix to allow -ssh2-winssl combination

In makefile.m32, option -ssh2 (libssh2) automatically implied -ssl
(OpenSSL) option, with no way to override it with -winssl. Since both
libssh2 and curl support using Windows's built-in SSL backend, modify
the logic to allow that combination.

8 years agocookie: Don't expire session cookies in remove_expired
Jay Satiro [Sat, 5 Mar 2016 18:35:17 +0000 (13:35 -0500)]
cookie: Don't expire session cookies in remove_expired

Prior to this change cookies with an expiry date that failed parsing
and were converted to session cookies could be purged in remove_expired.

Bug: https://github.com/curl/curl/issues/697
Reported-by: Seth Mos
8 years agocookie: remove redundant check
Daniel Stenberg [Thu, 3 Mar 2016 20:14:36 +0000 (21:14 +0100)]
cookie: remove redundant check

... as it was already checked previously within the function.

Reported-by: Dmitry-Me
Closes #695

8 years agourl: if Curl_done is premature then pipeline not in use
Anders Bakken [Tue, 1 Mar 2016 22:52:38 +0000 (14:52 -0800)]
url: if Curl_done is premature then pipeline not in use

Prevent a crash if 2 (or more) requests are made to the same host and
pipelining is enabled and the connection does not complete.

Bug: https://github.com/curl/curl/pull/690

8 years agomakefile.m32: allow to pass .dll/.exe-specific LDFLAGS
Viktor Szakats [Tue, 1 Mar 2016 19:50:13 +0000 (20:50 +0100)]
makefile.m32: allow to pass .dll/.exe-specific LDFLAGS

using envvars `CURL_LDFLAG_EXTRAS_DLL` and
`CURL_LDFLAG_EXTRAS_EXE` respectively. This
is useful f.e. to pass ASLR-related extra
options, that are required to make this
feature work when using the mingw toolchain.

Ref: https://github.com/curl/curl/pull/670#issuecomment-190863985

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

8 years agoformpost: fix memory leaks in AddFormData error branches
Daniel Stenberg [Mon, 29 Feb 2016 19:32:08 +0000 (20:32 +0100)]
formpost: fix memory leaks in AddFormData error branches

Reported-by: Dmitry-Me
Fixes #688

8 years agogetinfo: Fix syntax error when mbedTLS
Jay Satiro [Sun, 28 Feb 2016 21:05:38 +0000 (16:05 -0500)]
getinfo: Fix syntax error when mbedTLS

The assignment of the mbedTLS TLS session info in the parent commit was
incorrect. Change the assignment to a pointer to the session structure.

8 years agogetinfo: Add support for mbedTLS TLS session info
Jay Satiro [Sun, 28 Feb 2016 00:01:00 +0000 (19:01 -0500)]
getinfo: Add support for mbedTLS TLS session info

.. and preprocessor check TLS session info is defined for all backends.

8 years agoROADMAP: clarify on the TLS proxy, mention HTTP cookies to work on
Daniel Stenberg [Fri, 26 Feb 2016 12:02:34 +0000 (13:02 +0100)]
ROADMAP: clarify on the TLS proxy, mention HTTP cookies to work on

8 years agofile: try reading from files with no size
Daniel Stenberg [Thu, 25 Feb 2016 22:45:17 +0000 (23:45 +0100)]
file: try reading from files with no size

Some systems have special files that report as 0 bytes big, but still
contain data that can be read (for example /proc/cpuinfo on
Linux). Starting now, a zero byte size is considered "unknown" size and
will be read as far as possible anyway.

Reported-by: Jesse Tan
Closes #681

8 years agoconfigure: warn on invalid ca bundle or path
Jay Satiro [Thu, 25 Feb 2016 06:55:38 +0000 (01:55 -0500)]
configure: warn on invalid ca bundle or path

- Warn if --with-ca-bundle file does not exist.

- Warn if --with-ca-path directory does not contain certificates.

- Improve help messages for both.

Example configure output:

  ca cert bundle:   /some/file   (warning: certs not found)
  ca cert path:     /some/dir   (warning: certs not found)

Bug: https://github.com/curl/curl/issues/404
Reported-by: Jeffrey Walton
8 years agoCurl_read: check for activated HTTP/1 pipelining, not only requested
Daniel Stenberg [Wed, 24 Feb 2016 12:47:57 +0000 (13:47 +0100)]
Curl_read: check for activated HTTP/1 pipelining, not only requested

... as when pipelining is used, we read things into a unified buffer and
we don't do that with HTTP/2. This could then easily make programs that
set CURLMOPT_PIPELINING = CURLPIPE_HTTP1|CURLPIPE_MULTIPLEX to get data
intermixed or plain broken between HTTP/2 streams.

Reported-by: Anders Bakken
8 years agoos400: Fix ILE/RPG definition of CURLOPT_TFTP_NO_OPTIONS
Patrick Monnerat [Wed, 24 Feb 2016 12:19:10 +0000 (13:19 +0100)]
os400: Fix ILE/RPG definition of CURLOPT_TFTP_NO_OPTIONS

8 years agogetinfo: CURLINFO_TLS_SSL_PTR supersedes CURLINFO_TLS_SESSION
Jay Satiro [Wed, 24 Feb 2016 00:03:03 +0000 (19:03 -0500)]
getinfo: CURLINFO_TLS_SSL_PTR supersedes CURLINFO_TLS_SESSION

The two options are almost the same, except in the case of OpenSSL:

CURLINFO_TLS_SESSION OpenSSL session internals is SSL_CTX *.

CURLINFO_TLS_SSL_PTR OpenSSL session internals is SSL *.

For backwards compatibility we couldn't modify CURLINFO_TLS_SESSION to
return an SSL pointer for OpenSSL.

Also, add support for the 'internals' member to point to SSL object for
the other backends axTLS, PolarSSL, Secure Channel, Secure Transport and
wolfSSL.

Bug: https://github.com/curl/curl/issues/234
Reported-by: dkjjr89@users.noreply.github.com
Bug: https://curl.haxx.se/mail/lib-2015-09/0127.html
Reported-by: Michael König
8 years agomulti_remove_handle: keep the timeout list until after disconnect
Daniel Stenberg [Tue, 23 Feb 2016 12:05:41 +0000 (13:05 +0100)]
multi_remove_handle: keep the timeout list until after disconnect

The internal Curl_done() function uses Curl_expire() at times and that
uses the timeout list. Better clean up the list once we're done using
it. This caused a segfault.

Reported-by: 蔡文凱
Bug: https://curl.haxx.se/mail/lib-2016-02/0097.html

8 years agotests/sshserver.pl: use RSA instead of DSA for host auth
Kamil Dudka [Tue, 23 Feb 2016 09:31:52 +0000 (10:31 +0100)]
tests/sshserver.pl: use RSA instead of DSA for host auth

DSA is no longer supported by OpenSSH 7.0, which causes all SCP/SFTP
test cases to be skipped.  Using RSA for host authentication works with
both old and new versions of OpenSSH.

Reported-by: Karlson2k
Closes #676

8 years agoTFTP: add option to suppress TFTP option requests (Part 2)
Jay Satiro [Mon, 24 Aug 2015 04:15:01 +0000 (00:15 -0400)]
TFTP: add option to suppress TFTP option requests (Part 2)

- Add tests.

- Add an example to CURLOPT_TFTP_NO_OPTIONS.3.

- Add --tftp-no-options to expose CURLOPT_TFTP_NO_OPTIONS.

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

8 years agoTFTP: add option to suppress TFTP option requests (Part 1)
Michael Koenig [Mon, 17 Aug 2015 15:54:47 +0000 (17:54 +0200)]
TFTP: add option to suppress TFTP option requests (Part 1)

Some TFTP server implementations ignore the "TFTP Option extension"
(RFC 1782-1784, 2347-2349), or implement it in a flawed way, causing
problems with libcurl. Another switch for curl_easy_setopt
"CURLOPT_TFTP_NO_OPTIONS" is introduced which prevents libcurl from
sending TFTP option requests to a server, avoiding many problems caused
by faulty implementations.

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

8 years agoruntests: Fixed usage of %PWD on MinGW64
Karlson2k [Sun, 21 Feb 2016 12:48:10 +0000 (15:48 +0300)]
runtests: Fixed usage of %PWD on MinGW64

Closes #672

8 years agoCURLOPT_DEBUGFUNCTION.3: Fix example
Jay Satiro [Sat, 20 Feb 2016 21:23:05 +0000 (16:23 -0500)]
CURLOPT_DEBUGFUNCTION.3: Fix example

8 years agosrc/Makefile.m32: add CURL_{LD,C}FLAGS_EXTRAS support
Viktor Szakats [Sat, 20 Feb 2016 19:21:48 +0000 (20:21 +0100)]
src/Makefile.m32: add CURL_{LD,C}FLAGS_EXTRAS support

Sync with lib/Makefile.m32 which already uses those variables.

Bug: https://github.com/curl/curl/pull/670

8 years agoEnabled test 1437 after the bug fix in commit 3fa220a6
Dan Fandrich [Sat, 20 Feb 2016 10:34:15 +0000 (11:34 +0100)]
Enabled test 1437 after the bug fix in commit 3fa220a6

8 years agocurl_sasl: Fix memory leak in digest parser
Emil Lerner [Fri, 19 Feb 2016 00:47:27 +0000 (03:47 +0300)]
curl_sasl: Fix memory leak in digest parser

If any parameter in a HTTP DIGEST challenge message is present multiple
times, memory allocated for all but the last entry should be freed.

Bug: https://github.com/curl/curl/pull/667

8 years agoAdded test 1437 to verify a memory leak
Dan Fandrich [Fri, 19 Feb 2016 09:45:09 +0000 (10:45 +0100)]
Added test 1437 to verify a memory leak

Reported-by: neex@users.noreply.github.com
8 years agoCURLOPT_COOKIEFILE.3: HTTP headers must be Set-Cookie style
Jay Satiro [Fri, 19 Feb 2016 02:07:57 +0000 (21:07 -0500)]
CURLOPT_COOKIEFILE.3: HTTP headers must be Set-Cookie style

Bug: https://github.com/curl/curl/issues/666
Reported-by: baumanj@users.noreply.github.com
8 years agocurl.1: HTTP headers for --cookie must be Set-Cookie style
Jay Satiro [Fri, 19 Feb 2016 00:01:19 +0000 (19:01 -0500)]
curl.1: HTTP headers for --cookie must be Set-Cookie style

Bug: https://github.com/curl/curl/issues/666
Reported-by: baumanj@users.noreply.github.com
8 years agocurl.1: add a missing dash
Daniel Stenberg [Thu, 18 Feb 2016 14:32:00 +0000 (15:32 +0100)]
curl.1: add a missing dash

8 years agoCONTRIBUTING.md: fix links
Daniel Stenberg [Thu, 18 Feb 2016 10:59:17 +0000 (11:59 +0100)]
CONTRIBUTING.md: fix links

8 years agoISSUE_TEMPLATE: github issue template
Daniel Stenberg [Thu, 18 Feb 2016 10:55:59 +0000 (11:55 +0100)]
ISSUE_TEMPLATE: github issue template

First version, try this out!

8 years agoCONTRIBUTING.md: move into .github
Daniel Stenberg [Thu, 18 Feb 2016 10:52:25 +0000 (11:52 +0100)]
CONTRIBUTING.md: move into .github

To hide github specific files somewhat from the rest.

8 years agoopts: add references
Daniel Stenberg [Thu, 18 Feb 2016 08:14:48 +0000 (09:14 +0100)]
opts: add references