]> granicus.if.org Git - curl/log
curl
10 years agoFix comment edit in vms/backup_gnv_curl_src.com
John Malmberg [Mon, 22 Dec 2014 20:50:12 +0000 (14:50 -0600)]
Fix comment edit in vms/backup_gnv_curl_src.com

packages/vms/backup_gnv_curl_src.com: Originally copied from Bash port.

10 years agocurl: show size of inhibited data when using -v
Daniel Stenberg [Mon, 22 Dec 2014 13:17:12 +0000 (14:17 +0100)]
curl: show size of inhibited data when using -v

To offer some more info and yet it doesn't use more lines.

10 years agoopenssl: fix SSL/TLS versions in verbose output
Daniel Stenberg [Mon, 22 Dec 2014 13:09:46 +0000 (14:09 +0100)]
openssl: fix SSL/TLS versions in verbose output

10 years agoopenssl: make it compile against openssl 1.1.0-DEV master branch
Daniel Stenberg [Mon, 22 Dec 2014 12:56:04 +0000 (13:56 +0100)]
openssl: make it compile against openssl 1.1.0-DEV master branch

10 years agosshserver.pl: clarify and streamline variable names
Marc Hoersken [Sun, 21 Dec 2014 23:30:02 +0000 (00:30 +0100)]
sshserver.pl: clarify and streamline variable names

10 years agoopenssl: warn for SRP set if SSLv3 is used, not for TLS version
Daniel Stenberg [Sun, 21 Dec 2014 22:25:49 +0000 (23:25 +0100)]
openssl: warn for SRP set if SSLv3 is used, not for TLS version

... as it requires TLS and it was was left to warn on the default from
when default was SSL...

10 years agosmb: use memcpy() instead of strncpy()
Daniel Stenberg [Sun, 21 Dec 2014 22:21:16 +0000 (23:21 +0100)]
smb: use memcpy() instead of strncpy()

... as it never copies the trailing zero anyway and always just the four
bytes so let's not mislead anyone into thinking it is actually treated
as a string.

Coverity CID: 1260214

10 years agoVMS: Updates for 0740-0D1220
John E. Malmberg [Sun, 21 Dec 2014 15:24:55 +0000 (09:24 -0600)]
VMS: Updates for 0740-0D1220

lib/setup-vms.h : VAX HP OpenSSL port is ancient, needs help.
                  More defines to set symbols to uppercase.

src/tool_main.c : Fix parameter to vms_special_exit() call.

packages/vms/ :
  backup_gnv_curl_src.com : Fix the error message to have the correct package.

  build_curl-config_script.com : Rewrite to be more accurate.

  build_libcurl_pc.com : Use tool_version.h now.

  build_vms.com : Fix to handle lib/vtls directory.

  curl_gnv_build_steps.txt : Updated build procedure documentation.

  generate_config_vms_h_curl.com :
       * VAX does not support 64 bit ints, so no NTLM support for now.
       * VAX HP SSL port is ancient, needs some help.
       * Disable NGHTTP2 for now, not ported to VMS.
       * Disable UNIX_SOCKETS, not available on VMS yet.
       * HP GSSAPI port does not have gss_nt_service_name.

  gnv_link_curl.com : Update for new curl structure.

  pcsi_product_gnv_curl.com : Set up to optionally do a complete build.

10 years agosockfilt.c: use non-Ex functions that are available before WinXP
Marc Hoersken [Sun, 21 Dec 2014 13:32:40 +0000 (14:32 +0100)]
sockfilt.c: use non-Ex functions that are available before WinXP

It was initially reported by Guenter that GetFileSizeEx
requires (_WIN32_WINNT >= 0x0500) to be true.

10 years agotests: use Cygwin-style paths in SSH, SSHD and SFTP config files
Marc Hoersken [Sun, 21 Dec 2014 02:48:41 +0000 (03:48 +0100)]
tests: use Cygwin-style paths in SSH, SSHD and SFTP config files

Second patch to enable Windows support using Cygwin-based OpenSSH.

Tested with CopSSH 5.0.0 free edition using an msys shell on Windows 7.

10 years agotests: support spaces in paths to SSH, SSHD and SFTP binaries
Marc Hoersken [Sun, 21 Dec 2014 01:42:29 +0000 (02:42 +0100)]
tests: support spaces in paths to SSH, SSHD and SFTP binaries

First patch to enable Windows support using Cygwin-based OpenSSH.

10 years agonon-ascii: Reduce variable usage
Steve Holme [Fri, 19 Dec 2014 20:41:47 +0000 (20:41 +0000)]
non-ascii: Reduce variable usage

Removed 'next' variable in Curl_convert_form(). Rather than setting it
from 'form->next' and using that to set 'form' after the conversion
just use 'form = form->next' instead.

10 years agonon-ascii: Prefer while loop rather than a do loop
Steve Holme [Fri, 19 Dec 2014 20:38:26 +0000 (20:38 +0000)]
non-ascii: Prefer while loop rather than a do loop

This also removes the need to check that the 'form' argument is valid.

10 years agonon-ascii: Reduce variable scope
Steve Holme [Fri, 19 Dec 2014 20:29:56 +0000 (20:29 +0000)]
non-ascii: Reduce variable scope

As 'result' isn't used out side the conversion callback code and
previously caused variable shadowing in the libiconv based code.

10 years agonon-ascii: We prefer 'CURLcode result'
Steve Holme [Fri, 19 Dec 2014 20:17:37 +0000 (20:17 +0000)]
non-ascii: We prefer 'CURLcode result'

This also fixes a variable shadowing issue when HAVE_ICONV is defined
as rc was declared for the result code of libiconv based functions.

10 years agosecureserver.pl: clean up formatting of config and fix verbose output
Marc Hoersken [Fri, 19 Dec 2014 16:25:16 +0000 (17:25 +0100)]
secureserver.pl: clean up formatting of config and fix verbose output

Verbose output was not matching the actual configuration file,
because FIPS and Windows conditions were ignored.

10 years agosecureserver.pl: update Windows detection and fix path conversion
Marc Hoersken [Fri, 19 Dec 2014 16:17:26 +0000 (17:17 +0100)]
secureserver.pl: update Windows detection and fix path conversion

10 years agosecureserver.pl: make OpenSSL CApath and cert absolute path values
Marc Hoersken [Fri, 19 Dec 2014 16:16:19 +0000 (17:16 +0100)]
secureserver.pl: make OpenSSL CApath and cert absolute path values

Recent stunnel versions (5.08) seem to have trouble with relative
paths on Windows. This turns the relative paths into absolute ones.

10 years agoif2ip: dummy scope parameter for Curl_if2ip() call in SIOCGIFADDR-enabled code.
Patrick Monnerat [Thu, 18 Dec 2014 10:05:18 +0000 (11:05 +0100)]
if2ip: dummy scope parameter for Curl_if2ip() call in SIOCGIFADDR-enabled code.

10 years agoparseurlandfillconn(): fix improper non-numeric scope_id stripping.
Kyle J. McKay [Wed, 17 Dec 2014 14:52:07 +0000 (15:52 +0100)]
parseurlandfillconn(): fix improper non-numeric scope_id stripping.
Fixes SF bug 1149: http://sourceforge.net/p/curl/bugs/1449/

10 years agoIPV6: address scope != scope id
Patrick Monnerat [Tue, 16 Dec 2014 12:29:01 +0000 (13:29 +0100)]
IPV6: address scope != scope id
There was a confusion between these: this commit tries to disambiguate them.
- Scope can be computed from the address itself.
- Scope id is scope dependent: it is currently defined as 1-based local
  interface index for link-local scoped addresses, and as a site index(?) for
  (obsolete) site-local addresses. Linux only supports it for link-local
  addresses.
The URL parser properly parses a scope id as an interface index, but stores it
in a field named "scope": confusion. The field has been renamed into "scope_id".
Curl_if2ip() used the scope id as it was a scope. This caused failures
to bind to an interface.
Scope is now computed from the addresses and Curl_if2ip() matches them.
If redundantly specified in the URL, scope id is check for mismatch with
the interface index.

This commit should fix SF bug #1451.

10 years agoconnect: singleipconnect(): properly try other address families after failure
Patrick Monnerat [Mon, 15 Dec 2014 15:36:57 +0000 (16:36 +0100)]
connect: singleipconnect(): properly try other address families after failure

10 years agoSFTP: work-around servers that return zero size on STAT
Daniel Stenberg [Mon, 15 Dec 2014 21:52:30 +0000 (22:52 +0100)]
SFTP: work-around servers that return zero size on STAT

Bug: http://curl.haxx.se/mail/lib-2014-12/0103.html
Pathed-by: Marc Renault
10 years agoglob_next_url: make the loop count upwards
Daniel Stenberg [Tue, 16 Dec 2014 08:01:56 +0000 (09:01 +0100)]
glob_next_url: make the loop count upwards

As the former contruct apparently caused a compiler warning, mentioned
in d8efde07e556c.

10 years agotool_operate: we prefer 'CURLcode result'
Daniel Stenberg [Tue, 16 Dec 2014 07:35:47 +0000 (08:35 +0100)]
tool_operate: we prefer 'CURLcode result'

10 years agotool_urlglob: unify return codes to use CURLcode
Daniel Stenberg [Tue, 16 Dec 2014 00:00:23 +0000 (01:00 +0100)]
tool_urlglob: unify return codes to use CURLcode

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.

10 years agotool_urlglob.c: partly reverse dc19789444
Daniel Stenberg [Mon, 15 Dec 2014 23:51:22 +0000 (00:51 +0100)]
tool_urlglob.c: partly reverse dc19789444

The loop in glob_next_url() needs to be done backwards to maintain the
logic. dc19789444 caused test 1235 to fail.

10 years agoKNOWN_BUGS: the SFTP code doesn't support CURLINFO_FILETIME
Daniel Stenberg [Mon, 15 Dec 2014 21:30:27 +0000 (22:30 +0100)]
KNOWN_BUGS: the SFTP code doesn't support CURLINFO_FILETIME

10 years agoopts: Warn CURLOPT_TIMEOUT overrides when set after CURLOPT_TIMEOUT_MS
Jay Satiro [Mon, 15 Dec 2014 19:42:21 +0000 (14:42 -0500)]
opts: Warn CURLOPT_TIMEOUT overrides when set after CURLOPT_TIMEOUT_MS

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.

10 years agodarwinssl: fix incorrect usage of aprintf()
Nick Zitzmann [Mon, 15 Dec 2014 06:56:09 +0000 (00:56 -0600)]
darwinssl: fix incorrect usage of aprintf()

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.

10 years agocopyright: Updated the copyright year following recent updates
Steve Holme [Sun, 14 Dec 2014 22:39:27 +0000 (22:39 +0000)]
copyright: Updated the copyright year following recent updates

10 years agotool_urlglob.c: reverse two loops
Daniel Stenberg [Sun, 14 Dec 2014 22:32:53 +0000 (23:32 +0100)]
tool_urlglob.c: reverse two loops

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.

10 years agotool_urlglob.c: Added braces to clarify the conditions
Marc Hoersken [Sun, 14 Dec 2014 21:50:01 +0000 (22:50 +0100)]
tool_urlglob.c: Added braces to clarify the conditions

10 years agotool_urlglob.c: Silence warning C6293: Ill-defined for-loop
Marc Hoersken [Sun, 14 Dec 2014 21:45:06 +0000 (22:45 +0100)]
tool_urlglob.c: Silence warning C6293: Ill-defined for-loop

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.

10 years agotool_binmode.c: Explicitly ignore the return code of setmode
Marc Hoersken [Sun, 14 Dec 2014 21:31:10 +0000 (22:31 +0100)]
tool_binmode.c: Explicitly ignore the return code of setmode

Fixes code analysis warning C6031:
return value ignored: <function> could return unexpected value

10 years agolib: Fixed multiple code analysis warnings if SAL are available
Marc Hoersken [Sun, 14 Dec 2014 21:16:23 +0000 (22:16 +0100)]
lib: Fixed multiple code analysis warnings if SAL are available

warning C28252: Inconsistent annotation for function:
parameter has another annotation on this instance

10 years agosmb.c: Fixed code analysis warning
Steve Holme [Sun, 14 Dec 2014 21:01:09 +0000 (21:01 +0000)]
smb.c: Fixed code analysis warning

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

10 years agotool_util.c: Use GetTickCount64 if it is available
Marc Hoersken [Sun, 14 Dec 2014 17:32:41 +0000 (18:32 +0100)]
tool_util.c: Use GetTickCount64 if it is available

10 years agosmb: Use HAVE_PROCESS_H for process.h inclusion
Steve Holme [Sun, 14 Dec 2014 16:42:08 +0000 (16:42 +0000)]
smb: Use HAVE_PROCESS_H for process.h inclusion

Rather than testing against _WIN32 use the preferred HAVE_PROCESS_H
pre-processor define when including process.h.

10 years agodarwinssl: aprintf() to allocate the session key
Daniel Stenberg [Sun, 14 Dec 2014 16:34:02 +0000 (17:34 +0100)]
darwinssl: aprintf() to allocate the session key

... to avoid using a fixed memory size that risks being too large or too
small.

10 years agocurl_schannel: Improvements to memory re-allocation strategy
Marc Hoersken [Sun, 14 Dec 2014 16:27:20 +0000 (17:27 +0100)]
curl_schannel: Improvements to memory re-allocation strategy

- 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
10 years agoasyn-ares: We prefer use of 'CURLcode result'
Steve Holme [Sun, 14 Dec 2014 16:19:59 +0000 (16:19 +0000)]
asyn-ares: We prefer use of 'CURLcode result'

10 years agocurl_schannel.c: Data may be available before connection shutdown
Marc Hoersken [Sun, 14 Dec 2014 15:40:49 +0000 (16:40 +0100)]
curl_schannel.c: Data may be available before connection shutdown

10 years agohttp2: Use 'CURLcode result' for curl result codes
Steve Holme [Sun, 14 Dec 2014 13:09:29 +0000 (13:09 +0000)]
http2: Use 'CURLcode result' for curl result codes

10 years agoasyn-thread: We prefer 'CURLcode result'
Steve Holme [Sun, 14 Dec 2014 12:52:08 +0000 (12:52 +0000)]
asyn-thread:  We prefer 'CURLcode result'

10 years agosmb: Fixed unnecessary initialisation of struct member variables
Steve Holme [Sun, 14 Dec 2014 12:27:57 +0000 (12:27 +0000)]
smb: Fixed unnecessary initialisation of struct member variables

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.

10 years agontlm: Fixed return code for bad type-2 Target Info
Steve Holme [Sun, 14 Dec 2014 12:07:57 +0000 (12:07 +0000)]
ntlm: Fixed return code for bad type-2 Target Info

Use CURLE_BAD_CONTENT_ENCODING for bad type-2 Target Info security
buffers just like we do for bad decodes.

10 years agontlm: Remove unnecessary casts in readshort_le()
Steve Holme [Sun, 14 Dec 2014 11:45:14 +0000 (11:45 +0000)]
ntlm: Remove unnecessary casts in readshort_le()

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.

10 years agocurl_ntlm_msgs.c: Another attempt to fix compilation warning
Steve Holme [Sat, 13 Dec 2014 14:55:26 +0000 (14:55 +0000)]
curl_ntlm_msgs.c: Another attempt to fix compilation warning

curl_ntlm_msgs.c:170: warning: conversion to 'short unsigned int' from
                      'int' may alter its value

10 years agosynctime.c: added own user-agent string.
Guenter Knauf [Sat, 13 Dec 2014 14:02:30 +0000 (15:02 +0100)]
synctime.c: added own user-agent string.

10 years agosmb.c: Fixed line longer than 79 columns
Steve Holme [Sat, 13 Dec 2014 13:06:56 +0000 (13:06 +0000)]
smb.c: Fixed line longer than 79 columns

10 years agocurl_ntlm_msgs.c: Fixed compilation warning from commit 783b5c3b11
Steve Holme [Sat, 13 Dec 2014 12:51:11 +0000 (12:51 +0000)]
curl_ntlm_msgs.c: Fixed compilation warning from commit 783b5c3b11

curl_ntlm_msgs.c:169: warning: conversion to 'short unsigned int' from
                      'int' may alter its value

10 years agomk-ca-bundle.pl: restored forced run again.
Guenter Knauf [Sat, 13 Dec 2014 12:46:45 +0000 (13:46 +0100)]
mk-ca-bundle.pl: restored forced run again.

10 years agosynctime.c: removed another timeserver URL.
Guenter Knauf [Sat, 13 Dec 2014 12:43:19 +0000 (13:43 +0100)]
synctime.c: removed another timeserver URL.

worldtimeserver.com seems also no longer available.

10 years agosynctime.c: fixed timeserver URLs.
Guenter Knauf [Sat, 13 Dec 2014 12:29:59 +0000 (13:29 +0100)]
synctime.c: fixed timeserver URLs.

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.

10 years agoftp.c: Fixed compilation warning when no verbose string support
Steve Holme [Sat, 13 Dec 2014 12:32:32 +0000 (12:32 +0000)]
ftp.c: Fixed compilation warning when no verbose string support

ftp.c:819: warning: unused parameter 'lineno'

10 years agosmb: Added state change functions to assist with debugging
Steve Holme [Sat, 13 Dec 2014 12:12:45 +0000 (12:12 +0000)]
smb: Added state change functions to assist with debugging

For debugging purposes, and as per other protocols within curl, added
state change functions rather than changing the states directly.

10 years agontlm: Use short integer when decoding 16-bit values
Steve Holme [Sat, 13 Dec 2014 11:14:55 +0000 (11:14 +0000)]
ntlm: Use short integer when decoding 16-bit values

10 years agoRELEASE-NOTES: Synced with 6291a16b20
Steve Holme [Fri, 12 Dec 2014 23:30:50 +0000 (23:30 +0000)]
RELEASE-NOTES: Synced with 6291a16b20

10 years agosmtp.c: Fixed compilation warnings
Steve Holme [Fri, 12 Dec 2014 22:57:31 +0000 (22:57 +0000)]
smtp.c: Fixed compilation warnings

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.

10 years agosmb: Disable SMB when 64-bit integers are not supported
Steve Holme [Fri, 12 Dec 2014 22:08:03 +0000 (22:08 +0000)]
smb: Disable SMB when 64-bit integers are not supported

This fixes compilation issues with compilers that don't support 64-bit
integers through long long or __int64.

10 years agontlm: Disable NTLM v2 when 64-bit integers are not supported
Steve Holme [Fri, 12 Dec 2014 21:57:59 +0000 (21:57 +0000)]
ntlm: Disable NTLM v2 when 64-bit integers are not supported

This fixes compilation issues with compilers that don't support 64-bit
integers through long long or __int64 which was introduced in commit
07b66cbfa4.

10 years agontlm: Allow NTLM2Session messages when USE_NTRESPONSES manually defined
Steve Holme [Fri, 12 Dec 2014 21:40:09 +0000 (21:40 +0000)]
ntlm: Allow NTLM2Session messages when USE_NTRESPONSES manually defined

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.

10 years agosmtp.c: Fixed line longer than 79 columns
Steve Holme [Fri, 12 Dec 2014 21:06:01 +0000 (21:06 +0000)]
smtp.c: Fixed line longer than 79 columns

10 years agoconfig-win32.h: Don't enable Windows Crypt API if using OpenSSL
Steve Holme [Fri, 12 Dec 2014 19:46:56 +0000 (19:46 +0000)]
config-win32.h: Don't enable Windows Crypt API if using OpenSSL

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.

10 years agosmtp: Fixed inappropriate free of the scratch buffer
Steve Holme [Fri, 12 Dec 2014 18:55:16 +0000 (18:55 +0000)]
smtp: Fixed inappropriate free of the scratch buffer

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.

10 years agosmtp: Fixed dot stuffing when EOL characters were at end of input buffers
Steve Holme [Fri, 12 Dec 2014 18:37:06 +0000 (18:37 +0000)]
smtp: Fixed dot stuffing when EOL characters were at end of input buffers

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
10 years agotelnet: fix "cast increases required alignment of target type"
Daniel Stenberg [Thu, 11 Dec 2014 08:15:04 +0000 (09:15 +0100)]
telnet: fix "cast increases required alignment of target type"

10 years agontlm_wb_response: fix "statement not reached"
Daniel Stenberg [Wed, 10 Dec 2014 21:43:44 +0000 (22:43 +0100)]
ntlm_wb_response: fix "statement not reached"

... 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
10 years agoRELEASE-NOTES: Synced with 1cc5194337
Steve Holme [Wed, 10 Dec 2014 12:59:41 +0000 (12:59 +0000)]
RELEASE-NOTES: Synced with 1cc5194337

Added some bug fixes that I had missed in previous synchronisations.

10 years agoCurl_unix2addr: avoid using the variable name 'sun'
Daniel Stenberg [Wed, 10 Dec 2014 12:12:26 +0000 (13:12 +0100)]
Curl_unix2addr: avoid using the variable name 'sun'

I suspect this causes compile failures on Solaris:

Bug: http://curl.haxx.se/mail/lib-2014-12/0081.html

10 years agourl.c: Fixed compilation warning when USE_NTLM is not defined
Steve Holme [Wed, 10 Dec 2014 11:57:11 +0000 (11:57 +0000)]
url.c: Fixed compilation warning when USE_NTLM is not defined

url.c:3078: warning: variable 'credentialsMatch' set but not used

10 years agoparsedate.c: Fixed compilation warning
Steve Holme [Wed, 10 Dec 2014 11:38:38 +0000 (11:38 +0000)]
parsedate.c: Fixed compilation warning

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.

10 years agoTODO: Cache negative name resolves
Daniel Stenberg [Wed, 10 Dec 2014 10:56:43 +0000 (11:56 +0100)]
TODO: Cache negative name resolves

Worth exploring

10 years agoldap: check Curl_client_write() return codes
Daniel Stenberg [Tue, 9 Dec 2014 23:41:32 +0000 (00:41 +0100)]
ldap: check Curl_client_write() return codes

There might be one or two memory leaks left in the error paths.

10 years agoldap: rename variables to comply to curl standards
Daniel Stenberg [Tue, 9 Dec 2014 23:36:31 +0000 (00:36 +0100)]
ldap: rename variables to comply to curl standards

10 years agosws.c: Fixed 'rc' may be used uninitialized warning
Dan Fandrich [Tue, 9 Dec 2014 23:06:10 +0000 (00:06 +0100)]
sws.c: Fixed 'rc' may be used uninitialized warning

10 years agocookies: Improved OOM handling in cookies
Dan Fandrich [Sun, 7 Dec 2014 11:24:29 +0000 (12:24 +0100)]
cookies: Improved OOM handling in cookies

This fixes the test 506 torture test. The internal cookie API really
ought to be improved to separate cookie parsing errors (which may be
ignored) with OOM errors (which should be fatal).

10 years agosynctime.c: fixed user-agent setting.
Guenter Knauf [Tue, 9 Dec 2014 17:18:40 +0000 (18:18 +0100)]
synctime.c: fixed user-agent setting.

Some websites meanwhile refuse to reply to requests from ancient
browsers like IE6, therefore I've comment out this setting, but
also fixed the string to now fake IE8 if someone enables it.

10 years agosmb: fix unused return code warning
Daniel Stenberg [Tue, 9 Dec 2014 12:38:55 +0000 (13:38 +0100)]
smb: fix unused return code warning

10 years agoCurl_client_write() & al.: chop long data, convert data only once.
Patrick Monnerat [Tue, 9 Dec 2014 14:43:51 +0000 (15:43 +0100)]
Curl_client_write() & al.: chop long data, convert data only once.

10 years agoVC build: added sspi define for winssl-zlib builds.
Guenter Knauf [Tue, 9 Dec 2014 12:30:28 +0000 (13:30 +0100)]
VC build: added sspi define for winssl-zlib builds.

10 years agoschannel_recv: return the correct code
Daniel Stenberg [Tue, 9 Dec 2014 10:45:43 +0000 (11:45 +0100)]
schannel_recv: return the correct code

Bug: http://curl.haxx.se/bug/view.cgi?id=1462
Reported-by: Tae Hyoung Ahn
10 years agohttp2: avoid logging neg "failure" if h2 was not requested
Daniel Stenberg [Mon, 8 Dec 2014 23:09:24 +0000 (00:09 +0100)]
http2: avoid logging neg "failure" if h2 was not requested

10 years agoopenldap: do not ignore Curl_client_write() return codes
Daniel Stenberg [Mon, 8 Dec 2014 14:30:14 +0000 (15:30 +0100)]
openldap: do not ignore Curl_client_write() return codes

10 years agocompile: warn on unused return code from Curl_client_write()
Daniel Stenberg [Mon, 8 Dec 2014 14:29:30 +0000 (15:29 +0100)]
compile: warn on unused return code from Curl_client_write()

10 years agoSMB: Fix a data size mismatch that broke SMB on big-endian platforms
Patrick Monnerat [Mon, 8 Dec 2014 14:30:11 +0000 (15:30 +0100)]
SMB: Fix a data size mismatch that broke SMB on big-endian platforms

10 years agosmb: Fixed Windows autoconf builds following commit eb88d778e7
Steve Holme [Sun, 7 Dec 2014 20:44:57 +0000 (20:44 +0000)]
smb: Fixed Windows autoconf builds following commit eb88d778e7

As Windows based autoconf builds don't yet define USE_WIN32_CRYPTO
either explicitly through --enable-win32-cypto or automatically on
_WIN32 based platforms, subsequent builds broke with the following
error message:

"Can't compile NTLM support without a crypto library."

10 years agoRELEASE-NOTES: Synced with 526603ff05
Steve Holme [Sun, 7 Dec 2014 18:58:17 +0000 (18:58 +0000)]
RELEASE-NOTES: Synced with 526603ff05

10 years agosmb: Build with SSPI enabled
Bill Nagel [Tue, 2 Dec 2014 18:36:40 +0000 (13:36 -0500)]
smb: Build with SSPI enabled

Build SMB/CIFS protocol support when SSPI is enabled.

10 years agontlm: Use Windows Crypt API
Bill Nagel [Tue, 2 Dec 2014 18:21:52 +0000 (13:21 -0500)]
ntlm: Use Windows Crypt API

Allow the use of the Windows Crypt API for NTLMv1 functions.

10 years agocookie.c: Refactored cleanup code to simplify
Dan Fandrich [Sun, 7 Dec 2014 11:22:52 +0000 (12:22 +0100)]
cookie.c: Refactored cleanup code to simplify

Also, fixed the outdated comments on the cookie API.

10 years agoget_url_file_name: Fixed crash on OOM on debug build
Dan Fandrich [Sun, 7 Dec 2014 10:08:10 +0000 (11:08 +0100)]
get_url_file_name: Fixed crash on OOM on debug build

This caused a null-pointer dereference which caused a few dozen
torture tests to fail.

10 years agosws.c: Fixed compilation warning
Steve Holme [Sat, 6 Dec 2014 22:18:42 +0000 (22:18 +0000)]
sws.c: Fixed compilation warning

sws.c:2191 warning: 'rc' may be used uninitialized in this function

10 years agoftp.c: Fixed compilation warnings when proxy support disabled
Steve Holme [Sat, 6 Dec 2014 22:14:50 +0000 (22:14 +0000)]
ftp.c: Fixed compilation warnings when proxy support disabled

ftp.c:1827 warning: unused parameter 'newhost'
ftp.c:1827 warning: unused parameter 'newport'

10 years agosmb: Fixed a problem with large file transfers
Steve Holme [Sat, 6 Dec 2014 21:44:00 +0000 (21:44 +0000)]
smb: Fixed a problem with large file transfers

Fixed an issue with the message size calculation where the raw bytes
from the buffer were interpreted as signed values rather than unsigned
values.

Reported-by: Gisle Vanem
Assisted-by: Bill Nagel
10 years agosmb: Moved the URL decoding into a separate function
Steve Holme [Sat, 6 Dec 2014 21:02:06 +0000 (21:02 +0000)]
smb: Moved the URL decoding into a separate function

10 years agosmb: Fixed URL encoded URLs not working
Steve Holme [Sat, 6 Dec 2014 20:46:54 +0000 (20:46 +0000)]
smb: Fixed URL encoded URLs not working

10 years agoMakefile.inc: Added our standard header and updated file formatting
Steve Holme [Sat, 6 Dec 2014 19:51:32 +0000 (19:51 +0000)]
Makefile.inc: Added our standard header and updated file formatting

10 years agoMakefile.inc: Updated file formatting
Steve Holme [Sat, 6 Dec 2014 19:44:29 +0000 (19:44 +0000)]
Makefile.inc: Updated file formatting

Aligned continuation character and used space as the separator
character as per other makefile files.