]> granicus.if.org Git - curl/log
curl
10 years agohttp_ntlm: Use the SASL functions instead
Steve Holme [Sun, 9 Nov 2014 14:55:41 +0000 (14:55 +0000)]
http_ntlm: Use the SASL functions instead

In preparation for moving the NTLM message code into the SASL module
use the SASL functions in the HTTP code instead.

10 years agolibssh2: detect features based on version, not configure checks
Daniel Stenberg [Sun, 9 Nov 2014 14:42:12 +0000 (15:42 +0100)]
libssh2: detect features based on version, not configure checks

... so that non-configure builds get the correct functions too based on
the libssh2 version used.

10 years agoSSH: use the port number as well for known_known checks
Nobuhiro Ban [Sun, 9 Nov 2014 14:30:06 +0000 (15:30 +0100)]
SSH: use the port number as well for known_known checks

... if the libssh2 version is new enough.

Bug: http://curl.haxx.se/bug/view.cgi?id=1448

10 years agoINSTALL: Updated pre-processor references to the old VC6 project files
Steve Holme [Sun, 9 Nov 2014 14:19:50 +0000 (14:19 +0000)]
INSTALL: Updated pre-processor references to the old VC6 project files

Reworked the two sections that discuss modifying the Visual Studio pre-
processor settings, and vc6libcurl.dsw/vc6libcurl.dsp, to remove the
project files references as they have been superseded by a more thorough
set of project files for VC6 through VC12, but to also give the correct
reference to this setting in later versions of Visual Studio.

10 years agoINSTALL: Added email protocols to the "Disabling in Win32 builds" section
Steve Holme [Sun, 9 Nov 2014 13:35:08 +0000 (13:35 +0000)]
INSTALL: Added email protocols to the "Disabling in Win32 builds" section

10 years agoconfigure: Fixed NTLM missing from features when CURL_DISABLE_HTTP defined
Steve Holme [Sun, 9 Nov 2014 12:58:07 +0000 (12:58 +0000)]
configure: Fixed NTLM missing from features when CURL_DISABLE_HTTP defined

10 years agobuild: Fixed no NTLM support for email when CURL_DISABLE_HTTP is defined
Steve Holme [Sun, 9 Nov 2014 12:46:00 +0000 (12:46 +0000)]
build: Fixed no NTLM support for email when CURL_DISABLE_HTTP is defined

USE_NTLM would only be defined if: HTTP support was enabled, NTLM and
cryptography weren't disabled, and either a supporting cryptography
library or Windows SSPI was being compiled against.

This means it was not possible to build libcurl without HTTP support
and use NTLM for other protocols such as IMAP, POP3 and SMTP. Rather
than introduce a new SASL pre-processor definition, removed the HTTP
prerequisite just like USE_SPNEGO and USE_KRB5.

Note: Winbind support still needs to be dependent on CURL_DISABLE_HTTP
as it is only available to HTTP at present.

This bug dates back to August 2011 when I started to add support for
NTLM to SMTP.

10 years agontlm: Removed an unnecessary free of native Target Info
Steve Holme [Sun, 9 Nov 2014 11:34:36 +0000 (11:34 +0000)]
ntlm: Removed an unnecessary free of native Target Info

Due to commit 40ee1ba0dc the free in Curl_ntlm_decode_type2_target() is
longer required.

10 years agontlm: Moved the native Target Info clean-up from HTTP specific function
Steve Holme [Sun, 9 Nov 2014 11:25:10 +0000 (11:25 +0000)]
ntlm: Moved the native Target Info clean-up from HTTP specific function

10 years agontlm: Moved SSPI clean-up code into SASL module
Steve Holme [Thu, 9 Oct 2014 10:03:14 +0000 (11:03 +0100)]
ntlm: Moved SSPI clean-up code into SASL module

10 years agoMakefile.dist: Added support for WinIDN
Steve Holme [Sat, 8 Nov 2014 18:27:54 +0000 (18:27 +0000)]
Makefile.dist: Added support for WinIDN

10 years agoMakefile.vc6: Added support for WinIDN
Steve Holme [Sat, 8 Nov 2014 17:47:08 +0000 (17:47 +0000)]
Makefile.vc6: Added support for WinIDN

10 years agoMakefile.dist: Added some missing SSPI configurations
Steve Holme [Sat, 8 Nov 2014 17:07:45 +0000 (17:07 +0000)]
Makefile.dist: Added some missing SSPI configurations

10 years agoMakefile.dist: Separated the groups of SSL configurations from each other
Steve Holme [Sat, 8 Nov 2014 16:49:35 +0000 (16:49 +0000)]
Makefile.dist: Separated the groups of SSL configurations from each other

10 years agoMakefile.dist: Grouped the x64 configurations next to their x86 counterparts
Steve Holme [Sat, 8 Nov 2014 16:37:31 +0000 (16:37 +0000)]
Makefile.dist: Grouped the x64 configurations next to their x86 counterparts

10 years agocurl.h: Tidy up of CURL_VERSION_* flags
Steve Holme [Fri, 7 Nov 2014 11:26:06 +0000 (11:26 +0000)]
curl.h: Tidy up of CURL_VERSION_* flags

As the list has gotten a little messy and hard to read, especially with
the introduction of deprecated items, aligned the values and comments
into clean columns and reworked some of the comments in the process.

10 years agocurl_tool: Added krb5 to the supported features
Steve Holme [Fri, 7 Nov 2014 10:44:00 +0000 (10:44 +0000)]
curl_tool: Added krb5 to the supported features

10 years agoconfigure: Added krb5 to the supported features
Steve Holme [Fri, 7 Nov 2014 10:42:54 +0000 (10:42 +0000)]
configure: Added krb5 to the supported features

10 years agoversion info: Added Kerberos V5 to the supported features
Steve Holme [Fri, 7 Nov 2014 10:40:01 +0000 (10:40 +0000)]
version info: Added Kerberos V5 to the supported features

10 years agomk-ca-bundle.vbs: switch to new certdata.txt url.
Guenter Knauf [Fri, 7 Nov 2014 09:27:26 +0000 (10:27 +0100)]
mk-ca-bundle.vbs: switch to new certdata.txt url.

10 years agoRELEASE-NOTES: Synced with dcad09e125
Steve Holme [Fri, 7 Nov 2014 00:08:16 +0000 (00:08 +0000)]
RELEASE-NOTES: Synced with dcad09e125

10 years agohttp_digest: Fixed some memory leaks introduced in commit 6f8d8131b1
Steve Holme [Fri, 7 Nov 2014 00:03:11 +0000 (00:03 +0000)]
http_digest: Fixed some memory leaks introduced in commit 6f8d8131b1

Fixed a couple of memory leaks as a result of moving code that used to
populate allocuserpwd and relied on it's clean up.

10 years agodocs: Updated following the addition of SSPI based HTTP digest auth
Steve Holme [Thu, 6 Nov 2014 23:47:18 +0000 (23:47 +0000)]
docs: Updated following the addition of SSPI based HTTP digest auth

10 years agosasl_sspi: Tidy up of the existing digest code
Steve Holme [Thu, 6 Nov 2014 23:12:18 +0000 (23:12 +0000)]
sasl_sspi: Tidy up of the existing digest code

Following the addition of SSPI support for HTTP digest, synchronised
elements of the email digest code with that of the new HTTP code.

10 years agohttp_digest: Post SSPI support tidy up
Steve Holme [Thu, 6 Nov 2014 23:01:36 +0000 (23:01 +0000)]
http_digest: Post SSPI support tidy up

Post tidy up to ensure commonality of code style and variable names.

10 years agotest552: Don't run HTTP digest tests for SSPI based builds
Dan Fandrich [Thu, 6 Nov 2014 21:28:48 +0000 (22:28 +0100)]
test552: Don't run HTTP digest tests for SSPI based builds

Technical difficulties prevented this from going into the
previous commit.

10 years agotests: Don't run HTTP digest tests for SSPI based builds
Steve Holme [Thu, 6 Nov 2014 19:57:16 +0000 (19:57 +0000)]
tests: Don't run HTTP digest tests for SSPI based builds

Added !SSPI to the features list of the HTTP digest tests, as SSPI
based builds now use the Windows SSPI messaging API rather than the
internal functions, and we can't control the random numbers that get
used as part of the digest.

10 years agocurl.1: show zone index use in a URL
Daniel Stenberg [Thu, 6 Nov 2014 16:35:04 +0000 (17:35 +0100)]
curl.1: show zone index use in a URL

10 years agohttp_digest: Fixed auth retry loop when SSPI based authentication fails
Steve Holme [Thu, 6 Nov 2014 15:25:45 +0000 (15:25 +0000)]
http_digest: Fixed auth retry loop when SSPI based authentication fails

10 years agohttp_digest: Reworked the SSPI based input token storage
Steve Holme [Thu, 6 Nov 2014 15:05:36 +0000 (15:05 +0000)]
http_digest: Reworked the SSPI based input token storage

Reworked the input token (challenge message) storage as what is passed
to the buf and desc in the response generation are typically blobs of
data rather than strings, so this is more in keeping with other areas
of the SSPI code, such as the NTLM message functions.

10 years agosasl_sspi: Fixed compilation warning from commit 2d2a62e3d9
Steve Holme [Thu, 6 Nov 2014 13:27:30 +0000 (13:27 +0000)]
sasl_sspi: Fixed compilation warning from commit 2d2a62e3d9

Added void reference to unused 'data' parameter back to fix compilation
warning.

10 years agosspi: Align definition values to even columns as we use 2 char spacing
Steve Holme [Thu, 6 Nov 2014 13:09:48 +0000 (13:09 +0000)]
sspi: Align definition values to even columns as we use 2 char spacing

10 years agosspi: Fixed missing definition of ISC_REQ_USE_HTTP_STYLE
Steve Holme [Thu, 6 Nov 2014 12:59:57 +0000 (12:59 +0000)]
sspi: Fixed missing definition of ISC_REQ_USE_HTTP_STYLE

Some versions of Microsoft's sspi.h don't define this.

10 years agosasl: Removed non-SSPI Digest functions and defines from SSPI based builds
Steve Holme [Thu, 6 Nov 2014 12:31:10 +0000 (12:31 +0000)]
sasl: Removed non-SSPI Digest functions and defines from SSPI based builds

Introduced in commit 7e6d51a73c these functions and definitions are only
required by the internal challenge-response functions now.

10 years agosasl_sspi: Added HTTP digest response generation code
Steve Holme [Thu, 6 Nov 2014 12:10:50 +0000 (12:10 +0000)]
sasl_sspi: Added HTTP digest response generation code

10 years agohttp_digest: Added SSPI based challenge decoding code
Steve Holme [Thu, 6 Nov 2014 11:42:49 +0000 (11:42 +0000)]
http_digest: Added SSPI based challenge decoding code

10 years agohttp_digest: Added SSPI based clean-up code
Steve Holme [Thu, 6 Nov 2014 11:30:45 +0000 (11:30 +0000)]
http_digest: Added SSPI based clean-up code

10 years agohttp_digest: Added SSPI based authentication functions
Steve Holme [Thu, 6 Nov 2014 10:39:37 +0000 (10:39 +0000)]
http_digest: Added SSPI based authentication functions

This temporarily breaks HTTP digest authentication in SSPI based builds,
causing CURLE_NOT_BUILT_IN to be returned. A follow up commit will
resume normal operation.

10 years agohttp_digest: Added required SSPI based variables to digest structure
Steve Holme [Thu, 6 Nov 2014 10:23:08 +0000 (10:23 +0000)]
http_digest: Added required SSPI based variables to digest structure

10 years agocontributors.sh: --releasenotes reads in names from RELEASE-NOTES
Frank Gevaerts [Thu, 6 Nov 2014 10:03:06 +0000 (11:03 +0100)]
contributors.sh: --releasenotes reads in names from RELEASE-NOTES

This is very handy when updating the RELEASE-NOTES as then we sometimes
have names added manually in the existing list and we use this script to
update the set.

10 years agoRELEASE-NOTES: synced with 68542e72a9
Daniel Stenberg [Thu, 6 Nov 2014 09:25:49 +0000 (10:25 +0100)]
RELEASE-NOTES: synced with 68542e72a9

10 years agocurl_easy_setopt.3: add CURLOPT_PINNEDPUBLICKEY
Daniel Stenberg [Thu, 6 Nov 2014 09:14:33 +0000 (10:14 +0100)]
curl_easy_setopt.3: add CURLOPT_PINNEDPUBLICKEY

Reported-by: Christian Hägele
Bug: http://curl.haxx.se/mail/lib-2014-11/0078.html

10 years agobuild: Fixed Visual Studio project file generation of strdup.[c|h]
Steve Holme [Wed, 5 Nov 2014 23:04:43 +0000 (23:04 +0000)]
build: Fixed Visual Studio project file generation of strdup.[c|h]

As the curl command-line tool now includes it's own version of strdup(),
for platforms that don't have it, fixed up the git respository Visual
Studio project file generator to not include the version from lib in the
tool project files, rather than having both lib\strdup.[c|h] and
src\tool_strdup.[c|h] present.

10 years agotool_strdup.c: include the tool strdup.h
Daniel Stenberg [Wed, 5 Nov 2014 22:33:22 +0000 (23:33 +0100)]
tool_strdup.c: include the tool strdup.h

... not the lib/ one that the tool no longer uses!

10 years agoTHANKS-filter: added another Michał Górny version we've used
Daniel Stenberg [Wed, 5 Nov 2014 13:45:57 +0000 (14:45 +0100)]
THANKS-filter: added another Michał Górny version we've used

10 years agocontributors.sh: split lists using " and "
Daniel Stenberg [Wed, 5 Nov 2014 13:07:21 +0000 (14:07 +0100)]
contributors.sh: split lists using " and "

... and require the space after the filtering to make the filter able to
remove names.

10 years agohttp_digest: Fixed memory leaks from commit 6f8d8131b1
Steve Holme [Wed, 5 Nov 2014 21:33:33 +0000 (21:33 +0000)]
http_digest: Fixed memory leaks from commit 6f8d8131b1

10 years agosasl: Fixed compilation warning from commit 25264131e2
Steve Holme [Wed, 5 Nov 2014 18:20:01 +0000 (18:20 +0000)]
sasl: Fixed compilation warning from commit 25264131e2

Added forward declaration of digestdata to overcome the following
compilation warning:

warning: 'struct digestdata' declared inside parameter list

Additionally made the ntlmdata forward declaration dependent on
USE_NTLM similar to how digestdata and kerberosdata are.

10 years agosasl: Fixed HTTP digest challenges with spaces between auth parameters
Steve Holme [Wed, 5 Nov 2014 17:56:47 +0000 (17:56 +0000)]
sasl: Fixed HTTP digest challenges with spaces between auth parameters

Broken as part of the rework, in commit 7e6d51a73c, to assist with the
addition of HTTP digest via Windows SSPI.

10 years agohttp_digest: Fixed compilation errors from commit 6f8d8131b1
Steve Holme [Wed, 5 Nov 2014 15:38:10 +0000 (15:38 +0000)]
http_digest: Fixed compilation errors from commit 6f8d8131b1

error: invalid operands to binary
warning: pointer targets in assignment differ in signedness

10 years agohttp_digest: Moved response generation into SASL module
Steve Holme [Wed, 5 Nov 2014 15:01:51 +0000 (15:01 +0000)]
http_digest: Moved response generation into SASL module

10 years agohttp_digest: Moved challenge decoding into SASL module
Steve Holme [Wed, 5 Nov 2014 14:33:26 +0000 (14:33 +0000)]
http_digest: Moved challenge decoding into SASL module

10 years agohttp_digest: Moved clean-up function into SASL module
Steve Holme [Wed, 5 Nov 2014 13:58:24 +0000 (13:58 +0000)]
http_digest: Moved clean-up function into SASL module

10 years agohttp_digest: Moved algorithm definitions to SASL module
Steve Holme [Wed, 5 Nov 2014 13:35:27 +0000 (13:35 +0000)]
http_digest: Moved algorithm definitions to SASL module

10 years agossh: Fixed build on platforms where R_OK is not defined
Gisle Vanem [Wed, 5 Nov 2014 13:10:49 +0000 (13:10 +0000)]
ssh: Fixed build on platforms where R_OK is not defined

Bug: http://curl.haxx.se/mail/lib-2014-11/0035.html
Reported-by: Jan Ehrhardt
10 years agostrdup: Removed irrelevant comment
Steve Holme [Wed, 5 Nov 2014 12:53:06 +0000 (12:53 +0000)]
strdup: Removed irrelevant comment

...as Curl_memdup() duplicates an area of fix size memory, that may be
binary, and not a null terminated string.

10 years agourl.c: Fixed compilation warning
Steve Holme [Wed, 5 Nov 2014 12:42:35 +0000 (12:42 +0000)]
url.c: Fixed compilation warning

conversion from 'curl_off_t' to 'size_t', possible loss of data

10 years agohttp_digest: Use CURLcode instead of CURLdigest
Steve Holme [Wed, 5 Nov 2014 12:05:34 +0000 (12:05 +0000)]
http_digest: Use CURLcode instead of CURLdigest

To provide consistent behaviour between the various HTTP authentication
functions use CURLcode based error codes for Curl_input_digest()
especially as the calling code doesn't use the specific error code just
that it failed.

10 years agocontributors.sh: filter common alternative name spellings
Daniel Stenberg [Wed, 5 Nov 2014 11:59:53 +0000 (12:59 +0100)]
contributors.sh: filter common alternative name spellings

docs/THANKS-filter is a new filter file for converting contributor names
we get or have recorded in alternative formats to the one we already use
in THANKS. To help us show individual contributors using a single
presentation of their names.

10 years agoTHANKS: added missing contributor from 2012
Daniel Stenberg [Wed, 5 Nov 2014 11:57:24 +0000 (12:57 +0100)]
THANKS: added missing contributor from 2012

10 years agoRemove duplicate names.
Frank Gevaerts [Wed, 5 Nov 2014 10:59:53 +0000 (11:59 +0100)]
Remove duplicate names.

The removed names also appear as:
Andrés García, François Charlier, Gökhan Şengün, Michał Górny, Sébastien
Willemijns, Christopher Conroy, John E. Malmberg, Luca Altea, Peter Su,
S. Moonesamy, Samuel Listopad, Yasuharu Yamada, Karl Moerder

10 years agosspi: Define authentication package name constants
Steve Holme [Wed, 5 Nov 2014 11:43:22 +0000 (11:43 +0000)]
sspi: Define authentication package name constants

These were previously hard coded, and whilst defined in security.h,
they may or may not be present in old header files given that these
defines were never used in the original code.

Not only that, but there appears to be some ambiguity between the ANSI
and UNICODE NTLM definition name in security.h.

10 years agoAdjust OS400-specific support to last release
Patrick Monnerat [Wed, 5 Nov 2014 11:42:24 +0000 (12:42 +0100)]
Adjust OS400-specific support to last release

10 years agoTHANKS: added two missing names and removed a duplicate
Daniel Stenberg [Wed, 5 Nov 2014 10:28:59 +0000 (11:28 +0100)]
THANKS: added two missing names and removed a duplicate

./contributors.sh found these extra ones that somehow had fallen
through the cracks and never gotten added here.

Reported-by: Frank Gevaerts
10 years agobump: towards next release
Daniel Stenberg [Wed, 5 Nov 2014 08:43:07 +0000 (09:43 +0100)]
bump: towards next release

10 years agoTHANKS: added names from 7.39.0 release notes
Daniel Stenberg [Wed, 5 Nov 2014 08:42:55 +0000 (09:42 +0100)]
THANKS: added names from 7.39.0 release notes

10 years agoRELEASE-NOTES: 7.39.0 release (commit b3875606925) curl-7_39_0
Daniel Stenberg [Wed, 5 Nov 2014 07:20:18 +0000 (08:20 +0100)]
RELEASE-NOTES: 7.39.0 release (commit b3875606925)

10 years agocurl_easy_duphandle: CURLOPT_COPYPOSTFIELDS read out of bounds
Daniel Stenberg [Fri, 17 Oct 2014 10:59:32 +0000 (12:59 +0200)]
curl_easy_duphandle: CURLOPT_COPYPOSTFIELDS read out of bounds

When duplicating a handle, the data to post was duplicated using
strdup() when it could be binary and contain zeroes and it was not even
zero terminated! This caused read out of bounds crashes/segfaults.

Since the lib/strdup.c file no longer is easily shared with the curl
tool with this change, it now uses its own version instead.

Bug: http://curl.haxx.se/docs/adv_20141105.html
CVE: CVE-2014-3707
Reported-By: Symeon Paraschoudis
10 years agolib544.c: use duphandle for test 545
Daniel Stenberg [Thu, 16 Oct 2014 21:58:59 +0000 (23:58 +0200)]
lib544.c: use duphandle for test 545

To verify that curl_easy_duphandle() works fine on a handle that has
gotten data stored with *_COPYPOSTFIELDS.

10 years agotests: add new feature 'SSLpinning'
Daniel Stenberg [Tue, 4 Nov 2014 22:02:09 +0000 (23:02 +0100)]
tests: add new feature 'SSLpinning'

... and make test 2034 and 2035 require it, and have it set when built
with OpenSSL or GnuTLS.

10 years agobuildconf: update copyright year
Daniel Stenberg [Tue, 4 Nov 2014 13:28:42 +0000 (14:28 +0100)]
buildconf: update copyright year

10 years agoINSTALL: Consistent spacing in section headings, paragraphs and examples
Steve Holme [Tue, 4 Nov 2014 14:07:55 +0000 (14:07 +0000)]
INSTALL: Consistent spacing in section headings, paragraphs and examples

10 years agobuildconf: stop checking for libtool
Daniel Stenberg [Tue, 4 Nov 2014 13:27:20 +0000 (14:27 +0100)]
buildconf: stop checking for libtool

As we only use libtoolize, only check for that!

10 years agoINSTALL: Corrected MIT Kerberos and Heimdal package names
Steve Holme [Tue, 4 Nov 2014 12:44:54 +0000 (12:44 +0000)]
INSTALL: Corrected MIT Kerberos and Heimdal package names

10 years agoREADME: Corrected inconsistent use of --help
Steve Holme [Tue, 4 Nov 2014 12:32:33 +0000 (12:32 +0000)]
README: Corrected inconsistent use of --help

10 years agoINSTALL: Use GSS-API rather than GSSAPI
Steve Holme [Tue, 4 Nov 2014 11:51:19 +0000 (11:51 +0000)]
INSTALL: Use GSS-API rather than GSSAPI

As implementations are refereed to GSS-API libraries as per the RFC and
GSSAPI typically refers to the SASL authentication mechanism.

...and minor rewording on the same paragraph.

10 years agoREADME: Added note about using Visual Studio projects out of git repository
Steve Holme [Tue, 4 Nov 2014 11:45:35 +0000 (11:45 +0000)]
README: Added note about using Visual Studio projects out of git repository

10 years agocmake: fix ZLIB_INCLUDE_DIRS use
K. R. Walker [Mon, 3 Nov 2014 18:31:24 +0000 (11:31 -0700)]
cmake: fix ZLIB_INCLUDE_DIRS use

CMake 2.8's FindZLIB.cmake documents ZLIB_INCLUDE_DIRS, see
http://www.cmake.org/cmake/help/v2.8.0/cmake.html#module:FindZLIB

Bug: https://github.com/bagder/curl/pull/123

10 years agoSSL: PolarSSL default min SSL version TLS 1.0
Jay Satiro [Fri, 24 Oct 2014 18:26:57 +0000 (14:26 -0400)]
SSL: PolarSSL default min SSL version TLS 1.0

- Prior to this change no SSL minimum version was set by default at
runtime for PolarSSL. Therefore in most cases PolarSSL would probably
have defaulted to a minimum version of SSLv3 which is no longer secure.

10 years agoopts-Makefile: put more man pages into dist and make hmtl+pdf
Daniel Stenberg [Tue, 4 Nov 2014 09:40:07 +0000 (10:40 +0100)]
opts-Makefile: put more man pages into dist and make hmtl+pdf

10 years agocurl_multi_setopt.3: refer to stand-alone pages
Daniel Stenberg [Tue, 4 Nov 2014 08:46:41 +0000 (09:46 +0100)]
curl_multi_setopt.3: refer to stand-alone pages

... instead of duplicating info.

10 years agoopts: more multi options as stand-alone man pages
Daniel Stenberg [Tue, 4 Nov 2014 09:31:24 +0000 (10:31 +0100)]
opts: more multi options as stand-alone man pages

10 years agoMakefile.am: two cmake files are gone
Daniel Stenberg [Tue, 4 Nov 2014 07:54:55 +0000 (08:54 +0100)]
Makefile.am: two cmake files are gone

8cb010144 removed the CurlCheckCSourceCompiles.cmake and
CurlCheckCSourceRuns.cmake files

10 years agoopts: made stand-alone man-pages for several multi options
Daniel Stenberg [Mon, 3 Nov 2014 22:11:37 +0000 (23:11 +0100)]
opts: made stand-alone man-pages for several multi options

10 years agoCurl_single_getsock: fix hold/pause sock handling
Carlo Wood [Sun, 2 Nov 2014 13:09:00 +0000 (14:09 +0100)]
Curl_single_getsock: fix hold/pause sock handling

The previous condition that checked if the socket was marked as readable
when also adding a writable one, was incorrect and didn't take the pause
bits properly into account.

10 years agocmake: fix struct sockaddr_storage check
Peter Wu [Fri, 31 Oct 2014 11:32:41 +0000 (12:32 +0100)]
cmake: fix struct sockaddr_storage check

CHECK_TYPE_SIZE_PREINCLUDE is an internal, undocumented variable which
was removed in cmake 2.8.1. According to the MSDN docs[1], inclusion
of winsock2.h is sufficient. WIN32_LEAN_AND_MEAN does not really seem
to affect the tests, so remove it too[2].

For the non-windows case, remove inet headers as POSIX only requires
sys/socket.h.

 [1]: http://msdn.microsoft.com/en-us/library/windows/desktop/ms740504%28v=vs.85%29.aspx
 [2]: http://stackoverflow.com/questions/11040133/what-does-defining-win32-lean-and-mean-exclude-exactly

Signed-off-by: Peter Wu <peter@lekensteyn.nl>
10 years agocmake: clean OtherTests, fixing -Werror
Peter Wu [Fri, 31 Oct 2014 11:32:40 +0000 (12:32 +0100)]
cmake: clean OtherTests, fixing -Werror

There were several -Wunused warnings and one duplicate macro definition.
The EXTRA_DEFINES variable of the CurlCheckCSources macro was being
abused ("__unused1\n#undef inline\n#define __unused2", seriously?) to
insert extra C code. Avoid this broken abstraction and use cmake's
check_c_source_compiles directly (works fine with CMake 2.8, maybe
even cmake 2.6).

After cleaning up all related variables (EXTRA_DEFINES,
HEADER_INCLUDES, auxiliary headers_hack), also remove a duplicate
add_headers_include macro and remove duplicate header additions before
the struct timeval check.

Oh, and now the code is converted to use CheckCSourceRuns and
CheckCSourceCompiles, the two curl-specific helpers can be removed.
Unfortunately, the cmake output is now slightly more verbose. Before:

    Performing Test int send(int, const void *, size_t, int) (curl_cv_func_send_test)
    Performing Test int send(int, const void *, size_t, int) (curl_cv_func_send_test) - Failed

Since check_c_source_compiles prints the varname, now you see:

    Performing Test curl_cv_func_send_test
    Performing Test curl_cv_func_send_test - Failed
    Tested: int send(int, const void *, size_t, int)

Compared cmake output with each other using vimdiff, no functional
differences were found. Tested with GCC 4.9.1 and Clang 3.5.0.

Signed-off-by: Peter Wu <peter@lekensteyn.nl>
10 years agocmake: fix gethostby{addr,name}_r in CurlTests
Peter Wu [Fri, 31 Oct 2014 11:32:39 +0000 (12:32 +0100)]
cmake: fix gethostby{addr,name}_r in CurlTests

This patch cleans up the automatically-generated (?) code and fixes one
case that will always fail due to syntax error.

HAVE_GETHOSTBYADDR_R_5_REENTRANT always failed because of a trailing
character ("int length;q"). Several parameter type and unused variable
warnings popped up. This causes a detection failure with -Werror.

Observe that the REENTRANT cases are exactly the same as their
non-REENTRANT cases except for a `_REENTRANT` macro definition.
Merge all these pieces and build one big main function with different
cases, but reusing variables where logical.

For the cases where the parameters where NULL, I looked at
lib/hostip4.c to get an idea of the parameters types.

void-cast variables such as 'rc' to avoid -Wuninitialized errors.

Signed-off-by: Peter Wu <peter@lekensteyn.nl>
10 years agocmake: drop _BSD_SOURCE macro usage
Peter Wu [Fri, 31 Oct 2014 11:32:38 +0000 (12:32 +0100)]
cmake: drop _BSD_SOURCE macro usage

autotools does not use features.h nor _BSD_SOURCE. As this macro
triggers warnings since glibc 2.20, remove it. It should not have
functional differences.

Signed-off-by: Peter Wu <peter@lekensteyn.nl>
10 years agoRELEASE-NOTES: Synced with d71ea7c01e
Steve Holme [Sun, 2 Nov 2014 22:59:47 +0000 (22:59 +0000)]
RELEASE-NOTES: Synced with d71ea7c01e

Additionally, updated "GSSAPI" to "GSS-API" for a Cmake related change
as GSSAPI can be confused with the authentication mechanism rather than
a GSS-API implementation library such as MIT or Heimdal.

10 years agobuild: Added WinIDN build configuration options
Steve Holme [Sun, 2 Nov 2014 18:14:34 +0000 (18:14 +0000)]
build: Added WinIDN build configuration options

Added support for WinIDN build configurations to the VC6 project files.

10 years agobuild: Added WinIDN build configuration options
Steve Holme [Sun, 2 Nov 2014 16:23:48 +0000 (16:23 +0000)]
build: Added WinIDN build configuration options

Added support for WinIDN build configurations to the VC7 and VC7.1
project files.

10 years agobuild: Fixed the pre-processor separator in Visual Studio project files
Steve Holme [Sun, 2 Nov 2014 14:47:47 +0000 (14:47 +0000)]
build: Fixed the pre-processor separator in Visual Studio project files

A left over from the VC6 project files, so mainly cosmetic in Visual
Studio .NET as it can handle both comma and semi-colon characters for
separating multiple pre-processor definitions.

However, the IDE uses semi-colons if the value is edited, and as such,
this may cause problems in future for anyone updating the files or
merging patches.

Used the Visual Studio IDE to correct the separator character.

10 years agobuild: Added optional specific version generation of VC project files
Steve Holme [Sun, 2 Nov 2014 13:00:31 +0000 (13:00 +0000)]
build: Added optional specific version generation of VC project files

..when working from the git repository. This is particularly useful
for single development environments where the project files for all
supported versions of Visual Studio may not be required.

10 years agobuild-openssl.bat: Fix x64 release build
Jay Satiro [Sun, 2 Nov 2014 06:35:41 +0000 (01:35 -0500)]
build-openssl.bat: Fix x64 release build

Prior to this change if x64 release was specified a failed attempt was
made to build x86 release instead.

10 years agoCURLOPT_XOAUTH2_BEARER.3: Corrected the OAuth version number
Steve Holme [Sun, 2 Nov 2014 10:50:33 +0000 (10:50 +0000)]
CURLOPT_XOAUTH2_BEARER.3: Corrected the OAuth version number

10 years agoCURLOPT_SASL_IR.3: Added supported mechanism information
Steve Holme [Sun, 2 Nov 2014 10:48:34 +0000 (10:48 +0000)]
CURLOPT_SASL_IR.3: Added supported mechanism information

...and removed duplication of what protocols are supported from the
description text.

10 years agoopts: Use common wording for MAIL related names
Steve Holme [Sun, 2 Nov 2014 10:38:42 +0000 (10:38 +0000)]
opts: Use common wording for MAIL related names

10 years agoopts: Use common wording for TLS user/password option names
Steve Holme [Sun, 2 Nov 2014 10:33:51 +0000 (10:33 +0000)]
opts: Use common wording for TLS user/password option names

...and revised the proxy wording a little as well.

10 years agoCURLOPT_MAXCONNECTS.3: Reworked the description to be less confusing
Steve Holme [Sun, 2 Nov 2014 10:26:21 +0000 (10:26 +0000)]
CURLOPT_MAXCONNECTS.3: Reworked the description to be less confusing

...and corrected a related typo in curl_easy_setopt.3.