platform/upstream/curl.git
12 years agoVC makefiles: fixed variable name mistake
Daniel Stenberg [Wed, 17 Aug 2011 21:51:37 +0000 (23:51 +0200)]
VC makefiles: fixed variable name mistake

12 years agoMemoryTracking: adjust curl_domalloc() and curl_dofree() memory filling
Yang Tse [Wed, 17 Aug 2011 17:02:42 +0000 (19:02 +0200)]
MemoryTracking: adjust curl_domalloc() and curl_dofree() memory filling

Until 2011-08-17 libcurl's Memory Tracking feature also performed
automatic malloc and free filling operations using 0xA5 and 0x13
values. Our own preinitialization of dynamically allocated memory
might be useful when not using third party memory debuggers, but
on the other hand this would fool memory debuggers into thinking
that all dynamically allocated memory is properly initialized.

As a default setting, libcurl's Memory Tracking feature no longer
performs preinitialization of dynamically allocated memory on its
own. If you know what you are doing, and really want to retain old
behavior, you can achieve this compiling with preprocessor symbols
CURL_MT_MALLOC_FILL and CURL_MT_FREE_FILL defined with appropriate
values.

12 years agoMemoryTracking: make curl_docalloc() call calloc() avoiding our zero fill
Yang Tse [Tue, 16 Aug 2011 20:24:23 +0000 (22:24 +0200)]
MemoryTracking: make curl_docalloc() call calloc() avoiding our zero fill

12 years agoMSVC makefiles: provide SSH build targets
Daniel Stenberg [Mon, 15 Aug 2011 21:22:06 +0000 (23:22 +0200)]
MSVC makefiles: provide SSH build targets

"release-ssl-ssh2-zlib" and "debug-ssl-ssh2-zlib" are two new makefile
targets that build libcurl with MSVC and link with libssh2

Bug: http://curl.haxx.se/bug/view.cgi?id=3388920
Reported by: "kdekker"

12 years agotest572: fixed
Daniel Stenberg [Mon, 15 Aug 2011 20:40:28 +0000 (22:40 +0200)]
test572: fixed

Two problems were fixed:

GET_PARAMETER responses that have no body must be 204 response or
properly set length to 0.

One of the <data> sections had the wrong content-length for its
GET_PARAMETER response.

Enabled test 572 again.

12 years agoCurl_pgrsStartNow: clear all flags but HIDE
Daniel Stenberg [Mon, 15 Aug 2011 20:08:58 +0000 (22:08 +0200)]
Curl_pgrsStartNow: clear all flags but HIDE

As bug 3385258 pointed out but I missed up the fix for. This is another
take at a fix.

Bug: http://curl.haxx.se/bug/view.cgi?id=3392101
Reported by: Wu Yongzheng

12 years agounittests: disable unit tests for some autobuild configurations
Yang Tse [Mon, 15 Aug 2011 16:27:59 +0000 (18:27 +0200)]
unittests: disable unit tests for some autobuild configurations

IRIX 6.5.24 gcc 3.3 autobuilds fail unittests library compilation due to a
problem related with OpenSSL headers and library versions not matching.

All AIX autobuilds fails unit tests linking against unittests library due to
unittests library being built with no symbols or members. Libtool ?

12 years agonss: start with no database if the selected database is broken
Kamil Dudka [Mon, 15 Aug 2011 11:48:45 +0000 (13:48 +0200)]
nss: start with no database if the selected database is broken

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

12 years agohttp NTLM: reinstate "nssg.h" "curl_sspi.h" header inclusions
Yang Tse [Sun, 14 Aug 2011 23:34:34 +0000 (01:34 +0200)]
http NTLM: reinstate "nssg.h" "curl_sspi.h" header inclusions

12 years agotests: disable #572
Yang Tse [Sun, 14 Aug 2011 22:19:23 +0000 (00:19 +0200)]
tests: disable #572

12 years agoTODO-RELEASE: synced
Daniel Stenberg [Sun, 14 Aug 2011 21:29:24 +0000 (23:29 +0200)]
TODO-RELEASE: synced

Added comments to some remaining issues

12 years agotelnet: allow programatic use on Windows
Daniel Stenberg [Sun, 14 Aug 2011 21:26:09 +0000 (23:26 +0200)]
telnet: allow programatic use on Windows

Summary of the issue can be found at:
http://curl.haxx.se/mail/lib-2010-04/0367.html

That patch only updated the unix sockets code - the winsock code was not
updated and no longer works the same was as the unix code. This change
updates the windows code accordingly.

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

12 years agoTODO-RELEASE: fixed issue #291
Daniel Stenberg [Sun, 14 Aug 2011 17:10:54 +0000 (19:10 +0200)]
TODO-RELEASE: fixed issue #291

291 - bug 3383692 "GET PARAMETER request and body in response"

12 years agohttp NTLM: reinstate "memdebug.h" header inclusion
Yang Tse [Sun, 14 Aug 2011 19:16:01 +0000 (21:16 +0200)]
http NTLM: reinstate "memdebug.h" header inclusion

Inclusion of header "memdebug.h" in http_ntlm.c got lost in commit 98fb0ef7.

12 years agoRTSP: GET_PARAMETER requests have a body
Daniel Stenberg [Sun, 14 Aug 2011 17:07:54 +0000 (19:07 +0200)]
RTSP: GET_PARAMETER requests have a body

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

12 years agoCurl_output_ntlm: remove unused variable
Daniel Stenberg [Sun, 14 Aug 2011 16:54:21 +0000 (18:54 +0200)]
Curl_output_ntlm: remove unused variable

12 years agohttp NTLM: add curl_ntlm.c to Symbian's libcurl.mmp
Yang Tse [Sun, 14 Aug 2011 15:26:42 +0000 (17:26 +0200)]
http NTLM: add curl_ntlm.c to Symbian's libcurl.mmp

12 years agohttp NTLM: fix 8 compiler warnings
Yang Tse [Sun, 14 Aug 2011 14:36:47 +0000 (16:36 +0200)]
http NTLM: fix 8 compiler warnings

Strict splitting of http_ntlm.[ch] may trigger 8 compiler warnings when
building with some compilers and strict compiler warnings enabled, depending
on other specific configuration options some could get triggered or not.

Seven are related with 'unused function parameters' and another one with
'var may be used before its value is set'.

12 years agohttp NTLM: split http_ntlm.[ch] between http_ntlm.[ch] and curl_ntlm.[ch]
Yang Tse [Sun, 14 Aug 2011 13:45:19 +0000 (15:45 +0200)]
http NTLM: split http_ntlm.[ch] between http_ntlm.[ch] and curl_ntlm.[ch]

For modularity purposes, huge chunks of NTLM existing code is transformed into
functions to allow future internal code reuse.

Resulting three new libcurl private functions:

 - Curl_ntlm_create_type1_message()
 - Curl_ntlm_create_type3_message()
 - Curl_ntlm_decode_type2_message()

Changing static ntlm_sspi_cleanup() into non-static Curl_ntlm_sspi_cleanup()

This 'refactoring' has been prepared by previous commits to allow that this
specific one does not introduce any change to existing code. All existing
goodness and badness previous to this commit should remain the same once it is
applied, the only difference should be that existing code is moved into
functions.

Given the quite big portions of code being moved around, and the importance of
change traceability, this commit has been done in such a way that it is
possible to perform a three-way diff from initial http_ntlm.[ch] to resulting
http_ntlm.[ch] and curl_ntlm.[ch] to actually verify that no functional change
is introduced here.

Notice that Steve Holme has provided several patches, but these included this
refactoring along with 'extra' fixes. I really wanted this 'clean' refactoring
done first, in order to allow discussion or committing of 'extra' fixes on a
case by case basis, so, I had to bite the bullet ;-)

Comments, line adjustments, compiler warning fixes, whatever, may follow
afterwards.

12 years agohttp_negotiate_sspi.c: fix compiler warning
Yang Tse [Sat, 13 Aug 2011 22:05:05 +0000 (00:05 +0200)]
http_negotiate_sspi.c: fix compiler warning

warning C4706: assignment within conditional expression

12 years agohttp NTLM: change return type of Curl_input_ntlm() to CURLcode
Yang Tse [Sat, 13 Aug 2011 21:58:27 +0000 (23:58 +0200)]
http NTLM: change return type of Curl_input_ntlm() to CURLcode

Remove CURLntlm enum, no longer required.

12 years agoRELEASE-NOTES: synced with a30ede868ab64
Daniel Stenberg [Sat, 13 Aug 2011 21:03:43 +0000 (23:03 +0200)]
RELEASE-NOTES: synced with a30ede868ab64

Three more bugs fixed, three more contributors mentioned

12 years agoVC6 makefiles: added embedded documentation
Daniel Stenberg [Sat, 13 Aug 2011 20:30:56 +0000 (22:30 +0200)]
VC6 makefiles: added embedded documentation

Just a note about the fact that all VC[6/8/9/10] makefiles are generated
from the VC6 one as source.

12 years agocmake: find winsock when building on windows
Daniel Stenberg [Sat, 13 Aug 2011 12:40:01 +0000 (14:40 +0200)]
cmake: find winsock when building on windows

When building on Windows, with CMake and mingw, curl fails to compile
because the CMake build system is not properly looking for the Winsock
libraries

Patch by: Pau Garcia i Quiles
Bug: http://curl.haxx.se/bug/view.cgi?id=3389231

12 years agoCurl_retry_request: check return code!
Daniel Stenberg [Fri, 12 Aug 2011 22:51:16 +0000 (00:51 +0200)]
Curl_retry_request: check return code!

Curl_readrewind() was called without checking its return code, which
could lead to badness.

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

12 years agoignore rtsp
Daniel Stenberg [Fri, 12 Aug 2011 22:02:34 +0000 (00:02 +0200)]
ignore rtsp

12 years agohttp NTLM: update NTLM type-* message structure descriptions - followup
Yang Tse [Fri, 12 Aug 2011 22:20:09 +0000 (00:20 +0200)]
http NTLM: update NTLM type-* message structure descriptions - followup

12 years agodocs: --delegation
Daniel Stenberg [Fri, 12 Aug 2011 21:51:41 +0000 (23:51 +0200)]
docs: --delegation

12 years agoadded --delegation
Daniel Stenberg [Fri, 12 Aug 2011 12:48:32 +0000 (14:48 +0200)]
added --delegation

Using this option with an argument being set to one of
none/policy/always instructs libcurl how to deal with GSS
credentials. Or rather how it tells the server that delegation is fine
or not.

12 years agohttp NTLM: fix inclusion of curl_ntlm.h
Yang Tse [Fri, 12 Aug 2011 20:01:27 +0000 (22:01 +0200)]
http NTLM: fix inclusion of curl_ntlm.h

12 years agohttp NTLM: update NTLM message structure notes
Yang Tse [Fri, 12 Aug 2011 19:13:01 +0000 (21:13 +0200)]
http NTLM: update NTLM message structure notes

12 years agohttp NTLM: move portions of http_ntlm.h into new curl_ntlm.h
Steve Holme [Fri, 12 Aug 2011 18:02:01 +0000 (20:02 +0200)]
http NTLM: move portions of http_ntlm.h into new curl_ntlm.h

12 years agohttp NTLM: more adjustments in preparation of code refactoring
Yang Tse [Fri, 12 Aug 2011 17:51:50 +0000 (19:51 +0200)]
http NTLM: more adjustments in preparation of code refactoring

Use preprocessor symbol NTLM_BUFSIZE to define private NTLM buffer fixed size.

Use a SessionHandle 'data' pointer variable to ease refactoring.

Update NTLM type-* message structure descriptions.

Fix some more spacing and typos (Steve Holme).

12 years agocurl_easy_cleanup: clarify the callback situation
Daniel Stenberg [Thu, 11 Aug 2011 12:54:44 +0000 (14:54 +0200)]
curl_easy_cleanup: clarify the callback situation

12 years agohttp NTLM: fix compiler warning
Yang Tse [Thu, 11 Aug 2011 07:06:06 +0000 (09:06 +0200)]
http NTLM: fix compiler warning

12 years agohttp NTLM: Tidied up more inconsistent spacing.
Steve Holme [Thu, 11 Aug 2011 00:18:16 +0000 (02:18 +0200)]
http NTLM: Tidied up more inconsistent spacing.

Moved NTLMSSP_SIGNATURE, HOSTNAME_MAX, SHORTPAIR and LONGQUARTET definitions in ready for move to curl_ntlm.c.

Used separate variables for Windows SSPI and native code to ease moving of code to curl_ntlm.c.

Fixed typographical erros where SPPI should be SSPI.

Fixed compilation warnings on 64-bit builds when calling Windows SSPI functions.

12 years agortsp.c: converted to C
Daniel Stenberg [Wed, 10 Aug 2011 08:57:50 +0000 (10:57 +0200)]
rtsp.c: converted to C

Trimmed the newlines to be LF-only. Converted the source to plain C, to
use curl style indents, to compile warning-free with picky options and
fixed the minor fprintf() bug on line 245. Added to makefile.

12 years agortsp.c: new example
Jim Hollinger [Wed, 10 Aug 2011 08:54:53 +0000 (10:54 +0200)]
rtsp.c: new example

Code from
http://code.google.com/p/rtsprequest/source/browse/trunk/rtsprequest.cpp

12 years agoTODO: remove curl_formpost in a future version
Daniel Stenberg [Wed, 10 Aug 2011 06:55:13 +0000 (08:55 +0200)]
TODO: remove curl_formpost in a future version

15.8 remove 'curl_httppost' from public

12 years agohttp NTLM: Further tiding up to libcurl standards
Yang Tse [Tue, 9 Aug 2011 20:56:17 +0000 (22:56 +0200)]
http NTLM: Further tiding up to libcurl standards

12 years agohttp NTLM: Tidied up http_ntlm prior to splitting the ntlm specific code
Steve Holme [Tue, 9 Aug 2011 20:53:48 +0000 (22:53 +0200)]
http NTLM: Tidied up http_ntlm prior to splitting the ntlm specific code

12 years agoTODO-RELEASE: issue #289 is fixed
Daniel Stenberg [Tue, 9 Aug 2011 12:23:35 +0000 (14:23 +0200)]
TODO-RELEASE: issue #289 is fixed

289 - bug 3349227 "secure attribute in cookie does not work with equals sign"

12 years agocookie parser: handle 'secure='
Daniel Stenberg [Tue, 9 Aug 2011 12:02:05 +0000 (14:02 +0200)]
cookie parser: handle 'secure='

There are two keywords in cookie headers that don't follow the regular
name=value style: secure and httponly. Still we must support that they
are written like 'secure=' and then treat them as if they were written
'secure'. Test case 31 was much extended by Rob Ward to test this.

Bug: http://curl.haxx.se/bug/view.cgi?id=3349227
Reported by: "gnombat"

12 years agocurl.h: mark deprecated CURLOPT_ options on same line
Daniel Stenberg [Tue, 9 Aug 2011 08:46:02 +0000 (10:46 +0200)]
curl.h: mark deprecated CURLOPT_ options on same line

This is to aid easier machine parsing and to make sure nobody who reads
these header lines can miss the info.

12 years agoRELEASE-NOTES: recounted and updated some numbers
Daniel Stenberg [Tue, 9 Aug 2011 07:32:53 +0000 (09:32 +0200)]
RELEASE-NOTES: recounted and updated some numbers

12 years agoproxy protocol docs: rephrased and updated
Daniel Stenberg [Tue, 9 Aug 2011 07:12:51 +0000 (09:12 +0200)]
proxy protocol docs: rephrased and updated

12 years agoRELEASE-NOTES: synced with 45d883d88df7
Daniel Stenberg [Mon, 8 Aug 2011 17:40:45 +0000 (19:40 +0200)]
RELEASE-NOTES: synced with 45d883d88df7

Mention 5 bugixes and 1 change more

12 years agoCURLFORM_BUFFER: insert filename as documented
Daniel Stenberg [Mon, 8 Aug 2011 08:21:03 +0000 (10:21 +0200)]
CURLFORM_BUFFER: insert filename as documented

A regression where CURLFORM_BUFFER stopped to properly insert the file
name part in the formpart. Bug introduced in commit f851f768578dc096.

Added CURLFORM_BUFFER use to test 554 to verify this.

Bug: http://curl.haxx.se/mail/lib-2011-07/0176.html
Reported by: Henry Ludemann

12 years agocurl-compilers.m4: serial number bump
Yang Tse [Mon, 8 Aug 2011 16:25:01 +0000 (18:25 +0200)]
curl-compilers.m4: serial number bump

12 years agocurl-compilers.m4: CURL_CONVERT_INCLUDE_TO_ISYSTEM adjustments:
Yang Tse [Mon, 8 Aug 2011 15:50:16 +0000 (17:50 +0200)]
curl-compilers.m4: CURL_CONVERT_INCLUDE_TO_ISYSTEM adjustments:

Add CURL_CHECK_COMPILER as a requirement.

Ensure macro does nothing unless GNU_C or CLANG compiler is used.

This should allow usage of this macro in unforeseen placements.

12 years agoSOCKS: fix the connect timeout
Daniel Stenberg [Mon, 8 Aug 2011 09:10:17 +0000 (11:10 +0200)]
SOCKS: fix the connect timeout

The connect timeout logic when using SOCKS was done wrong

Bug: http://curl.haxx.se/mail/lib-2011-07/0177.html
Reported by: "Spoon Man"

12 years agoftp_doing: bail out on error properly
Daniel Stenberg [Mon, 8 Aug 2011 08:41:35 +0000 (10:41 +0200)]
ftp_doing: bail out on error properly

When a failure has been detected we must abort immdiately.

Bug: http://curl.haxx.se/mail/lib-2011-07/0177.html
Reported by: "Spoon Man"

12 years agos/7.21.8/7.22.0
Daniel Stenberg [Mon, 8 Aug 2011 08:13:09 +0000 (10:13 +0200)]
s/7.21.8/7.22.0

12 years agoversion bump: next release is 7.22.0
Daniel Stenberg [Mon, 8 Aug 2011 07:27:53 +0000 (09:27 +0200)]
version bump: next release is 7.22.0

12 years agoVERSIONS: clarify our versioning concept
Daniel Stenberg [Mon, 8 Aug 2011 07:25:59 +0000 (09:25 +0200)]
VERSIONS: clarify our versioning concept

Drop the pre-release part from this text as we don't use that in
practise since many years.

Update the phrasing to reflect our more strict interpretation:
http://curl.haxx.se/mail/lib-2011-08/0064.html

12 years agoOpenSSL: Use SSL_MODE_RELEASE_BUFFERS if available, reduces memory use
Cristian Rodríguez [Wed, 3 Aug 2011 20:20:45 +0000 (22:20 +0200)]
OpenSSL: Use SSL_MODE_RELEASE_BUFFERS if available, reduces memory use

See also :
http://www.openssl.org/docs/ssl/SSL_CTX_set_mode.html
http://www.imperialviolet.org/2010/06/25/overclocking-ssl.html

Signed-off-by: Cristian Rodríguez <crrodriguez@opensuse.org>
12 years agoTODO-RELEASE: close issue #292
Daniel Stenberg [Sun, 7 Aug 2011 20:54:37 +0000 (22:54 +0200)]
TODO-RELEASE: close issue #292

Fixed:
292 - bug 3385258 "Addendum to 3370895"

Basically brushing up commit 27b8814017a19

12 years agoCurl_pgrsStartNow: clear all bits except HIDE
Daniel Stenberg [Sun, 7 Aug 2011 20:26:57 +0000 (22:26 +0200)]
Curl_pgrsStartNow: clear all bits except HIDE

Bug: http://curl.haxx.se/bug/view.cgi?id=3385258
Reported by: Ben Winslow

12 years agoreadwrite_data: improved C-E decoding error message
Daniel Stenberg [Sun, 7 Aug 2011 17:55:23 +0000 (19:55 +0200)]
readwrite_data: improved C-E decoding error message

12 years agoBSD-style lwIP TCP/IP stack support - followup
Yang Tse [Sun, 7 Aug 2011 06:45:57 +0000 (08:45 +0200)]
BSD-style lwIP TCP/IP stack support - followup

lwIP library initialization.

12 years agoNTLM single-sign on adjustments (IX)
Yang Tse [Sun, 7 Aug 2011 01:05:04 +0000 (03:05 +0200)]
NTLM single-sign on adjustments (IX)

Use swrite/sread instead of write/read to avoid SIGPIPE

12 years agoconfig-win32.h: comments adjustments
Yang Tse [Sat, 6 Aug 2011 17:18:43 +0000 (19:18 +0200)]
config-win32.h: comments adjustments

12 years agoTODO-RELEASE: committed issue #304
Daniel Stenberg [Sat, 6 Aug 2011 13:24:48 +0000 (15:24 +0200)]
TODO-RELEASE: committed issue #304

304 - "Async-DNS-resolve-thread gets started even when a dotted IP is
      provided" by Christian H<E4>gele
      http://curl.haxx.se/mail/lib-2011-08/0009.html

12 years agoasyn-thread: check for dotted addresses before thread starts
Christian Hägele [Sat, 6 Aug 2011 13:21:42 +0000 (15:21 +0200)]
asyn-thread: check for dotted addresses before thread starts

12 years agoTODO-RELEASE: Add #307 two issues by "Spoon Man"
Daniel Stenberg [Sat, 6 Aug 2011 10:17:49 +0000 (12:17 +0200)]
TODO-RELEASE: Add #307 two issues by "Spoon Man"

12 years agochecksrc.pl: add quotes to var
Yang Tse [Fri, 5 Aug 2011 19:24:59 +0000 (21:24 +0200)]
checksrc.pl: add quotes to var

12 years agokeep a single copy of config-win32.h in version control repository - followup
Yang Tse [Fri, 5 Aug 2011 19:01:39 +0000 (21:01 +0200)]
keep a single copy of config-win32.h in version control repository - followup

Allow configure builds to generate src/config-win32.h

Skip checksrc on src/config-win32.h contents already checked at lib/config-win32.h

Allow multiple -W in checksrc.pl

12 years agoBSD-style lwIP TCP/IP stack support - docs/INSTALL blurb
Yang Tse [Fri, 5 Aug 2011 14:32:20 +0000 (16:32 +0200)]
BSD-style lwIP TCP/IP stack support - docs/INSTALL blurb

12 years agoBSD-style lwIP TCP/IP stack support - followup
Yang Tse [Fri, 5 Aug 2011 13:42:05 +0000 (15:42 +0200)]
BSD-style lwIP TCP/IP stack support - followup

12 years agogit ignore src/config-win32.h
Yang Tse [Fri, 5 Aug 2011 11:24:02 +0000 (13:24 +0200)]
git ignore src/config-win32.h

12 years agokeep a single copy of config-win32.h in version control repository.
Yang Tse [Fri, 5 Aug 2011 11:20:22 +0000 (13:20 +0200)]
keep a single copy of config-win32.h in version control repository.

maketgz and buildconf.bat updated to reflect this.

12 years agoRELEASE-NOTES: synced with afe88d85f40e1
Daniel Stenberg [Thu, 4 Aug 2011 23:12:24 +0000 (01:12 +0200)]
RELEASE-NOTES: synced with afe88d85f40e1

12 years agotest710: verify that --proxy socks5://hostname works
Daniel Stenberg [Thu, 4 Aug 2011 22:46:59 +0000 (00:46 +0200)]
test710: verify that --proxy socks5://hostname works

12 years agocreate_conn: mark non-HTTP proxies accordingly
Daniel Stenberg [Thu, 4 Aug 2011 22:44:40 +0000 (00:44 +0200)]
create_conn: mark non-HTTP proxies accordingly

A proxy could be marked 'httpproxy' wrongly before if set with an
environment variable or with the CURLOPT_PROXY option with a socks*://
prefix or similar.

Added test 710 to verify

Bug: http://curl.haxx.se/mail/lib-2011-07/0194.html

12 years agotest709: HTTP GET via SOCKS5 set in environment
Daniel Stenberg [Thu, 4 Aug 2011 22:28:03 +0000 (00:28 +0200)]
test709: HTTP GET via SOCKS5 set in environment

12 years agoTODO-RELEASE: issue #293 is done
Daniel Stenberg [Thu, 4 Aug 2011 21:27:05 +0000 (23:27 +0200)]
TODO-RELEASE: issue #293 is done

Fixed:
293 - from http://bugzilla.redhat.com/723075 "curl segfaults"

12 years agosegfault fixed
Daniel Stenberg [Thu, 4 Aug 2011 21:22:48 +0000 (23:22 +0200)]
segfault fixed

When using both -J and a single -O with multiple URLs, a missing init
could cause badness.

Bug: http://curl.haxx.se/mail/lib-2011-07/0126.html and
     http://bugzilla.redhat.com/723075
Reported by: Paul Howarth and Garrett Holmstrom

12 years agotest1313: test content-disposition with uneven quotes
Daniel Stenberg [Thu, 4 Aug 2011 21:20:14 +0000 (23:20 +0200)]
test1313: test content-disposition with uneven quotes

12 years agoparse_filename: deal with escaped quotes
Daniel Stenberg [Thu, 4 Aug 2011 21:14:12 +0000 (23:14 +0200)]
parse_filename: deal with escaped quotes

12 years agoBSD-style lwIP TCP/IP stack support:
Yang Tse [Thu, 4 Aug 2011 19:27:29 +0000 (21:27 +0200)]
BSD-style lwIP TCP/IP stack support:

Allow compilation of libcurl and curl using BSD-style lwIP on Win32.

In order to compile libcurl and curl with this support it is necessary
to edit files lib/config-win32.h and src/config-win32.h and uncomment
a line to make definition of preprocessor symbol USE_LWIPSOCK visible.

Afterwards you can compile as usual.

In order to use compiled library with BSD-style lwIP TCP/IP stack in
your program it is mandatory that you include lwIP header file <lwip/opt.h>
before including <curl/curl.h> or <curl/multi.h>

Compilation has been verified with lwIP 1.4.0 and contrib-1.4.0 from:

http://download.savannah.gnu.org/releases/lwip/lwip-1.4.0.zip
http://download.savannah.gnu.org/releases/lwip/contrib-1.4.0.zip

Have fun!

12 years agocurl.h: untangle a preprocessor block, removing duplicate sys/types.h inclusion
Yang Tse [Thu, 4 Aug 2011 18:47:31 +0000 (20:47 +0200)]
curl.h: untangle a preprocessor block, removing duplicate sys/types.h inclusion

12 years agoTODO-RELEASE: issue #290 fixed
Daniel Stenberg [Thu, 4 Aug 2011 15:51:08 +0000 (17:51 +0200)]
TODO-RELEASE: issue #290 fixed

Closed this entry:
290 - bug 3375603 "curl has problem with remote names containing ';'"

12 years ago-J: support ';' in quoted file names
Daniel Stenberg [Thu, 4 Aug 2011 15:48:45 +0000 (17:48 +0200)]
-J: support ';' in quoted file names

Content-disposition headers can provide file names with semicolons which
previously would be cut off at that point.

Added test case 1311 and 1312 to verify -J.

Bug: http://curl.haxx.se/bug/view.cgi?id=3375603
Reported by: Peter Hjalmarsson

12 years agogetpart.pm: when no part match, return blank when section ends
Daniel Stenberg [Thu, 4 Aug 2011 15:36:31 +0000 (17:36 +0200)]
getpart.pm: when no part match, return blank when section ends

12 years agoruntests.pl: support option=no-include
Daniel Stenberg [Thu, 4 Aug 2011 15:36:00 +0000 (17:36 +0200)]
runtests.pl: support option=no-include

12 years agoTODO-RELESE: #306 - SSL Sessions shared
Daniel Stenberg [Thu, 4 Aug 2011 09:11:03 +0000 (11:11 +0200)]
TODO-RELESE: #306 - SSL Sessions shared

12 years agoTODO-RELEASE: updated with current issues
Daniel Stenberg [Wed, 3 Aug 2011 22:22:04 +0000 (00:22 +0200)]
TODO-RELEASE: updated with current issues

12 years agocurl_gssapi: add a missing include of sendf.h
Kamil Dudka [Wed, 3 Aug 2011 16:00:07 +0000 (18:00 +0200)]
curl_gssapi: add a missing include of sendf.h

... to avoid build failure when GSS_C_DELEG_POLICY_FLAG is not defined.

Reported by: Paul Howarth

12 years agocurl_gssapi: refine the handling of CURLOPT_GSSAPI_DELEGATION
Kamil Dudka [Mon, 25 Jul 2011 09:49:26 +0000 (11:49 +0200)]
curl_gssapi: refine the handling of CURLOPT_GSSAPI_DELEGATION

Suggested by Richard Silverman.

12 years agoAdd new CURLOPT_GSSAPI_DELEGATION option.
Adam Tkac [Tue, 19 Jul 2011 17:10:43 +0000 (19:10 +0200)]
Add new CURLOPT_GSSAPI_DELEGATION option.

Curl_gss_init_sec_context got new parameter - SessionHandle.

Signed-off-by: Adam Tkac <atkac@redhat.com>
12 years agoconfigure: add check for <sys/wait.h>
Yang Tse [Sun, 31 Jul 2011 20:36:54 +0000 (22:36 +0200)]
configure: add check for <sys/wait.h>

12 years agoNTLM single-sign on adjustments (VIII)
Yang Tse [Sun, 31 Jul 2011 18:44:41 +0000 (20:44 +0200)]
NTLM single-sign on adjustments (VIII)

Use preprocessor symbols WINBIND_NTLM_AUTH_ENABLED and WINBIND_NTLM_AUTH_FILE
for Samba's winbind daemon ntlm_auth helper code implementation and filename.

Retain preprocessor symbol USE_NTLM_SSO for NTLM single-sign-on feature
availability implementation independent.

For test harness, prefix NTLM_AUTH environment vars with CURL_

Refactor and rename configure option --with-ntlm-auth to --enable-wb-ntlm-auth[=FILE]

13 years agoRenumbered test2005 to test1310
Dan Fandrich [Fri, 29 Jul 2011 16:32:32 +0000 (09:32 -0700)]
Renumbered test2005 to test1310

The 20xx range is for multiple sequential tests.

13 years agocurl-functions.m4 serial # bump
Yang Tse [Fri, 29 Jul 2011 18:29:48 +0000 (20:29 +0200)]
curl-functions.m4 serial # bump

13 years agoRevert "configure: additional flag checks for fcntl() socket() and socketpair()"
Yang Tse [Fri, 29 Jul 2011 18:24:37 +0000 (20:24 +0200)]
Revert "configure: additional flag checks for fcntl() socket() and socketpair()"

This reverts commit bc6e6a465ad0b9f9757c4385698fe5f255dd125b.

13 years agoconfigure: additional flag checks for fcntl() socket() and socketpair()
Yang Tse [Fri, 29 Jul 2011 16:28:04 +0000 (18:28 +0200)]
configure: additional flag checks for fcntl() socket() and socketpair()

13 years agoNTLM single-sign on adjustments (VII)
Yang Tse [Fri, 29 Jul 2011 14:27:15 +0000 (16:27 +0200)]
NTLM single-sign on adjustments (VII)

Initialize variables when connectdata object is created.

13 years agosocketpair() usage tracking to allow fd leak detection
Yang Tse [Fri, 29 Jul 2011 11:25:52 +0000 (13:25 +0200)]
socketpair() usage tracking to allow fd leak detection

13 years agofix compiler warning
Yang Tse [Fri, 29 Jul 2011 11:21:30 +0000 (13:21 +0200)]
fix compiler warning

13 years agoAvoid a "shadows global declaration" warning on old MIT Kerberos
Dan Fandrich [Thu, 28 Jul 2011 21:03:07 +0000 (14:03 -0700)]
Avoid a "shadows global declaration" warning on old MIT Kerberos

Defining NCOMPAT eliminates the backwards-compatibility macros
that are the source of the problem and which we don't need,
anyway.