]> granicus.if.org Git - curl/log
curl
8 years agourl: Corrected get protocol family for FTP and LDAP
Steve Holme [Fri, 1 Apr 2016 06:24:39 +0000 (07:24 +0100)]
url: Corrected get protocol family for FTP and LDAP

Fixed copy/paste error from commit a5aec58726.

8 years agostrerror: don't bit shift a signed integer
Jay Satiro [Fri, 1 Apr 2016 01:05:29 +0000 (21:05 -0400)]
strerror: don't bit shift a signed integer

Bug: https://github.com/curl/curl/issues/744
Reported-by: Alexis La Goutte
8 years agohttp2: more documentation for prior knowledge
Daniel Stenberg [Thu, 31 Mar 2016 20:04:09 +0000 (22:04 +0200)]
http2: more documentation for prior knowledge

8 years agohttp2: support "prior knowledge", no upgrade from HTTP/1.1
Diego Bes [Fri, 18 Mar 2016 22:25:56 +0000 (15:25 -0700)]
http2: support "prior knowledge", no upgrade from HTTP/1.1

Supports HTTP/2 over clear TCP

- Optimize switching to HTTP/2 by removing calls to init and setup
before switching. Switching will eventually call setup and setup calls
init.

- Supports new version to “force” the use of HTTP/2 over clean TCP

- Add common line parameter “--http2-prior-knowledge” to the Curl
  command line tool.

8 years agoimap: remove duplicated function
Daniel Stenberg [Thu, 31 Mar 2016 13:12:22 +0000 (15:12 +0200)]
imap: remove duplicated function

The list and search response functions were identical! Merged into one
now. Detected by PVS Studio.

Reported-by: Alexis La Goutte
8 years agoSOCKS5_gssapi_negotiate: don't assume little-endian ints
Daniel Stenberg [Thu, 31 Mar 2016 08:22:42 +0000 (10:22 +0200)]
SOCKS5_gssapi_negotiate: don't assume little-endian ints

The code copied one byte from a 32bit integer, which works fine as long
as the byte order is the same. Not a fine assumption. Reported by PVS
Studio.

Reported-by: Alexis La Goutte
8 years agohttp: remove ((expression)) double parentheses
Daniel Stenberg [Thu, 31 Mar 2016 08:03:04 +0000 (10:03 +0200)]
http: remove ((expression)) double parentheses

8 years agoCurl_add_buffer_send: avoid possible NULL dereference
Daniel Stenberg [Thu, 31 Mar 2016 08:00:55 +0000 (10:00 +0200)]
Curl_add_buffer_send: avoid possible NULL dereference

... as we check for a NULL pointer below, we move the derefence to after
the check. Detected by PVS Studio.

Reported-by: Alexis La Goutte
8 years agofile: remove duplicate checks of the same variable
Daniel Stenberg [Thu, 31 Mar 2016 07:53:36 +0000 (09:53 +0200)]
file: remove duplicate checks of the same variable

... as it doesn't change in between. Deteced by PVS Studio.

Reported-by: Alexis La Goutte
8 years agoopenssl: Fix compilation warnings
Marcel Raad [Wed, 30 Mar 2016 15:23:02 +0000 (17:23 +0200)]
openssl: Fix compilation warnings

When compiling with OpenSSL 1.1.0 (so that the HAVE_X509_GET0_SIGNATURE
&& HAVE_X509_GET0_EXTENSIONS pre-processor block is active), Visual C++
14 complains:

warning C4701: potentially uninitialized local variable 'palg' used
warning C4701: potentially uninitialized local variable 'psig' used

8 years agomulti: turn Curl_done into file local multi_done
Daniel Stenberg [Tue, 29 Mar 2016 22:17:02 +0000 (00:17 +0200)]
multi: turn Curl_done into file local multi_done

... as it now is used by multi.c only.

8 years agomulti: multi_reconnect_request is the former Curl_reconnect_request
Daniel Stenberg [Tue, 29 Mar 2016 21:56:22 +0000 (23:56 +0200)]
multi: multi_reconnect_request is the former Curl_reconnect_request

now a file local function in multi.c

8 years agomulti: move Curl_do and Curl_do_done to multi.c and make static
Daniel Stenberg [Tue, 29 Mar 2016 21:53:48 +0000 (23:53 +0200)]
multi: move Curl_do and Curl_do_done to multi.c and make static

... called multi_do and multi_do_done as they're file local now.

8 years agowolfssl: Use ECC supported curves extension
Jay Satiro [Tue, 29 Mar 2016 23:06:55 +0000 (19:06 -0400)]
wolfssl: Use ECC supported curves extension

https://github.com/wolfSSL/wolfssl/issues/366

8 years agobuild-wolfssl: Allow a broader range of ciphers (Visual Studio)
Jay Satiro [Tue, 29 Mar 2016 22:50:12 +0000 (18:50 -0400)]
build-wolfssl: Allow a broader range of ciphers (Visual Studio)

This is an update to the build-time options used to build wolfSSL in
Visual Studio for greater compatibility, and make it behave similar to
the way OpenSSL 1.0.2 behaves. Starting in wolfSSL v3.6.6 static ciphers
and SSLv3 are disabled by default at build time, but we can use both.

- Enable static cipher suites TLS_ECDH_ and TLS_RSA_.

- Enable SSLv3 hello. Though in libcurl we disable it by default at
runtime, we make it available so the user can manually select it if
necessary.

8 years agoGSS: make Curl_gss_log_error more verbose
Isaac Boukris [Tue, 29 Mar 2016 14:13:46 +0000 (17:13 +0300)]
GSS: make Curl_gss_log_error more verbose

Also display the GSS_C_GSS_CODE (major code) when specified instead of
only GSS_C_MECH_CODE (minor code).

In addition, the old code was printing a colon twice after the prefix
and also miscalculated the length of the buffer in between calls to
gss_display_status (the length of ": " was missing).

Also, gss_buffer is not guaranteed to be NULL terminated and thus need
to restrict reading by its length.

Closes #738

8 years agobuild: use roffit 0.11 feature
Daniel Stenberg [Tue, 22 Mar 2016 09:46:08 +0000 (10:46 +0100)]
build: use roffit 0.11 feature

... load file specified as argument.

8 years agohttp2: set correct scheme in handler structs [regression]
Daniel Stenberg [Tue, 29 Mar 2016 14:08:38 +0000 (16:08 +0200)]
http2: set correct scheme in handler structs [regression]

Since commit a5aec58 the handler schemes need to match for the
connections to be reused and for HTTP/2 multiplexing to work, reusing
connections is very important!

Closes #736

8 years agohostip.c: minor white space edit for style
Daniel Stenberg [Tue, 29 Mar 2016 13:19:21 +0000 (15:19 +0200)]
hostip.c: minor white space edit for style

8 years agoTODO: use secure protocol in recently added URL
Viktor Szakats [Sun, 27 Mar 2016 16:03:46 +0000 (18:03 +0200)]
TODO: use secure protocol in recently added URL

Closes #733

8 years agoHTTP2.md: mention libressl and boringssl too
Daniel Stenberg [Tue, 29 Mar 2016 08:23:33 +0000 (10:23 +0200)]
HTTP2.md: mention libressl and boringssl too

8 years agodocs/HTTP-COOKIES: converted to markdown
Daniel Stenberg [Tue, 29 Mar 2016 06:53:40 +0000 (08:53 +0200)]
docs/HTTP-COOKIES: converted to markdown

8 years agoHTTP2: s/polarssl/mbedtls
Daniel Stenberg [Tue, 29 Mar 2016 06:27:23 +0000 (08:27 +0200)]
HTTP2: s/polarssl/mbedtls

8 years agowolfssl: Add ALPN support
Jay Satiro [Mon, 28 Mar 2016 22:18:09 +0000 (18:18 -0400)]
wolfssl: Add ALPN support

8 years agotool_operate: remove mixed declaration
Jay Satiro [Mon, 28 Mar 2016 20:46:26 +0000 (16:46 -0400)]
tool_operate: remove mixed declaration

This is a follow up to the previous commit.

8 years agocurl: warn for --capath use if not supported by libcurl
Daniel Stenberg [Mon, 28 Mar 2016 18:28:23 +0000 (20:28 +0200)]
curl: warn for --capath use if not supported by libcurl

Closes #492

8 years agoTODO: 2.5 Edge-triggered sockets should work
Daniel Stenberg [Mon, 28 Mar 2016 08:59:39 +0000 (10:59 +0200)]
TODO: 2.5 Edge-triggered sockets should work

8 years agoMakefile.am: skip the scripts dir
Daniel Stenberg [Sun, 27 Mar 2016 22:03:42 +0000 (00:03 +0200)]
Makefile.am: skip the scripts dir

Skipping the scripts dir is primarily done for 'make install' so that it
does not attempt to install the zsh completion script as we've not yet
found a proper way to do/run that at install time.

By leaving the script dir's Makefile in place, a user can still opt to
run make install manually in there.

Closes #620

8 years agoCURLMOPT_SOCKETFUNCTION.3: describe the 'what' argument
Daniel Stenberg [Sun, 27 Mar 2016 21:50:36 +0000 (23:50 +0200)]
CURLMOPT_SOCKETFUNCTION.3: describe the 'what' argument

8 years agocurl_multi_socket_action.3: mark the options properly
Daniel Stenberg [Sun, 27 Mar 2016 21:34:25 +0000 (23:34 +0200)]
curl_multi_socket_action.3: mark the options properly

... to make them appear as links on the html version.

8 years agoRELEASE-NOTES: Synced with f0bdd72c10
Steve Holme [Sun, 27 Mar 2016 17:52:42 +0000 (18:52 +0100)]
RELEASE-NOTES: Synced with f0bdd72c10

8 years agohttp_ntlm: Renamed from curl_ntlm.[c|h]
Steve Holme [Sun, 27 Mar 2016 16:58:50 +0000 (17:58 +0100)]
http_ntlm: Renamed from curl_ntlm.[c|h]

Renamed the header and source files for this module as they are HTTP
specific and as such, they should use the naming convention as other
HTTP authentication source files do - this revert commit 260ee6b7bf.

Note: We could also rename curl_ntlm_wb.[c|h], however, the Winbind
code needs separating from the HTTP protocol and migrating into the
vauth directory, thus adding support for Winbind to the SASL based
protocols such as IMAP, POP3 and SMTP.

8 years agodocs: curlinfo_filetime sftp support, new curlopt_quote "statvfs"
marquis-de-muesli [Thu, 25 Feb 2016 01:10:24 +0000 (02:10 +0100)]
docs: curlinfo_filetime sftp support, new curlopt_quote "statvfs"

Closes #677

8 years agoSSH: new CURLOPT_QUOTE command "statvfs"
marquis-de-muesli [Tue, 23 Feb 2016 22:37:14 +0000 (23:37 +0100)]
SSH: new CURLOPT_QUOTE command "statvfs"

usage: "statvfs path"
returns remote file system statistics

8 years agoSSH: support CURLINFO_FILETIME
marquis-de-muesli [Tue, 23 Feb 2016 22:18:31 +0000 (23:18 +0100)]
SSH: support CURLINFO_FILETIME

8 years agosshserver.pl: use quotes for given options
Karlson2k [Mon, 22 Feb 2016 09:30:37 +0000 (12:30 +0300)]
sshserver.pl: use quotes for given options

Fixed failed redirection of stderr with some options. At least on Msys2,
perl fails to redirect stderr if $value contains newline or other weird
characters.

8 years agourl: don't use bad offset in tld_check_name to show error
Jay Satiro [Sat, 26 Mar 2016 18:41:35 +0000 (14:41 -0400)]
url: don't use bad offset in tld_check_name to show error

libidn's tld_check_lz returns an error offset of the first character
that it failed to process, however that offset is not a byte offset and
may not even be in the locale encoding therefore we can't use it to show
the user the character that failed to process.

Bug: https://github.com/curl/curl/issues/731
Reported-by: Karlson2k
8 years agohttp_negotiate: Combine GSS-API and SSPI source files
Steve Holme [Sun, 13 Mar 2016 20:09:15 +0000 (20:09 +0000)]
http_negotiate: Combine GSS-API and SSPI source files

As the GSS-API and SSPI based source files are no longer library/API
specific, following the extraction of that authentication code to the
vauth directory, combine these files rather than maintain two separate
versions.

8 years agovauth: Moved the Negotiate authentication code to the new vauth directory
Steve Holme [Sun, 13 Mar 2016 18:51:46 +0000 (18:51 +0000)]
vauth: Moved the Negotiate authentication code to the new vauth directory

Part 2 of 2 - Moved the GSS-API based Negotiate authentication code.

8 years agovauth: Moved the Negotiate authentication code to the new vauth directory
Steve Holme [Sun, 13 Mar 2016 16:02:42 +0000 (16:02 +0000)]
vauth: Moved the Negotiate authentication code to the new vauth directory

Part 1 of 2 - Moved the SSPI based Negotiate authentication code.

8 years agowarnless.h: Removed spurious character from commit 696bc6b9c9
Steve Holme [Sat, 26 Mar 2016 11:35:07 +0000 (11:35 +0000)]
warnless.h: Removed spurious character from commit 696bc6b9c9

Not picked up by checksrc or Visual Studio but my own code review, this
would haven broken Intel based Unix builds - Perhaps I should learn to
type on my laptop's keyboard before committing!

8 years agoschannel: Fixed compilation warning from commit f8d88a4913
Steve Holme [Sat, 26 Mar 2016 11:14:07 +0000 (11:14 +0000)]
schannel: Fixed compilation warning from commit f8d88a4913

warning C4244: '=': conversion from 'int' to 'unsigned short', possible
                    loss of data

8 years agowarnless?: Added some integer based conversion functions
Steve Holme [Sat, 26 Mar 2016 11:09:01 +0000 (11:09 +0000)]
warnless?: Added some integer based conversion functions

8 years agodocs/TODO: Add feature request for metalink in HTTP headers
Dusty Mabe [Fri, 25 Mar 2016 16:40:48 +0000 (12:40 -0400)]
docs/TODO: Add feature request for metalink in HTTP headers

Closes #729
Closes #728

8 years agobuild: Corrected typos from commit 70e56939aa
Steve Holme [Fri, 25 Mar 2016 18:23:07 +0000 (18:23 +0000)]
build: Corrected typos from commit 70e56939aa

8 years agovauth: Refactored function names after move to new vauth directory
Steve Holme [Sun, 13 Mar 2016 11:28:42 +0000 (11:28 +0000)]
vauth: Refactored function names after move to new vauth directory

Renamed all the SASL functions that moved to the new vauth directory to
include the correct module name.

8 years agovauth: Updated the copyright year after recent changes
Steve Holme [Sun, 13 Mar 2016 11:19:57 +0000 (11:19 +0000)]
vauth: Updated the copyright year after recent changes

As most of this work was performed in 2015 but not pushed until 2016
updated the copyright year to reflect the public facing changes.

8 years agovauth: Moved the OAuth 2.0 authentication code to the new vauth directory
Steve Holme [Sat, 12 Sep 2015 14:24:44 +0000 (15:24 +0100)]
vauth: Moved the OAuth 2.0 authentication code to the new vauth directory

8 years agovauth: Moved the NTLM authentication code to the new vauth directory
Steve Holme [Sat, 12 Sep 2015 13:50:02 +0000 (14:50 +0100)]
vauth: Moved the NTLM authentication code to the new vauth directory

8 years agovauth: Moved the Kerberos V5 authentication code to the new vauth directory
Steve Holme [Sat, 12 Sep 2015 13:15:09 +0000 (14:15 +0100)]
vauth: Moved the Kerberos V5 authentication code to the new vauth directory

8 years agodigest.c: Fixed checksrc warnings
Steve Holme [Fri, 25 Mar 2016 12:17:34 +0000 (12:17 +0000)]
digest.c: Fixed checksrc warnings

8 years agovauth: Moved the DIGEST authentication code to the new vauth directory
Steve Holme [Sat, 12 Sep 2015 12:30:58 +0000 (13:30 +0100)]
vauth: Moved the DIGEST authentication code to the new vauth directory

8 years agovauth: Moved the CRAM-MD5 authentication code to the new vauth directory
Steve Holme [Sat, 12 Sep 2015 12:02:27 +0000 (13:02 +0100)]
vauth: Moved the CRAM-MD5 authentication code to the new vauth directory

8 years agovauth: Moved the ClearText authentication code to the new vauth directory
Steve Holme [Sat, 12 Sep 2015 11:27:38 +0000 (12:27 +0100)]
vauth: Moved the ClearText authentication code to the new vauth directory

8 years agovauth: Moved Curl_sasl_build_spn() to create the initial vauth source files
Steve Holme [Sat, 12 Sep 2015 10:48:24 +0000 (11:48 +0100)]
vauth: Moved Curl_sasl_build_spn() to create the initial vauth source files

8 years agochecksrc.bat: Added support for checking the new vauth directory
Steve Holme [Sat, 12 Sep 2015 10:19:24 +0000 (11:19 +0100)]
checksrc.bat: Added support for checking the new vauth directory

8 years agobuild: Updated all makefiles and project files for the new vauth directory
Steve Holme [Sat, 12 Sep 2015 10:14:14 +0000 (11:14 +0100)]
build: Updated all makefiles and project files for the new vauth directory

Updated the makefiles and Visual Studio project files to support moving
the authentication code to the new lib/vauth directory that was started
in commit 0d04e859e1.

8 years agoschannel: Add ALPN support
JDepooter [Mon, 21 Mar 2016 06:59:57 +0000 (23:59 -0700)]
schannel: Add ALPN support

Add ALPN support for schannel. This allows cURL to negotiate
HTTP/2.0 connections when built with schannel.

Closes #724

8 years agohttp: Minor update based on CODE_STYLE guidelines
Steve Holme [Thu, 24 Mar 2016 06:35:23 +0000 (06:35 +0000)]
http: Minor update based on CODE_STYLE guidelines

8 years agomulti: fix "Operation timed out after" timer
Daniel Stenberg [Wed, 23 Mar 2016 22:03:08 +0000 (23:03 +0100)]
multi: fix "Operation timed out after" timer

Use the local, reasonably updated, 'now' value when creating the message
string to output for the timeout condition.

Fixes #619

8 years agoopenssl: boringssl provides the same numbering as openssl
Daniel Stenberg [Wed, 23 Mar 2016 13:59:41 +0000 (14:59 +0100)]
openssl: boringssl provides the same numbering as openssl

... so we don't need extra boringssl precautions for for
HAVE_ERR_REMOVE_THREAD_STATE_NOARG.

Pointed-out-by: David Benjamin
8 years agoopenssl: fix ERR_remove_thread_state() for boringssl/libressl
Daniel Stenberg [Wed, 23 Mar 2016 09:04:48 +0000 (10:04 +0100)]
openssl: fix ERR_remove_thread_state() for boringssl/libressl

The removed arg is only done in OpenSSL

Bug: https://twitter.com/xtraemeat/status/712564874098917376

8 years agobump: work on 7.48.1
Daniel Stenberg [Wed, 23 Mar 2016 08:35:23 +0000 (09:35 +0100)]
bump: work on 7.48.1

8 years agoRELEASE-PROCEDURE: mention the github release tag edit
Daniel Stenberg [Wed, 23 Mar 2016 08:32:30 +0000 (09:32 +0100)]
RELEASE-PROCEDURE: mention the github release tag edit

... and update the coming release dates a bit

8 years agochecksrc.bat: Updated the help to be consistent with generate.bat
Steve Holme [Wed, 23 Mar 2016 06:50:03 +0000 (06:50 +0000)]
checksrc.bat: Updated the help to be consistent with generate.bat

Follow up to commit a8c7f0fcbf prior to release.

8 years agoRELEASE-NOTES: curl 7.48.0 curl-7_48_0
Daniel Stenberg [Tue, 22 Mar 2016 07:19:52 +0000 (08:19 +0100)]
RELEASE-NOTES: curl 7.48.0

8 years agoTHANKS: 15 new contributors from 7.48.0 release
Daniel Stenberg [Tue, 22 Mar 2016 07:21:44 +0000 (08:21 +0100)]
THANKS: 15 new contributors from 7.48.0 release

8 years agoCURLINFO_TLS_SSL_PTR.3: Warn about limitations
Jay Satiro [Wed, 23 Mar 2016 05:16:21 +0000 (01:16 -0400)]
CURLINFO_TLS_SSL_PTR.3: Warn about limitations

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

8 years agoRevert "sshserver: remove use of AuthorizedKeysFile2"
Daniel Stenberg [Tue, 22 Mar 2016 09:43:55 +0000 (10:43 +0100)]
Revert "sshserver: remove use of AuthorizedKeysFile2"

It seems we may have some autobuild problems after this commit went
in. Trying to see if a revert helps to get them back.

This reverts commit 2716350d1f3edc8e929f6ceeee05051090f6d642.

8 years agomaketgz: add -j to make dist
Daniel Stenberg [Tue, 22 Mar 2016 09:35:22 +0000 (10:35 +0100)]
maketgz: add -j to make dist

... makes it a lot faster

8 years agolibcurl-thread.3: minor nroff format fix
Daniel Stenberg [Tue, 22 Mar 2016 09:33:44 +0000 (10:33 +0100)]
libcurl-thread.3: minor nroff format fix

8 years agoCURLINFO_TLS_SSL_PTR.3: minor nroff format fix
Daniel Stenberg [Tue, 22 Mar 2016 09:33:24 +0000 (10:33 +0100)]
CURLINFO_TLS_SSL_PTR.3: minor nroff format fix

8 years agoCODE_STYLE: indend example code
Daniel Stenberg [Tue, 22 Mar 2016 07:19:08 +0000 (08:19 +0100)]
CODE_STYLE: indend example code

... to make it look nicer in markdown outputa

8 years agobuild-wolfssl: Update VS properties for wolfSSL v3.9.0
Jay Satiro [Tue, 22 Mar 2016 07:03:11 +0000 (03:03 -0400)]
build-wolfssl: Update VS properties for wolfSSL v3.9.0

- Do not use wolfSSL's sample user-setting files.

wolfSSL starting in v3.9.0 has added their own sample user settings that
are applied by default, but we don't use them because we have our own
settings.

- Do not use wolfSSL's Visual Studio Unicode character setting.

wolfSSL Visual Studio projects use the Unicode character set however our
settings and options imitate mingw build which does not use the Unicode
character set. This does not appear to have any effect at the moment but
better safe than sorry.

These changes are backwards compatible with earlier versions.

8 years agohostip6: Fixed compilation warnings when verbose strings disabled
Steve Holme [Tue, 22 Mar 2016 06:16:06 +0000 (06:16 +0000)]
hostip6: Fixed compilation warnings when verbose strings disabled

warning C4189: 'data': local variable is initialized but not referenced

...and some minor formatting/spacing changes.

8 years agosshserver: remove use of AuthorizedKeysFile2
Daniel Stenberg [Sun, 20 Mar 2016 23:53:02 +0000 (00:53 +0100)]
sshserver: remove use of AuthorizedKeysFile2

Support for the (undocumented) AuthorizedKeysFile2 was removed in
OpenSSH 5.9, released in September 2011

Closes #715

8 years agoconnect/ntlm/http: Fixed compilation warnings when verbose strings disabled
Steve Holme [Sun, 20 Mar 2016 17:51:06 +0000 (17:51 +0000)]
connect/ntlm/http: Fixed compilation warnings when verbose strings disabled

warning C4189: 'data': local variable is initialized but not referenced

8 years agoopenssl: Fixed compilation warning when /Wall enabled
Steve Holme [Sun, 20 Mar 2016 17:35:31 +0000 (17:35 +0000)]
openssl: Fixed compilation warning when /Wall enabled

warning C4706: assignment within conditional expression

8 years agoCODE_STYLE: Use boolean conditions
Steve Holme [Sun, 20 Mar 2016 11:51:11 +0000 (11:51 +0000)]
CODE_STYLE: Use boolean conditions

Rather than use TRUE, FALSE, NULL, 0 or != 0 in if/while conditions.

Additionally, corrected some example code to adhere to the recommended
coding style.

8 years agoinet_pton.c: Fixed compilation warnings
Steve Holme [Sun, 20 Mar 2016 11:14:58 +0000 (11:14 +0000)]
inet_pton.c: Fixed compilation warnings

warning: conversion to 'unsigned char' from 'int' may alter its value

8 years agoRELEASE-NOTES: synced with 80851028efc2fa9
Daniel Stenberg [Sat, 19 Mar 2016 21:46:09 +0000 (22:46 +0100)]
RELEASE-NOTES: synced with 80851028efc2fa9

8 years agombedtls: fix compiler warning
Daniel Stenberg [Sat, 19 Mar 2016 21:37:21 +0000 (22:37 +0100)]
mbedtls: fix compiler warning

vtls/mbedtls.h:67:36: warning: implicit declaration of function
‘mbedtls_sha256’ [-Wimplicit-function-declaration]

8 years agoeasy: Minor coding standard and style updates
Steve Holme [Sat, 19 Mar 2016 20:37:12 +0000 (20:37 +0000)]
easy: Minor coding standard and style updates

Following commit c5744340db. Additionally removes the need for a second
'result code' variable as well.

8 years agoeasy: Remove poll failure check in easy_transfer
Jay Satiro [Sat, 19 Mar 2016 19:29:52 +0000 (15:29 -0400)]
easy: Remove poll failure check in easy_transfer

.. because curl_multi_wait can no longer signal poll failure.

follow-up to 77e1726

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

8 years agobuild: Added missing Visual Studio filter files for VC10 onwards
Steve Holme [Sat, 19 Mar 2016 17:57:43 +0000 (17:57 +0000)]
build: Added missing Visual Studio filter files for VC10 onwards

As these files don't need to contain references to the source files,
although typically do, added basic files which only include three
filters and don't require the project file generator to be modified.

These files allow the source code to be viewed in the Solution Explorer
in versions of Visual Studio from 2010 onwards in the same manner as
previous versions did rather than one large view of files.

8 years agoftp/imap/pop3/smtp: Fixed compilation warning when /Wall enabled
Steve Holme [Sat, 19 Mar 2016 17:15:53 +0000 (17:15 +0000)]
ftp/imap/pop3/smtp: Fixed compilation warning when /Wall enabled

warning C4706: assignment within conditional expression

8 years agoconfig-w32.h: Fixed compilation warning when /Wall enabled
Steve Holme [Sat, 19 Mar 2016 11:05:06 +0000 (11:05 +0000)]
config-w32.h: Fixed compilation warning when /Wall enabled

warning C4668: 'USE_IPV6' is not defined as a preprocessor macro,
               replacing with '0' for '#if/#elif'

8 years agoimap.c: Fixed compilation warning with /Wall enabled
Steve Holme [Sat, 19 Mar 2016 11:01:36 +0000 (11:01 +0000)]
imap.c: Fixed compilation warning with /Wall enabled

warning C4701: potentially uninitialized local variable 'size' used

Technically this can't happen, as the usage of 'size' is protected by
'if(parsed)' and 'parsed' is only set after 'size' has been parsed.

Anyway, lets keep the compiler happy.

8 years agoKNOWN_BUGS: #93 Issue with CURLFORM_CONTENTLEN in arrays on 32-bit platforms
Steve Holme [Sat, 19 Mar 2016 00:06:36 +0000 (00:06 +0000)]
KNOWN_BUGS: #93 Issue with CURLFORM_CONTENTLEN in arrays on 32-bit platforms

8 years agobump: the coming release is 7.48.0
Daniel Stenberg [Fri, 18 Mar 2016 20:59:53 +0000 (21:59 +0100)]
bump: the coming release is 7.48.0

8 years agoconfigure: use cpp -P when needed
Daniel Stenberg [Fri, 18 Mar 2016 15:26:05 +0000 (16:26 +0100)]
configure: use cpp -P when needed

Since gcc 5, the processor output can get split up on multiple lines
that made the configure script fail to figure out values from
definitions. The fix is to use cpp -P, and this fix now first checks if
cpp -P is necessary and then if cpp -P works before it uses that to
extract defined values.

Fixes #719

8 years agoformdata.c: Fixed compilation warning
Steve Holme [Fri, 18 Mar 2016 07:19:31 +0000 (07:19 +0000)]
formdata.c: Fixed compilation warning

formdata.c:390: warning: cast from pointer to integer of different size

Introduced in commit ca5f9341ef this happens because a char*, which is
32-bits wide in 32-bit land, is being cast to a curl_off_t which is
64-bits wide where 64-bit integers are supported by the compiler.

This doesn't happen in 64-bit land as a pointer is the same size as a
curl_off_t.

This fix doesn't address the fact that a 64-bit value cannot be used
for CURLFORM_CONTENTLEN when set in a form array and compiled on a
32-bit platforms, it does at least suppress the compilation warning.

8 years agoFAQ: 2.5 Install libcurl for both 32bit and 64bit?
Daniel Stenberg [Fri, 18 Mar 2016 07:14:05 +0000 (08:14 +0100)]
FAQ: 2.5 Install libcurl for both 32bit and 64bit?

8 years agoopenssl: adapt to API breakage in ERR_remove_thread_state()
Gisle Vanem [Thu, 17 Mar 2016 09:42:33 +0000 (10:42 +0100)]
openssl: adapt to API breakage in ERR_remove_thread_state()

The OpenSSL API change that broke this is "Convert ERR_STATE to new
multi-threading API": openssl commit 8509dcc.

Closes #713

8 years agoversion: init moved to private name space, added protos
Daniel Stenberg [Wed, 16 Mar 2016 23:55:46 +0000 (00:55 +0100)]
version: init moved to private name space, added protos

follow-up to 80015cdd52145

8 years agoopenssl: verbose: show matching SAN pattern
Daniel Stenberg [Wed, 16 Mar 2016 10:02:33 +0000 (11:02 +0100)]
openssl: verbose: show matching SAN pattern

... to allow users to see which specfic wildcard that matched when such
is used.

Also minor logic cleanup to simplify the code, and I removed all tabs
from verbose strings.

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