platform/upstream/curl.git
11 years agooperate: fix clang-analyzer warning
Daniel Stenberg [Mon, 6 Aug 2012 21:32:49 +0000 (23:32 +0200)]
operate: fix clang-analyzer warning

Value stored to 'separator' is never read

11 years agometalink: change code order to build with gnutls-nettle
Daniel Stenberg [Mon, 6 Aug 2012 17:20:35 +0000 (19:20 +0200)]
metalink: change code order to build with gnutls-nettle

Bug: http://curl.haxx.se/bug/view.cgi?id=3554668
Reported by: Anthony G. Basile

11 years agogtls: fix build failure by including nettle-specific headers
Daniel Stenberg [Mon, 6 Aug 2012 13:04:25 +0000 (15:04 +0200)]
gtls: fix build failure by including nettle-specific headers

Bug: http://curl.haxx.se/bug/view.cgi?id=3554668
Reported by: Anthony G. Basile

11 years agoFixed compiler warning - argument is type long.
Guenter Knauf [Mon, 6 Aug 2012 09:45:06 +0000 (11:45 +0200)]
Fixed compiler warning - argument is type long.

11 years agoDISABLED: disable the new tests that do NTLM
Daniel Stenberg [Sun, 5 Aug 2012 22:33:25 +0000 (00:33 +0200)]
DISABLED: disable the new tests that do NTLM

The tests 2025, 2028 and 2031 don't work for me so I'll have them
disabled for now until we solve the problem.

11 years agoAdd tests of auth retries
Joe Mason [Thu, 19 Jul 2012 17:58:10 +0000 (13:58 -0400)]
Add tests of auth retries

11 years agoCleanup handshake after clean NTLM failure
Joe Mason [Fri, 3 Aug 2012 16:37:52 +0000 (12:37 -0400)]
Cleanup handshake after clean NTLM failure

11 years agoZero out auth structs before transfer
Joe Mason [Fri, 27 Jul 2012 21:25:45 +0000 (17:25 -0400)]
Zero out auth structs before transfer

11 years agoAdd a polling loop in main to read from more than one socket at once. Add the O_NONBL...
Joe Mason [Thu, 2 Aug 2012 21:22:46 +0000 (17:22 -0400)]
Add a polling loop in main to read from more than one socket at once. Add the O_NONBLOCK and
SO_KEEPALIVE flag to all sockets. Note that several loops which used to continue on a return value
of 0 (theoretical since 0 would never be returned without O_NONBLOCK) now break on 0 so that they
won't continue reading until after poll is called again.

11 years agoChange return values of get_request, accept_connection and service_connection to...
Joe Mason [Thu, 2 Aug 2012 21:11:05 +0000 (17:11 -0400)]
Change return values of get_request, accept_connection and service_connection to add a return code
for non-blocking sockets: now -1 means error or connection finished, 1 means data was read, and 0
means there is no data available now so need to wait for poll (new return value)

11 years agoHoist the loop out of get_request, and make sure that it can be reentered when a...
Joe Mason [Wed, 1 Aug 2012 21:09:38 +0000 (17:09 -0400)]
Hoist the loop out of get_request, and make sure that it can be reentered when a request is
half-finished.

Note the the req struct used to be re-initialized AFTER reading pipeline data, so now that we
initialize it from the caller we must be careful not to overwrite the pipeline data.

Also we now need to handle the case where the buffer is already full when get_request is called -
previously this never happened as it was always called with an empty buffer and looped until done.

Now get_request is called in a loop, so the next step is to run the loop on a socket only when poll
signals it is readable.

11 years agoMove blocks of code from the sws main loop into their own functions for easier refact...
Joe Mason [Wed, 1 Aug 2012 17:30:46 +0000 (13:30 -0400)]
Move blocks of code from the sws main loop into their own functions for easier refactoring later.
The next step will be to call the correct function after a poll, rather than looping unconditionally

11 years agoRemove the --fork option of sws, since it makes refactoring to use poll more complica...
Joe Mason [Wed, 1 Aug 2012 17:22:02 +0000 (13:22 -0400)]
Remove the --fork option of sws, since it makes refactoring to use poll more complicated and should
be redundant once we poll

11 years agofile: use fdopen() for uploaded files if available
Kamil Dudka [Mon, 30 Jul 2012 12:20:07 +0000 (14:20 +0200)]
file: use fdopen() for uploaded files if available

It eliminates noisy events when using inotify and fixes a TOCTOU issue.

Bug: https://bugzilla.redhat.com/844385

11 years agoAdded DWANT_IDN_PROTOTYPES define for MSVC too.
Guenter Knauf [Sun, 29 Jul 2012 13:14:40 +0000 (15:14 +0200)]
Added DWANT_IDN_PROTOTYPES define for MSVC too.

Discussion on the list: http://curl.haxx.se/mail/lib-2012-07/0271.html

11 years agoAdded Win32 problems.
Guenter Knauf [Sun, 29 Jul 2012 12:30:52 +0000 (14:30 +0200)]
Added Win32 problems.

11 years agoAdded hint to read docs/INSTALL too.
Guenter Knauf [Sun, 29 Jul 2012 12:15:23 +0000 (14:15 +0200)]
Added hint to read docs/INSTALL too.

11 years agoAdded new file to distro.
Guenter Knauf [Sun, 29 Jul 2012 11:16:58 +0000 (13:16 +0200)]
Added new file to distro.

11 years agoTODO: Updated after 7.27.0 release
Steve Holme [Sat, 28 Jul 2012 10:46:50 +0000 (11:46 +0100)]
TODO: Updated after 7.27.0 release

Removed APOP and SASL authentication from the POP3 section and metalink
support from the client section as these features were implemented in
this release.

Moved adding gssapi to SASL into it's own section rather than repeat it
for each protocol.

11 years agoTODO-RELEASE: updated after 7.27.0 release
Daniel Stenberg [Fri, 27 Jul 2012 22:16:51 +0000 (00:16 +0200)]
TODO-RELEASE: updated after 7.27.0 release

11 years agoTHANKS: 12 new contributors from the 7.27.0 release
Daniel Stenberg [Fri, 27 Jul 2012 22:00:26 +0000 (00:00 +0200)]
THANKS: 12 new contributors from the 7.27.0 release

11 years agoversion bump: start towards next release
Daniel Stenberg [Fri, 27 Jul 2012 21:57:27 +0000 (23:57 +0200)]
version bump: start towards next release

Let's call it 7.27.1 for now, but it it probably going to become 7.28.0
when released.

11 years agoFixed compiler warning 'unused parameter'.
Guenter Knauf [Fri, 27 Jul 2012 01:54:58 +0000 (03:54 +0200)]
Fixed compiler warning 'unused parameter'.

11 years agoAdded prototypes to kill compiler warning.
Guenter Knauf [Fri, 27 Jul 2012 01:27:51 +0000 (03:27 +0200)]
Added prototypes to kill compiler warning.

11 years agoAdded --with-winidn to configure.
Guenter Knauf [Fri, 27 Jul 2012 01:19:21 +0000 (03:19 +0200)]
Added --with-winidn to configure.

This needs another look from the configure experts. I tested that
it works so far with MinGW64 cross-compiler; libcurl builds and
links fine, but curl not yet ...

11 years agoUpdate man page info on --metalink and typo.
Ant Bryan [Tue, 24 Jul 2012 02:57:41 +0000 (22:57 -0400)]
Update man page info on --metalink and typo.

11 years agoRELEASE-NOTES: remove mentioned of bug never in a release
Daniel Stenberg [Thu, 26 Jul 2012 22:31:15 +0000 (00:31 +0200)]
RELEASE-NOTES: remove mentioned of bug never in a release

The --silent bug came with 7561a0fc834c435 which was never in a release.
Pointed out by Kamil Dudka

11 years agoRELEASE-NOTES: synced with 33b815e894fb
Daniel Stenberg [Thu, 26 Jul 2012 22:14:33 +0000 (00:14 +0200)]
RELEASE-NOTES: synced with 33b815e894fb

4 more bugfixes, 3 more contributors

11 years agoChanged Windows IDN text to 'WinIDN'.
Guenter Knauf [Thu, 26 Jul 2012 00:49:39 +0000 (02:49 +0200)]
Changed Windows IDN text to 'WinIDN'.

Synced the output to the same short form as we now use for
Windows SSL (WinSSL).

11 years agodarwinssl: fixed freeze involving the multi interface
Nick Zitzmann [Tue, 17 Jul 2012 02:20:57 +0000 (20:20 -0600)]
darwinssl: fixed freeze involving the multi interface

Previously the curl_multi interface would freeze if darwinssl was
enabled and at least one of the handles tried to connect to a Web site
using HTTPS. Removed the "wouldblock" state darwinssl was using because
I figured out a solution for our "would block but in which direction?"
dilemma.

11 years agoAdded support for tls-srp to MinGW builds.
Guenter Knauf [Wed, 25 Jul 2012 11:16:22 +0000 (13:16 +0200)]
Added support for tls-srp to MinGW builds.

11 years agocurl_easy_setopt: fix typo
Daniel Stenberg [Mon, 23 Jul 2012 22:29:39 +0000 (00:29 +0200)]
curl_easy_setopt: fix typo

Reported by: Santhana Todatry

11 years agokeepalive: multiply value for OS-specific units
Daniel Stenberg [Sun, 22 Jul 2012 20:38:38 +0000 (22:38 +0200)]
keepalive: multiply value for OS-specific units

DragonFly uses milliseconds, while our API and Linux use full seconds.

Reported by: John Marino
Bug: http://curl.haxx.se/bug/view.cgi?id=3546257

11 years agohttp: print reason phrase from HTTP status line on error
Kamil Dudka [Fri, 20 Jul 2012 11:33:58 +0000 (13:33 +0200)]
http: print reason phrase from HTTP status line on error

Bug: https://bugzilla.redhat.com/676596

11 years agotool_operate: fix misplaced initialization of orig_noprogress
Kamil Dudka [Sat, 21 Jul 2012 23:55:45 +0000 (01:55 +0200)]
tool_operate: fix misplaced initialization of orig_noprogress

... and orig_isatty which caused --silent to be entirely ignored in case
the standard output was redirected to a file!

11 years agoClient's "qop" value should not be quoted (RFC2617, section 3.2.2).
Anton Yabchinskiy [Sat, 21 Jul 2012 10:40:25 +0000 (14:40 +0400)]
Client's "qop" value should not be quoted (RFC2617, section 3.2.2).

11 years agoFixed typo.
Guenter Knauf [Sat, 21 Jul 2012 07:02:03 +0000 (09:02 +0200)]
Fixed typo.

12 years agomake: make distclean work again
Daniel Stenberg [Sun, 15 Jul 2012 22:18:37 +0000 (00:18 +0200)]
make: make distclean work again

The clean-local hook needed some polish to make sure make distclean
works. Added comment describing why.

12 years agotest Makefile: only feature 'unit' once in the list of dirs
Daniel Stenberg [Sun, 15 Jul 2012 20:59:09 +0000 (22:59 +0200)]
test Makefile: only feature 'unit' once in the list of dirs

12 years agoFixed some typos in documentation
Dan Fandrich [Fri, 20 Jul 2012 19:02:58 +0000 (21:02 +0200)]
Fixed some typos in documentation

12 years agoFixed CR issue with Win32 version on MSYS.
Guenter Knauf [Fri, 20 Jul 2012 15:22:10 +0000 (17:22 +0200)]
Fixed CR issue with Win32 version on MSYS.

Previous fix didnt work on Linux ...

12 years agoFixed CR issue with Win32 version on MSYS.
Guenter Knauf [Fri, 20 Jul 2012 13:39:28 +0000 (15:39 +0200)]
Fixed CR issue with Win32 version on MSYS.

12 years agoFixed MSYS <-> Windows path convertion.
Guenter Knauf [Fri, 20 Jul 2012 13:30:41 +0000 (15:30 +0200)]
Fixed MSYS <-> Windows path convertion.

Replaced the Windows real path from mount hack with a more
reliable and simpler hack: the MSYS shell has a builtin pwd
which understands a -W option which does convertion to Windows
paths. Tested and confirmed that this works on all MSYS versions
I have back to a 3 year old one.

12 years agoFollow-up fix to detect SSL libs with MinGW.
Guenter Knauf [Thu, 19 Jul 2012 14:31:08 +0000 (16:31 +0200)]
Follow-up fix to detect SSL libs with MinGW.

1) the check for winssl needs to come before nss check
2) the SSL checks must begin with a new if or else we will
never find any SSL lib with MinGW.

12 years agoTell git to not convert configure-related files.
Guenter Knauf [Tue, 17 Jul 2012 18:35:23 +0000 (20:35 +0200)]
Tell git to not convert configure-related files.

12 years agoTrial to teach runtests.pl about WinSSL.
Guenter Knauf [Tue, 17 Jul 2012 05:13:58 +0000 (07:13 +0200)]
Trial to teach runtests.pl about WinSSL.

12 years agoFixed warning 'uninitialized value in numeric gt'.
Guenter Knauf [Tue, 17 Jul 2012 04:55:38 +0000 (06:55 +0200)]
Fixed warning 'uninitialized value in numeric gt'.

This is a MSYS/MinGW-only warning; full warning text is:
Use of uninitialized value in numeric gt (>) at ../../curl/tests/runtests.pl line 2227.

12 years agoRELEASE-NOTES: synced with 9d11716933616
Daniel Stenberg [Sun, 15 Jul 2012 20:39:06 +0000 (22:39 +0200)]
RELEASE-NOTES: synced with 9d11716933616

Fixed 6 bugs, added 3 contributors

12 years agomulti_runsingle: added precaution against easy_conn NULL pointer
Daniel Stenberg [Sun, 15 Jul 2012 18:31:37 +0000 (20:31 +0200)]
multi_runsingle: added precaution against easy_conn NULL pointer

In many states the easy_conn pointer is referenced and just assumed to
be working. This is an added extra check since analyzing indicates
there's a risk we can end up in these states with a NULL pointer there.

12 years agogetparam: fix the GetStr() macro
Daniel Stenberg [Fri, 13 Jul 2012 21:39:25 +0000 (23:39 +0200)]
getparam: fix the GetStr() macro

It should return PARAM_NO_MEM if the strdup fails. Spotted by
clang-analyzer

12 years agoTell git to not convert configure-related files.
Guenter Knauf [Sun, 15 Jul 2012 16:25:55 +0000 (18:25 +0200)]
Tell git to not convert configure-related files.

12 years agoparse_proxy: remove dead assignment
Daniel Stenberg [Fri, 13 Jul 2012 12:28:12 +0000 (14:28 +0200)]
parse_proxy: remove dead assignment

Spotted by clang-analyzer

12 years agoftp_do_more: add missing check of return code
Daniel Stenberg [Fri, 13 Jul 2012 12:12:39 +0000 (14:12 +0200)]
ftp_do_more: add missing check of return code

Spotted by clang-analyzer. The return code was never checked, just
stored.

12 years agogetinfo: use va_end and cut off Curl_ from static funcs
Daniel Stenberg [Fri, 13 Jul 2012 11:38:02 +0000 (13:38 +0200)]
getinfo: use va_end and cut off Curl_ from static funcs

va_end() needs to be used after va_start() and we don't normally use
Curl_ prefixes for purely static functions.

12 years agoSplit up Curl_getinfo
Philip Craig [Fri, 13 Jul 2012 11:04:10 +0000 (21:04 +1000)]
Split up Curl_getinfo

This avoids false positives from clang's scan-build.

12 years agoAdded error checking for curl_global_init().
Guenter Knauf [Thu, 12 Jul 2012 13:18:00 +0000 (15:18 +0200)]
Added error checking for curl_global_init().

12 years agoAdded curl_global_* functions.
Guenter Knauf [Thu, 12 Jul 2012 13:01:18 +0000 (15:01 +0200)]
Added curl_global_* functions.

12 years agoMinor fixes to MinGW makefiles.
Guenter Knauf [Thu, 12 Jul 2012 12:15:58 +0000 (14:15 +0200)]
Minor fixes to MinGW makefiles.

12 years agodocs: mention CURL_GLOBAL_DEFAULT
Daniel Stenberg [Thu, 12 Jul 2012 06:40:43 +0000 (08:40 +0200)]
docs: mention CURL_GLOBAL_DEFAULT

12 years agoAdded curl_global_* functions.
Guenter Knauf [Thu, 12 Jul 2012 00:02:22 +0000 (02:02 +0200)]
Added curl_global_* functions.

12 years agotests: verify the stricter numeric option parser
Daniel Stenberg [Wed, 11 Jul 2012 22:32:23 +0000 (00:32 +0200)]
tests: verify the stricter numeric option parser

Test 1409 and 1410 verifies the stricter numeric option parser
introduced the other day in commit f2b6ebed7b.

12 years agoSWS: use of uninitialized memory fix
Daniel Stenberg [Wed, 11 Jul 2012 22:07:16 +0000 (00:07 +0200)]
SWS: use of uninitialized memory fix

I made "connmon" not get initialized properly before use, and I use the
big hammer and make sure we always clear the entire struct to avoid any
problem like this in the future.

12 years agotest48: verify that HEAD doesn't close extra
Daniel Stenberg [Wed, 11 Jul 2012 21:50:19 +0000 (23:50 +0200)]
test48: verify that HEAD doesn't close extra

Two commits ago, we fixed a bug where the connction would be closed
prematurely after a HEAD. Now I added connection-monitor to test 48 and
added a second HEAD and make sure that both are sent over the same
connection.

This triggered a failure before the bug fix and now works. Will help us
avoid a future regression of this kind.

12 years agoconnection-monitor: always log disconnect when enabled
Daniel Stenberg [Wed, 11 Jul 2012 21:49:01 +0000 (23:49 +0200)]
connection-monitor: always log disconnect when enabled

This makes verifying easier and makes us more sure curl closes the
connection only at the correct point in time. Adjusted test 206 and 1008
accordingly and updated the docs for it.

12 years agoHEAD: don't force-close after response-headers
Daniel Stenberg [Wed, 11 Jul 2012 21:13:52 +0000 (23:13 +0200)]
HEAD: don't force-close after response-headers

A HEAD response has no body length and gets the headers like the
corresponding GET would so it should not get closed after the response
based on the same rules. This mistake caused connections that did HEAD
to get closed too often without a valid reason.

Bug: http://curl.haxx.se/bug/view.cgi?id=3542731
Reported by: Eelco Dolstra

12 years agoRemoved trailing empty strings from awk script.
Guenter Knauf [Wed, 11 Jul 2012 22:07:01 +0000 (00:07 +0200)]
Removed trailing empty strings from awk script.

12 years agoCleaned up version awk script.
Guenter Knauf [Wed, 11 Jul 2012 21:23:19 +0000 (23:23 +0200)]
Cleaned up version awk script.

12 years agoAdded project copyright header.
Guenter Knauf [Wed, 11 Jul 2012 19:59:20 +0000 (21:59 +0200)]
Added project copyright header.

12 years agoRemoved libcurl.imp from Makefile.am.
Guenter Knauf [Wed, 11 Jul 2012 15:40:09 +0000 (17:40 +0200)]
Removed libcurl.imp from Makefile.am.

Updated .gitignore for NetWare created files.

12 years agoAdded missing dependency to export list.
Guenter Knauf [Wed, 11 Jul 2012 14:52:48 +0000 (16:52 +0200)]
Added missing dependency to export list.

12 years agoFixed export list path.
Guenter Knauf [Wed, 11 Jul 2012 14:01:48 +0000 (16:01 +0200)]
Fixed export list path.

12 years agoChanged NetWare build to generate export list.
Guenter Knauf [Wed, 11 Jul 2012 13:48:02 +0000 (15:48 +0200)]
Changed NetWare build to generate export list.

12 years agoAdded pointer to FAQ for linkage errors.
Guenter Knauf [Wed, 11 Jul 2012 10:58:54 +0000 (12:58 +0200)]
Added pointer to FAQ for linkage errors.

12 years agoSmall NetWare makefile tweak.
Guenter Knauf [Wed, 11 Jul 2012 09:54:49 +0000 (11:54 +0200)]
Small NetWare makefile tweak.

12 years agoChanged MinGW makefiles to use WINSSL now.
Guenter Knauf [Wed, 11 Jul 2012 09:33:08 +0000 (11:33 +0200)]
Changed MinGW makefiles to use WINSSL now.

12 years agotest231: fix wrong -C use!
Daniel Stenberg [Tue, 10 Jul 2012 21:20:05 +0000 (23:20 +0200)]
test231: fix wrong -C use!

12 years agocmdline: parse numerical options stricter
Daniel Stenberg [Tue, 10 Jul 2012 21:11:30 +0000 (23:11 +0200)]
cmdline: parse numerical options stricter

1 - str2offset() no longer accepts negative numbers since offsets are by
nature positive.

2 - introduced str2unum() for the command line parser that accepts
numericals which are not supposed to be negative, so that it will
properly complain on apparent bad uses and mistakes.

Bug: http://curl.haxx.se/mail/archive-2012-07/0013.html

12 years agodocs: switch to proper UTF-8 for text file encoding
Daniel Stenberg [Mon, 9 Jul 2012 17:27:54 +0000 (19:27 +0200)]
docs: switch to proper UTF-8 for text file encoding

12 years agoMake Curl_schannel_version() return "WinSSL"
Yang Tse [Mon, 9 Jul 2012 13:23:49 +0000 (15:23 +0200)]
Make Curl_schannel_version() return "WinSSL"

Modification based on voting result:

http://curl.haxx.se/mail/lib-2012-07/0104.html

12 years agotest 46: use different path lengths to get reliable sort order
Daniel Stenberg [Mon, 9 Jul 2012 13:25:54 +0000 (15:25 +0200)]
test 46: use different path lengths to get reliable sort order

Since the order of the cookies is sorted by the length of the paths,
having them on the same path length will make the test depend on what
order the qsort() implementation will put them. As seen in the
windows/msys output posted by Guenter in this posting:
http://curl.haxx.se/mail/lib-2012-07/0105.html

12 years agocookie: fixed typo in comment
Daniel Stenberg [Mon, 9 Jul 2012 13:25:34 +0000 (15:25 +0200)]
cookie: fixed typo in comment

12 years agohttps_getsock: provided for schannel backend as well
Christian Hägele [Mon, 9 Jul 2012 11:54:13 +0000 (13:54 +0200)]
https_getsock: provided for schannel backend as well

The function https_getsock was only implemented properly when USE_SSLEAY
or USE_GNUTLS is defined, but it is also necessary for USE_SCHANNEL.

The problem occurs when Curl_read_plain or Curl_write_plain returns
CURLE_AGAIN. In that case CURL_OK is returned to the multi-interface an
the used socket is set to state CURL_POLL_REMOVE and the easy-state is
set to CURLM_STATE_PROTOCONNECT. This is fine, because later the socket
should be set to CURL_POLL_IN or CURL_POLL_OUT via multi_getsock. That's
where https_getsock is called and doesn't return any sockets.

12 years agoRELEASE-NOTES: added a URL reference to cookie docs
Daniel Stenberg [Mon, 9 Jul 2012 11:11:44 +0000 (13:11 +0200)]
RELEASE-NOTES: added a URL reference to cookie docs

12 years agoRemoved obsolete include path to project root.
Guenter Knauf [Sun, 8 Jul 2012 16:06:15 +0000 (18:06 +0200)]
Removed obsolete include path to project root.

12 years agoTODO-RELEASE: issue 316 NTLM over proxy is fixed
Daniel Stenberg [Sun, 8 Jul 2012 13:48:46 +0000 (15:48 +0200)]
TODO-RELEASE: issue 316 NTLM over proxy is fixed

12 years agodarwinssl: don't use arc4random_buf
Nick Zitzmann [Sat, 7 Jul 2012 22:03:16 +0000 (16:03 -0600)]
darwinssl: don't use arc4random_buf

Re-wrote Curl_darwinssl_random() to not use arc4random_buf() because the
function is not available prior to iOS 4.3 and OS X 10.7.

12 years agoKNOWN_BUGS: #80 Curl doesn't recognize certs in DER format
Daniel Stenberg [Sun, 8 Jul 2012 13:37:52 +0000 (15:37 +0200)]
KNOWN_BUGS: #80 Curl doesn't recognize certs in DER format

12 years agoKNOWN_BUGS: #79 - any RCPT TO failure makes and error
Daniel Stenberg [Sun, 8 Jul 2012 13:34:58 +0000 (15:34 +0200)]
KNOWN_BUGS: #79 - any RCPT TO failure makes and error

12 years agowinbuild: Aligned BUILD.WINDOWS.txt and Makefile.vc usage help
Marc Hoersken [Sun, 8 Jul 2012 08:41:53 +0000 (10:41 +0200)]
winbuild: Aligned BUILD.WINDOWS.txt and Makefile.vc usage help

12 years agowinbuild: Make USE_WINSSL depend on USE_SSPI
Marc Hoersken [Thu, 5 Jul 2012 06:53:02 +0000 (08:53 +0200)]
winbuild: Make USE_WINSSL depend on USE_SSPI

Since WinSSL cannot be build without SSPI being enabled,
USE_WINSSL now defaults to the value of USE_SSPI.

The makefile does now raise an error if WinSSL is enabled
while SSPI is disabled.

12 years agowinbuild: Aligned USE_SSPI with other USE_x defines
Marc Hoersken [Thu, 5 Jul 2012 06:49:45 +0000 (08:49 +0200)]
winbuild: Aligned USE_SSPI with other USE_x defines

Renamed external parameter USE_SSPI = yes/no to ENABLE_SSPI = yes/no.
Backwards compatible change: USE_SSPI can still be passed as external
parameter with yes/no value as long as ENABLE_SSPI is not given.

USE_x defines are passed around with true/false values internally,
USE_SSPI is now aligned to this approach, but still accepts external
values yes/no being passed, just like the other defines.

12 years agowinbuild: Clean up formatting and variable naming
Marc Hoersken [Thu, 5 Jul 2012 06:39:40 +0000 (08:39 +0200)]
winbuild: Clean up formatting and variable naming

- Changed space usage to line up with the whole file
- Renamed CFLAGS_SSPI/IPV6 to SSPI/IPV6_CFLAGS to be
  consistent with the other CFLAGS_x variables
- Make use of existing CFLAGS_IPV6 (previously IPV6_CFLAGS)
  instead of appending directly to CFLAGS

12 years agodarwinssl: output cipher with text, remove SNI warning
Nick Zitzmann [Sat, 7 Jul 2012 20:37:52 +0000 (22:37 +0200)]
darwinssl: output cipher with text, remove SNI warning

The code was printing a warning when SNI was set up successfully. Oops.

Printing the cipher number in verbose mode was something only TLS/SSL
programmers might understand, so I had it print the name of the cipher,
just like in the OpenSSL code. That'll be at least a little bit easier
to understand. The SecureTransport API doesn't have a method of getting
a string from a cipher like OpenSSL does, so I had to generate the
strings manually.

12 years agoRELEASE-NOTES: synced with 5a99bce07d
Daniel Stenberg [Sat, 7 Jul 2012 12:47:46 +0000 (14:47 +0200)]
RELEASE-NOTES: synced with 5a99bce07d

12 years agoKNOWN_BUGS: NTLM with unicode works with schannel/winssl!
Daniel Stenberg [Sat, 7 Jul 2012 12:38:50 +0000 (14:38 +0200)]
KNOWN_BUGS: NTLM with unicode works with schannel/winssl!

Bug #75 updated with additional info, still remains for builds with
other backends.

12 years agocode police: narrow source to < 80 columns
Daniel Stenberg [Thu, 5 Jul 2012 22:19:41 +0000 (00:19 +0200)]
code police: narrow source to < 80 columns

12 years agounicode NTLM SSPI: cleanup follow-up
Yang Tse [Thu, 5 Jul 2012 21:41:47 +0000 (23:41 +0200)]
unicode NTLM SSPI: cleanup follow-up

12 years agounicode NTLM SSPI: cleanup
Yang Tse [Thu, 5 Jul 2012 20:16:15 +0000 (22:16 +0200)]
unicode NTLM SSPI: cleanup

Reduce the number of #ifdef UNICODE directives used in source files.

12 years agotests: use connection-monitor and verify results
Daniel Stenberg [Thu, 5 Jul 2012 09:20:18 +0000 (11:20 +0200)]
tests: use connection-monitor and verify results

Test 1008 and 206 don't show the disconnect since it happens when SWS
awaits a new request, but 503 does and so the verify section needs that
string added.

12 years agohttp-proxy: keep CONNECT connections alive (for NTLM)
Daniel Stenberg [Thu, 5 Jul 2012 09:10:50 +0000 (11:10 +0200)]
http-proxy: keep CONNECT connections alive (for NTLM)

When doing CONNECT requests, libcurl must make sure the connection is
alive as much as possible. NTLM requires it and it is generally good for
other cases as well.

NTLM over CONNECT requests has been broken since this regression I
introduced in my CONNECT cleanup commits that started with 41b02378342,
included since 7.25.0.

Bug: http://curl.haxx.se/bug/view.cgi?id=3538625
Reported by: Marcel Raad