]> granicus.if.org Git - curl/log
curl
12 years agosslgen: avoid compiler error in SSPI builds
Daniel Stenberg [Wed, 27 Jun 2012 21:15:56 +0000 (23:15 +0200)]
sslgen: avoid compiler error in SSPI builds

12 years agossluse.c: fix compiler warning: conversion to 'int' from 'size_t'
Yang Tse [Wed, 27 Jun 2012 17:06:43 +0000 (19:06 +0200)]
ssluse.c: fix compiler warning: conversion to 'int' from 'size_t'

Reported by Tatsuhiro Tsujikawa

http://curl.haxx.se/mail/lib-2012-06/0371.html

12 years agosslgen.c: add compile-time check for SSL-backend completeness
Yang Tse [Wed, 27 Jun 2012 15:14:59 +0000 (17:14 +0200)]
sslgen.c: add compile-time check for SSL-backend completeness

12 years agobuild: add our standard includes to curl_darwinssl.c and curl_multibyte.c
Yang Tse [Wed, 27 Jun 2012 15:13:16 +0000 (17:13 +0200)]
build: add our standard includes to curl_darwinssl.c and curl_multibyte.c

12 years agobuild: add curl_schannel and curl_darwinssl files to other build systems
Yang Tse [Wed, 27 Jun 2012 12:04:42 +0000 (14:04 +0200)]
build: add curl_schannel and curl_darwinssl files to other build systems

12 years agotests: add five more Metalink test cases
Yang Tse [Wed, 27 Jun 2012 11:15:05 +0000 (13:15 +0200)]
tests: add five more Metalink test cases

12 years agotests: update Metalink message format
Yang Tse [Wed, 27 Jun 2012 11:08:46 +0000 (13:08 +0200)]
tests: update Metalink message format

12 years agoMetalink: updated message format
Tatsuhiro Tsujikawa [Tue, 26 Jun 2012 13:55:16 +0000 (22:55 +0900)]
Metalink: updated message format

12 years agoDarwinSSL: allow using NTLM authentication
Nick Zitzmann [Wed, 27 Jun 2012 09:57:31 +0000 (11:57 +0200)]
DarwinSSL: allow using NTLM authentication

Allow NTLM authentication when building using SecureTransport (Darwin) for SSL.

This uses CommonCrypto, a cryptography library that ships with all versions of
iOS and Mac OS X. It's like OpenSSL's libcrypto, except that it's missing a few
less-common cyphers and doesn't have a big number data structure.

12 years agocurl_darwinssl.h: add newline at end of file
Yang Tse [Wed, 27 Jun 2012 08:55:54 +0000 (10:55 +0200)]
curl_darwinssl.h: add newline at end of file

12 years agoossl_seed: remove leftover RAND_screen check
Daniel Stenberg [Tue, 26 Jun 2012 18:05:26 +0000 (20:05 +0200)]
ossl_seed: remove leftover RAND_screen check

Before commit 2dded8fedba (dec 2010) there was logic that used
RAND_screen() at times and now I remove the leftover #ifdef check for
it.

The seeding code that uses Curl_FormBoundary() in ossl_seed() is dubious
to keep since it hardly increases randomness but I fear I'll break
something if I remove it now...

12 years agoDarwinSSL: several adjustments
Nick Zitzmann [Tue, 26 Jun 2012 19:39:48 +0000 (21:39 +0200)]
DarwinSSL: several adjustments

- Renamed st_ function prefix to darwinssl_
- Renamed Curl_st_ function prefix to Curl_darwinssl_
- Moved the duplicated ssl_connect_done out of the #ifdef in lib/urldata.h
- Fixed a teensy little bug that made non-blocking connection attempts block
- Made it so that it builds cleanly against the iOS 5.1 SDK

12 years agocurl-compilers.m4: -Wstrict-aliasing=3 for warning enabled gcc and clang builds
Yang Tse [Tue, 26 Jun 2012 19:22:36 +0000 (21:22 +0200)]
curl-compilers.m4: -Wstrict-aliasing=3 for warning enabled gcc and clang builds

12 years agosockaddr.h: Fixed dereferencing pointer breakin strict-aliasing
Marc Hoersken [Tue, 26 Jun 2012 05:27:02 +0000 (07:27 +0200)]
sockaddr.h: Fixed dereferencing pointer breakin strict-aliasing

Fixed warning: dereferencing pointer does break strict-aliasing rules
by using a union inside the struct Curl_sockaddr_storage declaration.

12 years agoSSL cleanup: use crypto functions through the sslgen layer
Daniel Stenberg [Tue, 26 Jun 2012 12:52:46 +0000 (14:52 +0200)]
SSL cleanup: use crypto functions through the sslgen layer

curl_ntlm_msgs.c would previously use an #ifdef maze and direct
SSL-library calls instead of using the SSL layer we have for this
purpose.

12 years agodarwinssl: add support for native Mac OS X/iOS SSL
Nick Zitzmann [Tue, 26 Jun 2012 12:01:51 +0000 (14:01 +0200)]
darwinssl: add support for native Mac OS X/iOS SSL

12 years agoRELEASE-NOTES: link to more metalink info
Daniel Stenberg [Mon, 25 Jun 2012 21:03:52 +0000 (23:03 +0200)]
RELEASE-NOTES: link to more metalink info

12 years agoRELEASE-NOTES: synced with d025af9bb576
Daniel Stenberg [Mon, 25 Jun 2012 21:02:32 +0000 (23:02 +0200)]
RELEASE-NOTES: synced with d025af9bb576

12 years agocurl_schannel.c: Remove redundant NULL assignments following Curl_safefree()
Yang Tse [Mon, 25 Jun 2012 19:48:20 +0000 (21:48 +0200)]
curl_schannel.c: Remove redundant NULL assignments following Curl_safefree()

12 years agocurl_schannel.c: Replace free() with Curl_safefree()
Marc Hoersken [Mon, 25 Jun 2012 05:16:26 +0000 (07:16 +0200)]
curl_schannel.c: Replace free() with Curl_safefree()

12 years agocurl.1: Updated Metalink description in man page
Tatsuhiro Tsujikawa [Sat, 23 Jun 2012 08:08:37 +0000 (17:08 +0900)]
curl.1: Updated Metalink description in man page

Documented that --include will be ignored if both --metalink
and --include are specified.
Also documented that a Metalink file in the local file system
cannot be used if FILE protocol is disabled.

12 years agoDOCS: Added clarification to CURLOPT_CUSTOMREQUEST for the POP3 protocol
Steve Holme [Sun, 24 Jun 2012 22:23:30 +0000 (23:23 +0100)]
DOCS: Added clarification to CURLOPT_CUSTOMREQUEST for the POP3 protocol

Bug: http://curl.haxx.se/mail/lib-2012-06/0302.html
Reported by: Nagai H

12 years agosmtp: Corrected result code for MAIL, RCPT and DATA commands
Steve Holme [Sun, 24 Jun 2012 21:40:17 +0000 (22:40 +0100)]
smtp: Corrected result code for MAIL, RCPT and DATA commands

Bug: http://curl.haxx.se/mail/lib-2012-06/0094.html
Reported by: Dan

12 years agotest: Added test HTTP receive cookies over IPv6
Ghennadi Procopciuc [Sun, 24 Jun 2012 20:59:15 +0000 (22:59 +0200)]
test: Added test HTTP receive cookies over IPv6

12 years agotests: add another Metalink test case
Yang Tse [Fri, 22 Jun 2012 18:14:30 +0000 (20:14 +0200)]
tests: add another Metalink test case

12 years agotests: Enable test2010 and fixed hash value
Tatsuhiro Tsujikawa [Fri, 22 Jun 2012 14:22:46 +0000 (23:22 +0900)]
tests: Enable test2010 and fixed hash value

12 years agoMetalink: ignore --include if --metalink is used.
Tatsuhiro Tsujikawa [Fri, 22 Jun 2012 14:20:16 +0000 (23:20 +0900)]
Metalink: ignore --include if --metalink is used.

Including headers in response body will break Metalink XML parser.
If it is included in the file described in Metalink XML, hash check
will fail. Therefore, --include should be ignored if --metalink is
used.

12 years agotests: add six Metalink test cases
Yang Tse [Thu, 21 Jun 2012 16:30:23 +0000 (18:30 +0200)]
tests: add six Metalink test cases

12 years agotest 2005: add verification of hash checking outcome
Yang Tse [Thu, 21 Jun 2012 16:21:45 +0000 (18:21 +0200)]
test 2005: add verification of hash checking outcome

12 years agogetpart.pm: remove misleading comment
Yang Tse [Thu, 21 Jun 2012 16:17:50 +0000 (18:17 +0200)]
getpart.pm: remove misleading comment

12 years agocurl: Prefixed all Metalink related messages with "Metalink: "
Tatsuhiro Tsujikawa [Thu, 21 Jun 2012 14:32:12 +0000 (23:32 +0900)]
curl: Prefixed all Metalink related messages with "Metalink: "

12 years agotests: Added Metalink test case # 2005
Tatsuhiro Tsujikawa [Thu, 21 Jun 2012 02:16:53 +0000 (04:16 +0200)]
tests: Added Metalink test case # 2005

12 years agocurl: Restore noprogress and isatty config values.
Tatsuhiro Tsujikawa [Wed, 20 Jun 2012 16:00:53 +0000 (01:00 +0900)]
curl: Restore noprogress and isatty config values.

The noprogress and isatty in Configurable are global, in a sense
that they persist in one curl invocation. Currently once one
download writes its response data to tty, they are set to FALSE
and they are not restored on successive downloads.  This change
first backups the current noprogress and isatty, and restores
them when download does not write its data to tty.

12 years agocurl: Made --metalink option toggle Metalink functionality
Tatsuhiro Tsujikawa [Wed, 20 Jun 2012 15:51:06 +0000 (00:51 +0900)]
curl: Made --metalink option toggle Metalink functionality

In this change, --metalink option no longer takes argument.  If
it is specified, given URIs are processed as Metalink XML file.
If given URIs are remote (e.g., http URI), curl downloads it
first. Regardless URI is local file (e.g., file URI scheme) or
remote, Metalink XML file is not written to local file system and
the received data is fed into Metalink XML parser directly.  This
means with --metalink option, filename related options like -O
and -o are ignored.

Usage examples:

$ curl --metalink http://example.org/foo.metalink

This will download foo.metalink and parse it and then download
the URI described there.

$ curl --metalink file://foo.metalink

This will parse local file foo.metalink and then download the URI
described there.

12 years agocurl: Refactored metalink_checksum
Tatsuhiro Tsujikawa [Sat, 16 Jun 2012 13:58:06 +0000 (22:58 +0900)]
curl: Refactored metalink_checksum

When creating metalink_checksum from metalink_checksum_t, first
check hex digest is valid for the given hash function.  We do
this check in the order of digest_aliases so that first good
match will be chosen (strongest hash function available).  As a
result, the metalinkfile now only contains at most one
metalink_checksum because other entries are just redundant.

12 years agotool_doswin.c: fix djgpp function _use_lfn() used without a prototype
Gisle Vanem [Wed, 20 Jun 2012 21:40:42 +0000 (23:40 +0200)]
tool_doswin.c: fix djgpp function _use_lfn() used without a prototype

http://curl.haxx.se/mail/archive-2012-06/0028.html

12 years agobuild: fix RESOURCE bug in lib/Makefile.vc*
Yang Tse [Wed, 20 Jun 2012 21:30:17 +0000 (23:30 +0200)]
build: fix RESOURCE bug in lib/Makefile.vc*

Removed two, not intended to exist, RESOURCE declarations.

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

And sorted configuration hunks to reflect same internal order
as the one shown in the usage message.

12 years agoschannel: Implement new buffer size strategy
Marc Hoersken [Wed, 20 Jun 2012 05:49:34 +0000 (07:49 +0200)]
schannel: Implement new buffer size strategy

Increase decrypted and encrypted cache buffers using limitted
doubling strategy. More information on the mailinglist:
http://curl.haxx.se/mail/lib-2012-06/0255.html

It updates the two remaining reallocations that have already been there
and fixes the other one to use the same "do we need to increase the
buffer"-condition as the other two.  CURL_SCHANNEL_BUFFER_STEP_SIZE was
renamed to CURL_SCHANNEL_BUFFER_FREE_SIZE since that is actually what it
is now.  Since we don't know how much more data we are going to read
during the handshake, CURL_SCHANNEL_BUFFER_FREE_SIZE is used as the
minimum free space required in the buffer for the next operation.
CURL_SCHANNEL_BUFFER_STEP_SIZE was used for that before, too, but since
we don't have a step size now, the define was renamed.

12 years agoschannel SSL: fix compiler warning
Yang Tse [Wed, 20 Jun 2012 20:26:51 +0000 (22:26 +0200)]
schannel SSL: fix compiler warning

12 years agoschannel SSL: fix for renegotiate problem
Mark Salisbury [Wed, 20 Jun 2012 16:24:47 +0000 (10:24 -0600)]
schannel SSL: fix for renegotiate problem

In schannel_connect_step2() doread should be initialized based
on connssl->connecting_state.

12 years agoruntests.pl: make it support metalink feature
Tatsuhiro Tsujikawa [Wed, 20 Jun 2012 18:15:42 +0000 (20:15 +0200)]
runtests.pl: make it support metalink feature

12 years agogetpart.pm: make test definition section/part parser more robust
Yang Tse [Wed, 20 Jun 2012 18:13:07 +0000 (20:13 +0200)]
getpart.pm: make test definition section/part parser more robust

Test definition section parts which needed to include xml-lingo as contents
of that part required that the xml-blurb was written as a single line. Now the
xml-data inside the part can be written multiline making it more readable.

Tested with <client><file> part which is written to disk before <command> runs.

12 years agoschannel_connect_step2: checksrc whitespace fix
Daniel Stenberg [Tue, 19 Jun 2012 22:51:03 +0000 (00:51 +0200)]
schannel_connect_step2: checksrc whitespace fix

12 years agoschannel SSL: changes in schannel_connect_step2
Mark Salisbury [Tue, 19 Jun 2012 22:51:03 +0000 (00:51 +0200)]
schannel SSL: changes in schannel_connect_step2

Process extra data buffer before returning from schannel_connect_step2.
Without this change I've seen WinCE hang when schannel_connect_step2
returns and calls Curl_socket_ready.

If the encrypted handshake does not fit in the intial buffer (seen with
large certificate chain), increasing the encrypted data buffer is necessary.

Fixed warning in curl_schannel.c line 1215.

12 years agoconfig-win32ce.h: WinCE config adjustment
Mark Salisbury [Tue, 19 Jun 2012 22:49:49 +0000 (00:49 +0200)]
config-win32ce.h: WinCE config adjustment

process.h is not present on WinCE

12 years agoschannel SSL: Made send method handle unexpected cases better
Mark Salisbury [Tue, 19 Jun 2012 22:14:17 +0000 (00:14 +0200)]
schannel SSL: Made send method handle unexpected cases better

Implemented timeout loop in schannel_send while sending data.  This
is as close as I think we can get to write buffering; I put a big
comment in to explain my thinking.

With some committer adjustments

12 years agocurl_schannel.c: Avoid unnecessary realloc calls to reduce buffer size
Marc Hoersken [Tue, 19 Jun 2012 12:57:12 +0000 (14:57 +0200)]
curl_schannel.c: Avoid unnecessary realloc calls to reduce buffer size

12 years agoschannel SSL: Use standard Curl read/write methods
Mark Salisbury [Tue, 19 Jun 2012 18:28:22 +0000 (20:28 +0200)]
schannel SSL: Use standard Curl read/write methods

Replaced calls to swrite with Curl_write_plain and calls to sread
with Curl_read_plain.

With some committer adjustments

12 years agoschannel SSL: make wording of some trace messages better reflect reality
Yang Tse [Tue, 19 Jun 2012 18:28:21 +0000 (20:28 +0200)]
schannel SSL: make wording of some trace messages better reflect reality

12 years agocurl_schannel.h: Use BUFSIZE as the initial buffer size if available
Marc Hoersken [Tue, 19 Jun 2012 08:31:56 +0000 (10:31 +0200)]
curl_schannel.h: Use BUFSIZE as the initial buffer size if available

Make the Schannel implementation use libcurl's default buffer size
for the initial received encrypted and decrypted data cache buffers.
The implementation still needs to handle more data since more data
might have already been received or decrypted during the handshake
or a read operation which needs to be cached for the next read.

12 years agoFixed NetWare makefile broken from last commit.
Guenter Knauf [Tue, 19 Jun 2012 09:54:10 +0000 (11:54 +0200)]
Fixed NetWare makefile broken from last commit.

12 years agoschannel SSL: Implemented SSL shutdown
Mark Salisbury [Tue, 19 Jun 2012 02:15:03 +0000 (04:15 +0200)]
schannel SSL: Implemented SSL shutdown

curl_schannel.c - implemented graceful SSL shutdown.  If we fail to
shutdown the connection gracefully, I've seen schannel try to use a
session ID for future connects and the server aborts the connection
during the handshake.

12 years agoschannel SSL: certificate validation on WinCE
Mark Salisbury [Tue, 19 Jun 2012 02:15:02 +0000 (04:15 +0200)]
schannel SSL: certificate validation on WinCE

curl_schannel.c - auto certificate validation doesn't seem to work
right on CE.  I added a method to perform the certificate validation
which uses CertGetCertificateChain and manually handles the result.

12 years agoschannel SSL: Added helper methods to simplify code
Mark Salisbury [Tue, 19 Jun 2012 02:15:01 +0000 (04:15 +0200)]
schannel SSL: Added helper methods to simplify code

Added helper methods InitSecBuffer() and InitSecBufferDesc() to make it
easier to set up SecBuffer & SecBufferDesc structs.

12 years agoSome more NetWare makefile tweaks for metalink.
Guenter Knauf [Mon, 18 Jun 2012 21:18:58 +0000 (23:18 +0200)]
Some more NetWare makefile tweaks for metalink.

12 years agotool_cb_see.c: WinCE build adjustment
Yang Tse [Mon, 18 Jun 2012 16:47:04 +0000 (18:47 +0200)]
tool_cb_see.c: WinCE build adjustment

12 years agosetup.h: WinCE build adjustment
Mark Salisbury [Mon, 18 Jun 2012 16:44:43 +0000 (18:44 +0200)]
setup.h: WinCE build adjustment

12 years agoftplistparser.c: do not compile if FTP protocol is not enabled
Mark Salisbury [Mon, 18 Jun 2012 11:06:02 +0000 (13:06 +0200)]
ftplistparser.c: do not compile if FTP protocol is not enabled

12 years agoWin32: downplay MS bazillion type synonyms game
Yang Tse [Sat, 16 Jun 2012 17:20:50 +0000 (19:20 +0200)]
Win32: downplay MS bazillion type synonyms game

Avoid usage of some MS type synonyms to allow compilation with
compiler headers that don't define these, using simpler synonyms.

12 years agoCurl_rtsp_parseheader: avoid useless malloc/free
Daniel Stenberg [Fri, 15 Jun 2012 20:51:45 +0000 (22:51 +0200)]
Curl_rtsp_parseheader: avoid useless malloc/free

Coverity actually pointed out flawed logic in the previous call to
Curl_strntoupper() where the code used sizeof() of a pointer to pass in
a size argument. That code still worked since it only needed to
uppercase 4 letters. Still, the entire malloc/uppercase/free sequence
was pointless since the code has already matched the string once in the
condition that starts the block of code.

12 years agocurl_share_setopt: use va_end()
Daniel Stenberg [Fri, 15 Jun 2012 20:37:19 +0000 (22:37 +0200)]
curl_share_setopt: use va_end()

As spotted by Coverity, va_end() was not used previously. To make it
used I took away a bunch of return statements and made them into
assignments instead.

12 years agoSSPI related code: Unicode support for WinCE - kill compiler warnings
Yang Tse [Fri, 15 Jun 2012 19:50:57 +0000 (21:50 +0200)]
SSPI related code: Unicode support for WinCE - kill compiler warnings

12 years agoSSPI related code: Unicode support for WinCE - commit 46480bb9 follow-up
Mark Salisbury [Fri, 15 Jun 2012 17:39:18 +0000 (19:39 +0200)]
SSPI related code: Unicode support for WinCE - commit 46480bb9 follow-up

12 years agobuild: add curl_multibyte files to build systems
Yang Tse [Fri, 15 Jun 2012 16:17:25 +0000 (18:17 +0200)]
build: add curl_multibyte files to build systems

12 years agoSSPI related code: Unicode support for WinCE
Mark Salisbury [Fri, 15 Jun 2012 16:05:11 +0000 (18:05 +0200)]
SSPI related code: Unicode support for WinCE

SSPI related code now compiles with ANSI and WCHAR versions of security
methods (WinCE requires WCHAR versions of methods).

Pulled UTF8 to WCHAR conversion methods out of idn_win32.c into their own file.

curl_sasl.c - include curl_memory.h to use correct memory functions.

getenv.c and telnet.c - WinCE compatibility fix

With some committer adjustments

12 years agoFixed typo.
Guenter Knauf [Fri, 15 Jun 2012 00:24:51 +0000 (02:24 +0200)]
Fixed typo.

12 years agowinbuild/MakefileBuild.vc: convert line endings to DOS style
Yang Tse [Thu, 14 Jun 2012 17:19:18 +0000 (19:19 +0200)]
winbuild/MakefileBuild.vc: convert line endings to DOS style

As per request on mailing list: http://curl.haxx.se/mail/lib-2012-06/0222.html

12 years agowinbuild: Allow SSPI build with or without Schannel
Marc Hoersken [Thu, 14 Jun 2012 15:56:59 +0000 (17:56 +0200)]
winbuild: Allow SSPI build with or without Schannel

The changes introduced in commit 2bfa57bc32 are not enough
to make it actually possible to use the USE_WINSSL option.
Makefile.vc was not updated and the configuration name which is
used in the build path did not match between both build files.

This patch fixes those issues and introduces the following changes:

- Replaced the -schannel name with -winssl in order to be consistent
with the other options
- Added ENABLE_WINSSL option to winbuild/Makefile.vc (default yes)
- Changed winbuild/MakefileBuild.vc to set USE_WINSSL to true if
USE_SSL is false and USE_WINSSL was not specified as a parameter
- Separated WINSSL handling from SSPI handling to be consistent with
the other options and their corresponding code path

12 years agocurl.1: 7.27.0 seems next release
Yang Tse [Thu, 14 Jun 2012 16:10:29 +0000 (18:10 +0200)]
curl.1: 7.27.0 seems next release

12 years agoschannel: fix printf-style format strings
Yang Tse [Thu, 14 Jun 2012 14:55:26 +0000 (16:55 +0200)]
schannel: fix printf-style format strings

12 years agoFix bad failf() and info() usage
Yang Tse [Thu, 14 Jun 2012 11:32:05 +0000 (13:32 +0200)]
Fix bad failf() and info() usage

Calls to failf() are not supposed to provide trailing newline.
Calls to infof() must provide trailing newline.

Fixed 30 or so strings.

12 years agoschannel: fix unused parameter warnings
Yang Tse [Thu, 14 Jun 2012 10:12:54 +0000 (12:12 +0200)]
schannel: fix unused parameter warnings

12 years agoschannel: fix comparisons between signed and unsigned
Yang Tse [Thu, 14 Jun 2012 10:10:51 +0000 (12:10 +0200)]
schannel: fix comparisons between signed and unsigned

12 years agoschannel: fix discarding qualifier from pointer type
Yang Tse [Thu, 14 Jun 2012 10:05:48 +0000 (12:05 +0200)]
schannel: fix discarding qualifier from pointer type

12 years agoschannel: fix shadowing of global declarations
Yang Tse [Thu, 14 Jun 2012 09:53:46 +0000 (11:53 +0200)]
schannel: fix shadowing of global declarations

12 years agoschannel: fix Curl_schannel_init() and Curl_schannel_cleanup() declarations
Yang Tse [Thu, 14 Jun 2012 09:34:12 +0000 (11:34 +0200)]
schannel: fix Curl_schannel_init() and Curl_schannel_cleanup() declarations

12 years agourldata.h: fix cyassl/openssl/ssl.h build clash with wincrypt.h
Gisle Vanem [Wed, 13 Jun 2012 23:51:51 +0000 (01:51 +0200)]
urldata.h: fix cyassl/openssl/ssl.h build clash with wincrypt.h

Building with CyaSSL failed compilation. Reason being that OCSP_REQUEST and
OCSP_RESPONSE are enum values in CyaSSL and defines in <wincrypt.h> included
via <winldap.h> in ldap.c.

http://curl.haxx.se/mail/lib-2012-06/0196.html

12 years agoMakefileBuild.vc: Allow building without SSL
Yang Tse [Wed, 13 Jun 2012 19:15:41 +0000 (21:15 +0200)]
MakefileBuild.vc: Allow building without SSL

In order to use Windows native SSL support define 'USE_WINSSL'

12 years agoconfigure: new option --with-winssl
Yang Tse [Wed, 13 Jun 2012 18:54:03 +0000 (20:54 +0200)]
configure: new option --with-winssl

This option may be used to build curl/libcurl using SSL/TLS support provided
by MS windows system libraries. Option is mutually exclusive with any other
SSL library. Default value is --without-winssl.

--with-winssl option implies --with-sspi option.

Option meaningful only for Windows builds.

12 years agoChanged Schannel string to SSL-Windows-native.
Guenter Knauf [Wed, 13 Jun 2012 17:29:45 +0000 (19:29 +0200)]
Changed Schannel string to SSL-Windows-native.

This is more descriptive for the user who might
not even know what schannnel is at all.

12 years agoschannel: remove version number and identify its use with 'schannel' literal
Yang Tse [Wed, 13 Jun 2012 13:53:51 +0000 (15:53 +0200)]
schannel: remove version number and identify its use with 'schannel' literal

Version number is removed in order to make this info consistent with
how we do it with other MS and Linux system libraries for which we don't
provide this info.

Identifier changed from 'WinSSPI' to 'schannel' given that this is the
actual provider of the SSL/TLS support. libcurl can still be built with
SSPI and without SCHANNEL support.

12 years agosinglesocket: remove dead code
Daniel Stenberg [Tue, 12 Jun 2012 21:04:04 +0000 (23:04 +0200)]
singlesocket: remove dead code

No need to check if 'entry' is non-NULL in a spot where it is already checked
and guaranteed to be non-NULL.

(Spotted by a Coverity scan)

12 years agonetrc: remove dead code
Daniel Stenberg [Tue, 12 Jun 2012 20:46:14 +0000 (22:46 +0200)]
netrc: remove dead code

Remove two states from the enum and the corresponding code for them as
these states were never reached or used.

(Spotted by a Coverity scan)

12 years agoRevert "connect.c/ftp.c: Fixed dereferencing pointer breakin strict-aliasing"
Yang Tse [Tue, 12 Jun 2012 11:12:09 +0000 (13:12 +0200)]
Revert "connect.c/ftp.c: Fixed dereferencing pointer breakin strict-aliasing"

This reverts commit 9c94236e6cc078a0dc5a78b6e2fefc1403e5375e.

It didn't server its purpose, so lets go back to long-time working code.

12 years agosocks_sspi.c: further cleanup
Yang Tse [Tue, 12 Jun 2012 10:34:52 +0000 (12:34 +0200)]
socks_sspi.c: further cleanup

12 years agosocks_sspi.c: Clean up and removal of obsolete minor status
Marc Hoersken [Tue, 12 Jun 2012 06:50:10 +0000 (08:50 +0200)]
socks_sspi.c: Clean up and removal of obsolete minor status

Removed obsolete minor status variable and parameter of status function
which was never used or set at all. Also Curl_sspi_strerror does support
only one status and there is no need for a second sub status.

12 years agoRemoved trailing whitespaces.
Guenter Knauf [Tue, 12 Jun 2012 03:36:08 +0000 (05:36 +0200)]
Removed trailing whitespaces.

12 years agostrerror.c: make Curl_sspi_strerror() always return code for errors
Yang Tse [Tue, 12 Jun 2012 01:57:15 +0000 (03:57 +0200)]
strerror.c: make Curl_sspi_strerror() always return code for errors

12 years agocurl_sspi.h: provide sspi status definitions missing in old headers
Yang Tse [Tue, 12 Jun 2012 01:56:24 +0000 (03:56 +0200)]
curl_sspi.h: provide sspi status definitions missing in old headers

12 years agosspi: make Curl_sspi_strerror() libcurl's sspi status code string function
Yang Tse [Mon, 11 Jun 2012 23:11:10 +0000 (01:11 +0200)]
sspi: make Curl_sspi_strerror() libcurl's sspi status code string function

12 years agosspi: make Curl_sspi_strerror() libcurl's sspi status code string function
Yang Tse [Mon, 11 Jun 2012 23:06:48 +0000 (01:06 +0200)]
sspi: make Curl_sspi_strerror() libcurl's sspi status code string function

12 years agoRevert: 634f7cfee40d4658 partially
Daniel Stenberg [Mon, 11 Jun 2012 20:58:39 +0000 (22:58 +0200)]
Revert: 634f7cfee40d4658 partially

Make sure CURL_VERSION_SSPI is present and works as in previous releases
for ABI and API compatibility reasons.

12 years agochecksrc: shorten a few lines to comply
Daniel Stenberg [Mon, 11 Jun 2012 17:08:46 +0000 (19:08 +0200)]
checksrc: shorten a few lines to comply

12 years agocleanup: remove trailing whitespace
Daniel Stenberg [Mon, 11 Jun 2012 17:06:43 +0000 (19:06 +0200)]
cleanup: remove trailing whitespace

12 years agowinbuild: Removed WITH_SSL=schannel and tie schannel to SSPI
Marc Hoersken [Mon, 11 Jun 2012 17:04:49 +0000 (19:04 +0200)]
winbuild: Removed WITH_SSL=schannel and tie schannel to SSPI

Removed specific WITH_SSL=schannel paramter that did not fit the general
schema and complicated the parameters. For now Schannel will be enabled
if SSPI is enabled and OpenSSL is disabled.

12 years agoMakefile.vc6: Added version.lib if built with SSPI
Steve Holme [Mon, 11 Jun 2012 17:04:16 +0000 (19:04 +0200)]
Makefile.vc6: Added version.lib if built with SSPI

12 years agowinbuild: Updated winbuild scripts to add schannel
Marc Hoersken [Mon, 11 Jun 2012 17:03:14 +0000 (19:03 +0200)]
winbuild: Updated winbuild scripts to add schannel

12 years agomingw32: Fixed warning of USE_SSL being redefined
Marc Hoersken [Sun, 10 Jun 2012 21:40:29 +0000 (23:40 +0200)]
mingw32: Fixed warning of USE_SSL being redefined

12 years agosspi: Fixed incompatible parameter pointer type in Curl_sspi_version
Marc Hoersken [Sun, 10 Jun 2012 21:31:59 +0000 (23:31 +0200)]
sspi: Fixed incompatible parameter pointer type in Curl_sspi_version

12 years agosspi: Updated RELEASE-NOTES, FEATURES and THANKS
Marc Hoersken [Sun, 10 Jun 2012 20:34:43 +0000 (22:34 +0200)]
sspi: Updated RELEASE-NOTES, FEATURES and THANKS