summaryrefslogtreecommitdiff
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* curl_gssapi: add a missing include of sendf.hKamil Dudka2011-08-032-2/+3
| | | | | | ... to avoid build failure when GSS_C_DELEG_POLICY_FLAG is not defined. Reported by: Paul Howarth
* curl_gssapi: refine the handling of CURLOPT_GSSAPI_DELEGATIONKamil Dudka2011-08-033-6/+15
| | | | Suggested by Richard Silverman.
* Add new CURLOPT_GSSAPI_DELEGATION option.Adam Tkac2011-08-037-11/+31
| | | | | | Curl_gss_init_sec_context got new parameter - SessionHandle. Signed-off-by: Adam Tkac <atkac@redhat.com>
* NTLM single-sign on adjustments (VIII)Yang Tse2011-07-316-27/+33
| | | | | | | | | | | | 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]
* NTLM single-sign on adjustments (VII)Yang Tse2011-07-292-5/+7
| | | | Initialize variables when connectdata object is created.
* socketpair() usage tracking to allow fd leak detectionYang Tse2011-07-294-29/+57
|
* Avoid a "shadows global declaration" warning on old MIT KerberosDan Fandrich2011-07-283-0/+3
| | | | | | Defining NCOMPAT eliminates the backwards-compatibility macros that are the source of the problem and which we don't need, anyway.
* Give the NTLM SSO helper a moment to cleanly shut down if neededDan Fandrich2011-07-283-4/+11
|
* Removed an extraneous \n that violated the SSO daemon protocolDan Fandrich2011-07-281-1/+1
| | | | | This caused fake_ntlm to abort due to an invalid command causing sporadic test 2005 failures.
* Fixed a couple of memory leaks in NTLM SSO supportDan Fandrich2011-07-271-1/+5
|
* NTLM single-sign on adjustments (IV)Yang Tse2011-07-271-1/+1
| | | | Fix compiler warning
* NTLM single-sign on adjustments (III)Yang Tse2011-07-271-15/+62
| | | | Provide some error tracing and fix execl() calling.
* fix compiler warningYang Tse2011-07-261-1/+1
|
* fix compiler warningYang Tse2011-07-262-1/+5
|
* stdio.h, stdlib.h, string.h, stdarg.h and ctype.h inclusion done in setup_once.hYang Tse2011-07-2681-346/+47
|
* WIN32 io.h and fcntl.h inclusion done in setup_once.hYang Tse2011-07-2510-52/+18
|
* time.h and sys/time.h inclusion conditionally done in setup_once.hYang Tse2011-07-2515-64/+1
|
* errno.h inclusion conditionally done in setup_once.h - followupYang Tse2011-07-251-1/+1
|
* errno.h inclusion conditionally done in setup_once.hYang Tse2011-07-2425-17/+24
|
* progress: reset flags at transfer startBen Winslow2011-07-221-0/+1
| | | | | | | | | | | 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
* http error response: stop sending when error is receivedDaniel Stenberg2011-07-202-12/+61
| | | | | | | | | | | | | | 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
* sso_ntlm_initiate: unassigned variableMichael Mueller2011-07-191-1/+1
| | | | Bug: http://curl.haxx.se/mail/lib-2011-07/0109.html
* NTLM single-sign on supportedMandy Wu2011-07-187-6/+356
| | | | With the use of the 'ntlm_auth' tool from the Samba project
* curl_gssapi: Guard files with HAVE_GSSAPI.Julien Chaffraix2011-07-132-0/+10
| | | | | Bug: http://curl.haxx.se/mail/lib-2011-07/0074.html Reported and fix suggested by: Ben Greear
* gssapi: rename our files to avoid conflictsDaniel Stenberg2011-07-136-6/+6
| | | | | | | | | 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
* silence picky compilers: mark unused parametersDaniel Stenberg2011-07-122-6/+15
| | | | | | 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.
* gssapi.c: Simplified the function.Julien Chaffraix2011-07-125-45/+15
| | | | Removed the parameters that were common to all our invocation.
* Added Curl_gss_init_sec_context.Julien Chaffraix2011-07-126-53/+151
| | | | | This function wraps our calls to gss_init_sec_context so that we have a unified way to talk to GSSAPI.
* http_negociate: Be consistent in gss_init_sec_context attributes.Julien Chaffraix2011-07-121-1/+1
| | | | This change makes this callsite match the rest of the code.
* code style: space between close paren and open braceDaniel Stenberg2011-07-049-29/+28
|
* checksrc: detect open brace without spaceDaniel Stenberg2011-07-041-0/+5
| | | | | We use "if(condition) {" with a space between the close paren and the open brace.
* polarssl.h: remove CVS leftoverDaniel Stenberg2011-07-041-1/+0
|
* Curl_http_readwrite_headers: minor indent fixDaniel Stenberg2011-07-011-6/+6
|
* get_gss_name: proxy auth without proxy set equals errorDaniel Stenberg2011-06-291-5/+8
| | | | | | | Previously it would access a NULL pointer and die. Bug: http://curl.haxx.se/mail/lib-2011-06/0170.html Reported by: Christian Hagele
* parsedate: detect more invalid dates betterDaniel Stenberg2011-06-231-0/+4
|
* Curl_input_negotiate: do not delegate GSSAPI credentialsDaniel Stenberg2011-06-221-1/+1
| | | | | | This is a security flaw. See curl advisory 20110623 for details. Reported by: Richard Silverman
* windows build: use correct MS CRTJosue Andrade Gomes2011-06-211-1/+1
|
* [pop3] remove extra space in LIST commandOri Avtalion2011-06-211-2/+5
| | | | Some servers, e.g. mail.bezeqint.net:110, consider it a syntax error
* http: fix compiler warningYang Tse2011-06-211-2/+2
| | | | compiler warning: conditional expression is constant
* asyn-thread: fix compiler warningYang Tse2011-06-211-4/+2
| | | | compiler warning: variable is initialized but not referenced
* cmake: remove spurious definitionYang Tse2011-06-211-3/+0
|
* unitteset: Curl_llist_moveAmr Shahin2011-06-191-2/+9
| | | | | | 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
* CURLFORM_STREAM: acknowledge CURLFORM_FILENAMEDaniel Stenberg2011-06-171-9/+11
| | | | | | | | | | | | | 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
* curl_formget: fix FILE * leakDaniel Stenberg2011-06-131-3/+8
| | | | | | | | | | 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
* curl_formget: treat CURLFORM_STREAM betterDaniel Stenberg2011-06-131-3/+7
| | | | | | | If a piece is set to use a callback to get the data, it should not be treated as data. It unfortunately also requires that curl_easy_perform() or similar has been used as otherwise the callback function hasn't been figured out and curl_formget won't know how to get the content.
* long/int messDaniel Stenberg2011-06-111-2/+2
| | | | Typecast when converting to int from long to avoid some compiler warnings
* splay: add unit testsDaniel Stenberg2011-06-101-165/+14
| | | | | The test code that was #ifdef'ed in the code was converted into unit tests in test case 1309. I also removed the #if 0'ed code from splay.c
* unittest: mark all unit tested functionsDaniel Stenberg2011-06-108-6/+34
| | | | | With "@unittest: [num]" in the header comment for each tested function. Shows we have a log way to go still...
* disconnect: wipe out the keeps_speed time stampKamil Dudka2011-06-081-0/+1
| | | | | | | | When closing a connection, the speedchecker's timestamp is now deleted so that it cannot accidentally be used by a fresh connection on the same handle when examining the transfer speed. Bug: https://bugzilla.redhat.com/679709
* urldata: use uniform inclusion style for OpenSSL headersYang Tse2011-06-071-15/+15
|