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
Daniel Stenberg [Thu, 4 Aug 2011 21:20:14 +0000 (23:20 +0200)]
test1313: test content-disposition with uneven quotes
Daniel Stenberg [Thu, 4 Aug 2011 21:14:12 +0000 (23:14 +0200)]
parse_filename: deal with escaped quotes
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!
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
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 ';'"
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
Daniel Stenberg [Thu, 4 Aug 2011 15:36:31 +0000 (17:36 +0200)]
getpart.pm: when no part match, return blank when section ends
Daniel Stenberg [Thu, 4 Aug 2011 15:36:00 +0000 (17:36 +0200)]
runtests.pl: support option=no-include
Daniel Stenberg [Thu, 4 Aug 2011 09:11:03 +0000 (11:11 +0200)]
TODO-RELESE: #306 - SSL Sessions shared
Daniel Stenberg [Wed, 3 Aug 2011 22:22:04 +0000 (00:22 +0200)]
TODO-RELEASE: updated with current issues
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
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.
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>
Yang Tse [Sun, 31 Jul 2011 20:36:54 +0000 (22:36 +0200)]
configure: add check for <sys/wait.h>
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]
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.
Yang Tse [Fri, 29 Jul 2011 18:29:48 +0000 (20:29 +0200)]
curl-functions.m4 serial # bump
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.
Yang Tse [Fri, 29 Jul 2011 16:28:04 +0000 (18:28 +0200)]
configure: additional flag checks for fcntl() socket() and socketpair()
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.
Yang Tse [Fri, 29 Jul 2011 11:25:52 +0000 (13:25 +0200)]
socketpair() usage tracking to allow fd leak detection
Yang Tse [Fri, 29 Jul 2011 11:21:30 +0000 (13:21 +0200)]
fix compiler warning
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.
Yang Tse [Thu, 28 Jul 2011 20:47:42 +0000 (22:47 +0200)]
NTLM single-sign on adjustments (VI)
Fix compiler warning
Dan Fandrich [Thu, 28 Jul 2011 19:27:55 +0000 (12:27 -0700)]
Give the NTLM SSO helper a moment to cleanly shut down if needed
Dan Fandrich [Thu, 28 Jul 2011 19:41:44 +0000 (12:41 -0700)]
Removed an extraneous \n that violated the SSO daemon protocol
This caused fake_ntlm to abort due to an invalid command
causing sporadic test 2005 failures.
Yang Tse [Thu, 28 Jul 2011 19:12:41 +0000 (21:12 +0200)]
NTLM single-sign on adjustments (V)
Enhance test harness fake_ntlm logging upon invalid input.
Dan Fandrich [Thu, 28 Jul 2011 01:07:02 +0000 (18:07 -0700)]
Fixed a couple of memory leaks in NTLM SSO support
Yang Tse [Wed, 27 Jul 2011 18:10:02 +0000 (20:10 +0200)]
NTLM single-sign on adjustments (IV)
Fix compiler warning
Yang Tse [Wed, 27 Jul 2011 17:12:06 +0000 (19:12 +0200)]
NTLM single-sign on adjustments (III)
Provide some error tracing and fix execl() calling.
Yang Tse [Wed, 27 Jul 2011 17:04:55 +0000 (19:04 +0200)]
NTLM single-sign on adjustments (II)
Ensure test harness fake_ntlm main function can properly handle arguments.
Yang Tse [Wed, 27 Jul 2011 16:58:21 +0000 (18:58 +0200)]
NTLM single-sign on adjustments (I)
Use fake_ntlm absolute filename in NTLM_AUTH environment variable for test
2005 definition.
Dan Fandrich [Tue, 26 Jul 2011 19:47:04 +0000 (12:47 -0700)]
Fixed test 2005 to work in out-of-tree builds
Also, set the test number in the test data file so fake_ntlm can
be reused in future tests.
Yang Tse [Tue, 26 Jul 2011 19:36:35 +0000 (21:36 +0200)]
fix compiler warning
Yang Tse [Tue, 26 Jul 2011 17:42:16 +0000 (19:42 +0200)]
fix compiler warning
Yang Tse [Tue, 26 Jul 2011 15:23:27 +0000 (17:23 +0200)]
stdio.h, stdlib.h, string.h, stdarg.h and ctype.h inclusion done in setup_once.h
Yang Tse [Mon, 25 Jul 2011 03:30:14 +0000 (05:30 +0200)]
WIN32 io.h and fcntl.h inclusion done in setup_once.h
Yang Tse [Mon, 25 Jul 2011 02:08:08 +0000 (04:08 +0200)]
time.h and sys/time.h inclusion conditionally done in setup_once.h
Yang Tse [Mon, 25 Jul 2011 01:10:24 +0000 (03:10 +0200)]
errno.h inclusion conditionally done in setup_once.h - followup
Yang Tse [Sun, 24 Jul 2011 02:39:43 +0000 (04:39 +0200)]
errno.h inclusion conditionally done in setup_once.h
Ben Winslow [Fri, 22 Jul 2011 20:50:58 +0000 (22:50 +0200)]
progress: reset flags at transfer start
When an easy handle is used to download an URI which has no
Content-Length header (or equivalent) after downloading an URI which
does, the value from the previous transfer is reused and returned by
CURLINFO_CONTENT_LENGTH_DOWNLOAD. This is because the progress flags
(used to determine whether such a header was received) are not reset
between transfers.
Bug: http://curl.haxx.se/bug/view.cgi?id=3370895
Daniel Stenberg [Sun, 17 Jul 2011 21:47:59 +0000 (23:47 +0200)]
RELEASE-NOTES: HTTP error handling on request body send
Daniel Stenberg [Mon, 11 Jul 2011 21:24:45 +0000 (23:24 +0200)]
http error response: stop sending when error is received
When libcurl has said to the server that there's a POST or PUT coming
(with a content-length and all) it has to either deliver that amount of
data or it needs to close the connection before trying a second request.
Adds test case 1129, 1130 and 1131
The bug report is about when used with 100-continue, but the change is
more generic.
Bug: http://curl.haxx.se/mail/lib-2011-06/0191.html
Reported by: Steven Parkes
Michael Mueller [Tue, 19 Jul 2011 21:54:21 +0000 (23:54 +0200)]
sso_ntlm_initiate: unassigned variable
Bug: http://curl.haxx.se/mail/lib-2011-07/0109.html
Daniel Stenberg [Tue, 19 Jul 2011 21:50:34 +0000 (23:50 +0200)]
test2005: require a debug build
Daniel Stenberg [Tue, 19 Jul 2011 21:49:40 +0000 (23:49 +0200)]
runtests: add 'debug' as a feature a test can require
Daniel Stenberg [Tue, 19 Jul 2011 18:12:58 +0000 (20:12 +0200)]
configure: avoid "test -e"
"test -e" is POSIX but clearly was not supported by the SunOS sh
version, -f is supported and should be a decent equivalent
Bug: http://curl.haxx.se/bug/view.cgi?id=3371574
Daniel Stenberg [Mon, 18 Jul 2011 22:54:41 +0000 (00:54 +0200)]
symbols-in-versions: add NTLM_SSO symbols
Daniel Stenberg [Mon, 18 Jul 2011 21:49:31 +0000 (23:49 +0200)]
gitignore: ignore fake_ntlm
Mandy Wu [Mon, 18 Jul 2011 21:39:52 +0000 (23:39 +0200)]
test2005: verify ntlm single-signon
Mandy Wu [Mon, 18 Jul 2011 21:36:36 +0000 (23:36 +0200)]
NTLM single-sign on supported
With the use of the 'ntlm_auth' tool from the Samba project
Daniel Stenberg [Sat, 16 Jul 2011 22:39:23 +0000 (00:39 +0200)]
sws: don't enable pipelining for requests with content-length
Log texts also modified and some white space edits
Patrick Monnerat [Thu, 14 Jul 2011 15:07:35 +0000 (17:07 +0200)]
Fix OS400 scripts to make it compilable again.
Upgrade ILE/RPG binding to 7.21.7.
Update OS400 documentation accordingly.
Daniel Stenberg [Thu, 14 Jul 2011 09:03:03 +0000 (11:03 +0200)]
runtests: ignore the 'all_proxy' environment variable as well
We should probably also make sure that [protocol]_proxy for all possible
protocols libcurl supports are unset.
Julien Chaffraix [Thu, 14 Jul 2011 03:23:35 +0000 (20:23 -0700)]
curl_gssapi: Guard files with HAVE_GSSAPI.
Bug: http://curl.haxx.se/mail/lib-2011-07/0074.html
Reported and fix suggested by: Ben Greear
Daniel Stenberg [Wed, 13 Jul 2011 20:54:54 +0000 (22:54 +0200)]
gssapi: rename our files to avoid conflicts
gssapi.h is used as a header name by Heimdal-style GSSAPI so it would
conflict with a private header using that name, and while renaming the
header I figured we should name the .c file accordingly as well.
Bug: http://curl.haxx.se/mail/lib-2011-07/0071.html
Reported by: Ben Greear
Daniel Stenberg [Tue, 12 Jul 2011 21:24:52 +0000 (23:24 +0200)]
silence picky compilers: mark unused parameters
Modern gcc versions (4.6.X) get more picky by default and have started
to warn for unused parameters, but luckily gcc also allows us to mark
them as unused so that we can avoid the warnings.
Julien Chaffraix [Fri, 10 Jun 2011 15:26:34 +0000 (08:26 -0700)]
gssapi.c: Simplified the function.
Removed the parameters that were common to all our invocation.
Julien Chaffraix [Fri, 10 Jun 2011 15:16:06 +0000 (08:16 -0700)]
Added Curl_gss_init_sec_context.
This function wraps our calls to gss_init_sec_context so that we
have a unified way to talk to GSSAPI.
Julien Chaffraix [Mon, 27 Jun 2011 14:53:38 +0000 (07:53 -0700)]
http_negociate: Be consistent in gss_init_sec_context attributes.
This change makes this callsite match the rest of the code.
Daniel Stenberg [Mon, 4 Jul 2011 20:10:32 +0000 (22:10 +0200)]
code style: space between close paren and open brace
Daniel Stenberg [Mon, 4 Jul 2011 20:08:14 +0000 (22:08 +0200)]
checksrc: detect open brace without space
We use "if(condition) {" with a space between the close paren and the
open brace.
Daniel Stenberg [Mon, 4 Jul 2011 20:04:04 +0000 (22:04 +0200)]
polarssl.h: remove CVS leftover
Daniel Stenberg [Sun, 3 Jul 2011 20:13:18 +0000 (22:13 +0200)]
help output: more gnu like output
First, the -J/--remote-header-name was wrongly sorted in the --help
output as pointed out in bug report #3349271.
Then, I changed the format of the texts to follow the man page better in
that it now uses "-A, --long" intead of "-A/--long". I also made all
additional arguments get written as in "-A, --long FILENAME" instead of
the previous "<filename>" style.
Reported by: Herve Amblard
Bug: http://curl.haxx.se/bug/view.cgi?id=3349271
Daniel Stenberg [Sun, 3 Jul 2011 17:15:06 +0000 (19:15 +0200)]
sws: allow multiple commands in <servercmd>
Daniel Stenberg [Fri, 1 Jul 2011 20:57:28 +0000 (22:57 +0200)]
Curl_http_readwrite_headers: minor indent fix
Daniel Stenberg [Thu, 30 Jun 2011 07:58:45 +0000 (09:58 +0200)]
gitignore: config.cache
Daniel Stenberg [Thu, 30 Jun 2011 07:57:23 +0000 (09:57 +0200)]
docs: FTP quotes support '*' prefix to ignore errors
By default libcurl stops processing quote commands on failures.
Daniel Stenberg [Wed, 29 Jun 2011 18:42:02 +0000 (20:42 +0200)]
THANKS: new contributors from 7.21.7
Daniel Stenberg [Wed, 29 Jun 2011 10:26:23 +0000 (12:26 +0200)]
get_gss_name: proxy auth without proxy set equals error
Previously it would access a NULL pointer and die.
Bug: http://curl.haxx.se/mail/lib-2011-06/0170.html
Reported by: Christian Hagele
Daniel Stenberg [Tue, 28 Jun 2011 17:08:51 +0000 (19:08 +0200)]
examples: cleanup curl includes
Only <curl/curl.h> is needed typically and curl/types.h has been removed
Daniel Stenberg [Sun, 26 Jun 2011 21:12:08 +0000 (23:12 +0200)]
libtests: stop checking for CURLM_CALL_MULTI_PERFORM
CURLM_CALL_MULTI_PERFORM stopped being a valid return code from
curl_multi_perform back in 7.20.0. All the libcurl tests are ajusted to
this and no longer check for this return code. Makes them simpler.
Dan Fandrich [Fri, 24 Jun 2011 19:32:38 +0000 (12:32 -0700)]
Fixed test 1300 to pass the memory torture test
Dan Fandrich [Fri, 24 Jun 2011 05:38:33 +0000 (22:38 -0700)]
Display notes from setup file in testcurl.pl
Autobuild submitters can use this to add some text to their
setup files to describe issues they've found with the build
or tests. This could include laying blame on test failures on
network issues or dependent libraries, explaining away compiler
warnings or providing any additional information that could be
useful to people reviewing and investigating problems with the
publicly available autobuild logs. Note that persistent test
failures that are not issues with curl itself should normally be
fixed by excluding them from the test run instead.
This is an entirely optional field that is not entered by the
user the first time a new build is created.
Dan Fandrich [Fri, 24 Jun 2011 04:20:29 +0000 (21:20 -0700)]
Added a leap second test to test517
Daniel Stenberg [Thu, 23 Jun 2011 21:10:00 +0000 (23:10 +0200)]
runtests.pl: warn if a test is explicitly disabled
Just to make sure a user is aware of it.
Daniel Stenberg [Thu, 23 Jun 2011 11:02:47 +0000 (13:02 +0200)]
bump release: start working towards 7.21.8
Daniel Stenberg [Tue, 21 Jun 2011 21:18:05 +0000 (23:18 +0200)]
parsedate: detect more invalid dates better
Daniel Stenberg [Thu, 23 Jun 2011 07:31:12 +0000 (09:31 +0200)]
curl_formfree: clarify which pointer to free
Daniel Stenberg [Wed, 22 Jun 2011 21:12:39 +0000 (23:12 +0200)]
RELEASE-NOTES: mention security issue
20110623
libcurl inappropriate GSSAPI delegation. Full details at
http://curl.haxx.se/docs/adv_20110623.html
Daniel Stenberg [Wed, 22 Jun 2011 11:07:24 +0000 (13:07 +0200)]
RELEASE-NOTES: synced with
9016958aa8989
Daniel Stenberg [Tue, 7 Jun 2011 22:10:26 +0000 (00:10 +0200)]
Curl_input_negotiate: do not delegate GSSAPI credentials
This is a security flaw. See curl advisory
20110623 for details.
Reported by: Richard Silverman
Josue Andrade Gomes [Tue, 21 Jun 2011 18:05:06 +0000 (20:05 +0200)]
windows build: use correct MS CRT
Daniel Stenberg [Tue, 21 Jun 2011 15:54:25 +0000 (08:54 -0700)]
Merge pull request #23 from salty-horse/pop3_list_space
[pop3] remove extra space in LIST command
Ori Avtalion [Mon, 20 Jun 2011 22:33:32 +0000 (01:33 +0300)]
[pop3] remove extra space in LIST command
Some servers, e.g. mail.bezeqint.net:110, consider it a syntax error
Yang Tse [Tue, 21 Jun 2011 14:28:15 +0000 (16:28 +0200)]
http: fix compiler warning
compiler warning: conditional expression is constant
Yang Tse [Tue, 21 Jun 2011 14:06:56 +0000 (16:06 +0200)]
asyn-thread: fix compiler warning
compiler warning: variable is initialized but not referenced
Yang Tse [Tue, 21 Jun 2011 13:26:24 +0000 (15:26 +0200)]
cmake: remove spurious definition
Daniel Stenberg [Tue, 21 Jun 2011 06:44:42 +0000 (08:44 +0200)]
FAQ: more blurb on persistent connections
Yang Tse [Mon, 20 Jun 2011 22:02:49 +0000 (00:02 +0200)]
xc-translit.m4 fix quoting
Daniel Stenberg [Mon, 20 Jun 2011 20:20:22 +0000 (22:20 +0200)]
INSTALL: mention the GIT-INFO file
Dan Fandrich [Mon, 20 Jun 2011 19:01:38 +0000 (12:01 -0700)]
Added LOCAL_MODULE_TAGS to support Android gingerbread
Amr Shahin [Sun, 19 Jun 2011 00:27:22 +0000 (03:27 +0300)]
unitteset: Curl_llist_move
adding unit test for Curl_llist_move, documenting unit-tested functions
in llist.c, changing unit-test to unittest, replacing assert calls with
abort_unless calls
Daniel Stenberg [Fri, 17 Jun 2011 20:21:36 +0000 (22:21 +0200)]
CURLFORM_STREAM: acknowledge CURLFORM_FILENAME
The CURLFORM_STREAM is documented to only insert a file name (and thus
look like a file upload) in the part if CURLFORM_FILENAME is set, but in
reality it always inserted a filename="" and if CURLFORM_FILENAME wasn't
set, it would insert insert rubbish (or possibly crash).
This is now fixed to work as documented, and test 554 has been extended
to verify this.
Reported by: Sascha Swiercy
Bug: http://curl.haxx.se/mail/lib-2011-06/0070.html
Yang Tse [Fri, 17 Jun 2011 19:01:41 +0000 (21:01 +0200)]
configure: avoid direct usage of AS_TR_* macros
Yang Tse [Fri, 17 Jun 2011 18:59:58 +0000 (20:59 +0200)]
xc-translit.m4 provides transliteration macros with well defined behavior.
Daniel Stenberg [Tue, 14 Jun 2011 17:17:41 +0000 (19:17 +0200)]
RELEASE-NOTES: add more contributors for this release
Daniel Stenberg [Tue, 14 Jun 2011 12:45:44 +0000 (14:45 +0200)]
RELEASE-NOTES: synced with
0aedccc18a33a778535
Daniel Stenberg [Mon, 13 Jun 2011 20:32:00 +0000 (22:32 +0200)]
curl_formget: fix FILE * leak
Properly deal with the fact that the last fread() call most probably is
a short read, and when using callbacks in fact all calls can be short
reads. No longer consider a file read done until it returns a 0 from the
read function.
Reported by: Aaron Orenstein
Bug: http://curl.haxx.se/mail/lib-2011-06/0048.html