aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2014-12-16tool_urlglob: unify return codes to use CURLcodeDaniel Stenberg
There was a mix of GlobCode, CURLcode and ints and they were mostly passing around CURLcode errors. This change makes the functions use only CURLcode and removes the GlobCode type completely.
2014-12-16tool_urlglob.c: partly reverse dc19789444Daniel Stenberg
The loop in glob_next_url() needs to be done backwards to maintain the logic. dc19789444 caused test 1235 to fail.
2014-12-15KNOWN_BUGS: the SFTP code doesn't support CURLINFO_FILETIMEDaniel Stenberg
2014-12-15opts: Warn CURLOPT_TIMEOUT overrides when set after CURLOPT_TIMEOUT_MSJay Satiro
Change CURLOPT_TIMEOUT doc to warn that if CURLOPT_TIMEOUT and CURLOPT_TIMEOUT_MS are both set whichever one is set last is the one that will be used. Prior to this change that behavior was only noted in the CURLOPT_TIMEOUT_MS doc.
2014-12-15darwinssl: fix incorrect usage of aprintf()Nick Zitzmann
Commit b13923f changed an snprintf() to use aprintf(), but the API usage wasn't correct, and was causing a crash to occur. This fixes it.
2014-12-14copyright: Updated the copyright year following recent updatesSteve Holme
2014-12-14tool_urlglob.c: reverse two loopsDaniel Stenberg
By counting from 0 and up instead of backwards like before, we remove the need for the "funny" check of the unsigned variable when decreased passed zero. Easier to read and less risk for compiler warnings.
2014-12-14tool_urlglob.c: Added braces to clarify the conditionsMarc Hoersken
2014-12-14tool_urlglob.c: Silence warning C6293: Ill-defined for-loopMarc Hoersken
The >= 0 is actually not required, since i underflows and the for-loop is stopped using the < condition, but this makes the VS2012 compiler and code analysis happy.
2014-12-14tool_binmode.c: Explicitly ignore the return code of setmodeMarc Hoersken
Fixes code analysis warning C6031: return value ignored: <function> could return unexpected value
2014-12-14lib: Fixed multiple code analysis warnings if SAL are availableMarc Hoersken
warning C28252: Inconsistent annotation for function: parameter has another annotation on this instance
2014-12-14smb.c: Fixed code analysis warningSteve Holme
smb.c:320: warning C6297: Arithmetic overflow: 32-bit value is shifted, then cast to 64-bit value. Result may not be an expected value
2014-12-14tool_util.c: Use GetTickCount64 if it is availableMarc Hoersken
2014-12-14smb: Use HAVE_PROCESS_H for process.h inclusionSteve Holme
Rather than testing against _WIN32 use the preferred HAVE_PROCESS_H pre-processor define when including process.h.
2014-12-14darwinssl: aprintf() to allocate the session keyDaniel Stenberg
... to avoid using a fixed memory size that risks being too large or too small.
2014-12-14curl_schannel: Improvements to memory re-allocation strategyMarc Hoersken
- do not grow memory by doubling its size - do not leak previously allocated memory if reallocation fails - replace while-loop with a single check to make sure that the requested amount of data fits into the buffer Bug: http://curl.haxx.se/bug/view.cgi?id=1450 Reported-by: Warren Menzer
2014-12-14asyn-ares: We prefer use of 'CURLcode result'Steve Holme
2014-12-14curl_schannel.c: Data may be available before connection shutdownMarc Hoersken
2014-12-14http2: Use 'CURLcode result' for curl result codesSteve Holme
2014-12-14asyn-thread: We prefer 'CURLcode result'Steve Holme
2014-12-14smb: Fixed unnecessary initialisation of struct member variablesSteve Holme
There is no need to set the 'state' and 'result' member variables to SMB_REQUESTING (0) and CURLE_OK (0) after the allocation via calloc() as calloc() initialises the contents to zero.
2014-12-14ntlm: Fixed return code for bad type-2 Target InfoSteve Holme
Use CURLE_BAD_CONTENT_ENCODING for bad type-2 Target Info security buffers just like we do for bad decodes.
2014-12-14ntlm: Remove unnecessary casts in readshort_le()Steve Holme
I don't think both of my fix ups from yesterday were needed to fix the compilation warning, so remove the one that I think is unnecessary and let the next Android autobuild prove/disprove it.
2014-12-13curl_ntlm_msgs.c: Another attempt to fix compilation warningSteve Holme
curl_ntlm_msgs.c:170: warning: conversion to 'short unsigned int' from 'int' may alter its value
2014-12-13synctime.c: added own user-agent string.Guenter Knauf
2014-12-13smb.c: Fixed line longer than 79 columnsSteve Holme
2014-12-13curl_ntlm_msgs.c: Fixed compilation warning from commit 783b5c3b11Steve Holme
curl_ntlm_msgs.c:169: warning: conversion to 'short unsigned int' from 'int' may alter its value
2014-12-13mk-ca-bundle.pl: restored forced run again.Guenter Knauf
2014-12-13synctime.c: removed another timeserver URL.Guenter Knauf
worldtimeserver.com seems also no longer available.
2014-12-13synctime.c: fixed timeserver URLs.Guenter Knauf
For getting the date header its not necessary to access special pages or even CGI scripts - all pages including the main index reply with the date header, therefore shortened URLs to domain. Removed worldtime.com; added pool.ntp.org.
2014-12-13ftp.c: Fixed compilation warning when no verbose string supportSteve Holme
ftp.c:819: warning: unused parameter 'lineno'
2014-12-13smb: Added state change functions to assist with debuggingSteve Holme
For debugging purposes, and as per other protocols within curl, added state change functions rather than changing the states directly.
2014-12-13ntlm: Use short integer when decoding 16-bit valuesSteve Holme
2014-12-12RELEASE-NOTES: Synced with 6291a16b20Steve Holme
2014-12-12smtp.c: Fixed compilation warningsSteve Holme
smtp.c:2357 warning: adding 'size_t' (aka 'unsigned long') to a string does not append to the string smtp.c:2375 warning: adding 'size_t' (aka 'unsigned long') to a string does not append to the string smtp.c:2386 warning: adding 'size_t' (aka 'unsigned long') to a string does not append to the string Used array index notation instead.
2014-12-12smb: Disable SMB when 64-bit integers are not supportedSteve Holme
This fixes compilation issues with compilers that don't support 64-bit integers through long long or __int64.
2014-12-12ntlm: Disable NTLM v2 when 64-bit integers are not supportedSteve Holme
This fixes compilation issues with compilers that don't support 64-bit integers through long long or __int64 which was introduced in commit 07b66cbfa4.
2014-12-12ntlm: Allow NTLM2Session messages when USE_NTRESPONSES manually definedSteve Holme
Previously USE_NTLM2SESSION would only be defined automatically when USE_NTRESPONSES wasn't already defined. Separated the two definitions so that the user can manually set USE_NTRESPONSES themselves but USE_NTLM2SESSION is defined automatically if they don't define it.
2014-12-12smtp.c: Fixed line longer than 79 columnsSteve Holme
2014-12-12config-win32.h: Don't enable Windows Crypt API if using OpenSSLSteve Holme
As the OpenSSL and NSS Crypto engines are prefered by the core NTLM routines, to the Windows Crypt API, don't define USE_WIN32_CRYPT automatically when either OpenSSL or NSS are in use - doing so would disable NTLM2Session responses in NTLM type-3 messages.
2014-12-12smtp: Fixed inappropriate free of the scratch bufferSteve Holme
If the scratch buffer was allocated in a previous call to Curl_smtp_escape_eob(), a new buffer not allocated in the subsequent call and no action taken by that call, then an attempt would be made to try and free the buffer which, by now, would be part of the data->state structure. This bug was introduced in commit 4bd860a001.
2014-12-12smtp: Fixed dot stuffing when EOL characters were at end of input buffersSteve Holme
Fixed a problem with the CRLF. detection when multiple buffers were used to upload an email to libcurl and the line ending character(s) appeared at the end of each buffer. This meant any lines which started with . would not be escaped into .. and could be interpreted as the end of transmission string instead. This only affected libcurl based applications that used a read function and wasn't reproducible with the curl command-line tool. Bug: http://curl.haxx.se/bug/view.cgi?id=1456 Assisted-by: Patrick Monnerat
2014-12-11telnet: fix "cast increases required alignment of target type"Daniel Stenberg
2014-12-10ntlm_wb_response: fix "statement not reached"Daniel Stenberg
... and I could use a break instead of a goto to end the loop. Bug: http://curl.haxx.se/mail/lib-2014-12/0089.html Reported-by: Tor Arntsen
2014-12-10RELEASE-NOTES: Synced with 1cc5194337Steve Holme
Added some bug fixes that I had missed in previous synchronisations.
2014-12-10Curl_unix2addr: avoid using the variable name 'sun'Daniel Stenberg
I suspect this causes compile failures on Solaris: Bug: http://curl.haxx.se/mail/lib-2014-12/0081.html
2014-12-10url.c: Fixed compilation warning when USE_NTLM is not definedSteve Holme
url.c:3078: warning: variable 'credentialsMatch' set but not used
2014-12-10parsedate.c: Fixed compilation warningSteve Holme
parsedate.c:548: warning: 'parsed' may be used uninitialized in this function As curl_getdate() returns -1 when parsedate() fails we can initialise parsed to -1.
2014-12-10TODO: Cache negative name resolvesDaniel Stenberg
Worth exploring
2014-12-10ldap: check Curl_client_write() return codesDaniel Stenberg
There might be one or two memory leaks left in the error paths.