]> git.ipfire.org Git - thirdparty/squid.git/log
thirdparty/squid.git
11 years agoFix typo in rev.13840
Amos Jeffries [Tue, 13 Jan 2015 05:09:18 +0000 (21:09 -0800)] 
Fix typo in rev.13840

11 years agoWindows: auto-detect InetNtopA and InetPtonA
Amos Jeffries [Tue, 13 Jan 2015 04:53:25 +0000 (20:53 -0800)] 
Windows: auto-detect InetNtopA and InetPtonA

Also, add missing wrapper definition for inet_pton()

11 years agoPorted ACLStringData from Splay to std::set<SBuf>
Francesco Chemolli [Mon, 12 Jan 2015 21:22:00 +0000 (22:22 +0100)] 
Ported ACLStringData from Splay to std::set<SBuf>

11 years agoMerged from trunk
Francesco Chemolli [Mon, 12 Jan 2015 15:55:56 +0000 (16:55 +0100)] 
Merged from trunk

11 years agoImprove proxy_acl mgr:config output
Francesco Chemolli [Mon, 12 Jan 2015 15:53:58 +0000 (16:53 +0100)] 
Improve proxy_acl mgr:config output

11 years agoPortability: skip redefinition of inet_ntop/inet_pton
Amos Jeffries [Mon, 12 Jan 2015 14:27:01 +0000 (06:27 -0800)] 
Portability: skip redefinition of inet_ntop/inet_pton

... even if ./configure detects their absence they may be pulled in from
elsewhere. Such as our own compat/os/ headers (eg. on Windows).

11 years agoFix acl formatting in config CacheMgr action
Francesco Chemolli [Mon, 12 Jan 2015 13:24:52 +0000 (14:24 +0100)] 
Fix acl formatting in config CacheMgr action

11 years agoSmall debugs improvements
Francesco Chemolli [Mon, 12 Jan 2015 12:06:38 +0000 (13:06 +0100)] 
Small debugs improvements

11 years agoMerged from trunk
Francesco Chemolli [Mon, 12 Jan 2015 08:35:36 +0000 (09:35 +0100)] 
Merged from trunk

11 years agosquidclient: Fix -A and -P options
Amos Jeffries [Mon, 12 Jan 2015 08:11:06 +0000 (00:11 -0800)] 
squidclient: Fix -A and -P options

With --https addition the A and P values are re-used for --cert and
--params within HTTPS options. This works for long options, but they
cannot be listed as short options by the Transport:: module because
they are required at the top level by old-style HTTP parameters.

11 years agoInterim: Userdata migrated, but issues with parsing
Francesco Chemolli [Sun, 11 Jan 2015 20:30:01 +0000 (21:30 +0100)] 
Interim: Userdata migrated, but issues with parsing

11 years agoSource Layout: shuffle HttpServer to Http1::Server
Amos Jeffries [Fri, 9 Jan 2015 00:33:37 +0000 (16:33 -0800)] 
Source Layout: shuffle HttpServer to Http1::Server

No logic changes. Just class and namespace renaming.

11 years agoUpdate IPC sockets verification check
Amos Jeffries [Thu, 8 Jan 2015 23:41:52 +0000 (15:41 -0800)] 
Update IPC sockets verification check

Coverity Scan gets confused by the code trick of using memset() on a
buffer then filling arbitrary string data into all but the final byte of
that buffer - thus implicitly null terminating.

Try an explicit null termination instead of memset(), this should make
Coverity a bit happier and is also faster than zero'ing the entire buf.

Coverity Issue 1258700

11 years agoWorkaround several Coverity scan false positives
Amos Jeffries [Thu, 8 Jan 2015 23:27:17 +0000 (15:27 -0800)] 
Workaround several Coverity scan false positives

Coverity gets confused by SBuf::npos value used as implicit append()
length parameter for special case when SBuf is required to call strlen()

Remove some unnecesary uses of that overloaded form of append().

11 years agocachemgr.cgi: memory leak in request parser
Amos Jeffries [Thu, 8 Jan 2015 23:06:40 +0000 (15:06 -0800)] 
cachemgr.cgi: memory leak in request parser

Leaks a block of memory for each header parsed the size of the header.

The CGI is rarely operating for long periods, it is run as-needed by
servers so the memory leak does not accumulate long term.

  Detectd by Coverity Scan. Issue 1256164

11 years agocachemgr.cgi: exit on base64 decode failures
Amos Jeffries [Thu, 8 Jan 2015 23:00:40 +0000 (15:00 -0800)] 
cachemgr.cgi: exit on base64 decode failures

  Detected by Coverity Scan. Issue 1261431

11 years agosquidclient: Fix incorrect use of delete on GSSAPI tokens
Amos Jeffries [Thu, 8 Jan 2015 22:56:44 +0000 (14:56 -0800)] 
squidclient: Fix incorrect use of delete on GSSAPI tokens

  Detected by Coverity Scan. Issue 1261432

11 years agontlm_fake_auth: fix null pointer dereference
Amos Jeffries [Thu, 8 Jan 2015 22:47:22 +0000 (14:47 -0800)] 
ntlm_fake_auth: fix null pointer dereference

 Detected by Coverity Scan. Issue 1261433

11 years agoBug 3760: fix typo in earlier patch
Amos Jeffries [Thu, 8 Jan 2015 22:11:24 +0000 (14:11 -0800)] 
Bug 3760: fix typo in earlier patch

11 years agoAdd warning when user acl is REQUIRED but still contains users
Francesco Chemolli [Thu, 8 Jan 2015 09:49:54 +0000 (10:49 +0100)] 
Add warning when user acl is REQUIRED but still contains users

11 years agoPorted ACLUserData, to be finished
Francesco Chemolli [Wed, 7 Jan 2015 18:06:15 +0000 (19:06 +0100)] 
Ported ACLUserData, to be finished

11 years agoFixed leak in ACLARP::parse
Francesco Chemolli [Wed, 7 Jan 2015 10:58:53 +0000 (11:58 +0100)] 
Fixed leak in ACLARP::parse

11 years agoMerged from trunk
Francesco Chemolli [Wed, 7 Jan 2015 10:45:25 +0000 (11:45 +0100)] 
Merged from trunk

11 years agoMigrated acl/Eui64
Francesco Chemolli [Wed, 7 Jan 2015 10:41:24 +0000 (11:41 +0100)] 
Migrated acl/Eui64

11 years agoFix assertions inserting duplicate values into a splay
Amos Jeffries [Wed, 7 Jan 2015 10:00:25 +0000 (02:00 -0800)] 
Fix assertions inserting duplicate values into a splay

... loading ACLs with duplicate values is quite common.

11 years agoSourceFormat Enforcement
Source Maintenance [Wed, 7 Jan 2015 00:12:06 +0000 (00:12 +0000)] 
SourceFormat Enforcement

11 years agoMerged from trunk
Francesco Chemolli [Tue, 6 Jan 2015 22:57:14 +0000 (23:57 +0100)] 
Merged from trunk

11 years agoFix splay-related issues
Francesco Chemolli [Tue, 6 Jan 2015 21:05:37 +0000 (22:05 +0100)] 
Fix splay-related issues

In several cases Splay data membes would not be properly initialized in ACL and MemPools code
A duplicate IP ACL value would cause an assert.

11 years agoMerged from trunk
Francesco Chemolli [Tue, 6 Jan 2015 17:54:51 +0000 (18:54 +0100)] 
Merged from trunk

11 years agoMigrated ARP acl to std::map
Francesco Chemolli [Tue, 6 Jan 2015 17:45:21 +0000 (18:45 +0100)] 
Migrated ARP acl to std::map

11 years agoFix segfault in proxy_auth ACL parsing after rev.13810
Amos Jeffries [Tue, 6 Jan 2015 10:25:51 +0000 (02:25 -0800)] 
Fix segfault in proxy_auth ACL parsing after rev.13810

11 years agoTurn c++11 initializer lists into explicit constructors
Francesco Chemolli [Mon, 5 Jan 2015 21:48:36 +0000 (22:48 +0100)] 
Turn c++11 initializer lists into explicit constructors

Only fairly recent versions of gcc and clang support well c++11-style
initializer lists; reverting to traditional constructors obtains
better portability at the price of less readable code.
This changeset can be reverted after RHEL/CentOS 6, Debian Wheezy and
Ubuntu Precise will not be supported anymore.

11 years agoFix autoconf test for -Wno-deprecated-register
Francesco Chemolli [Mon, 5 Jan 2015 17:44:21 +0000 (18:44 +0100)] 
Fix autoconf test for -Wno-deprecated-register

11 years agoFix sSQUID_CC_REQUIRE_ARGUMENT autoconf macro
Francesco Chemolli [Mon, 5 Jan 2015 17:43:20 +0000 (18:43 +0100)] 
Fix sSQUID_CC_REQUIRE_ARGUMENT autoconf macro

11 years agotypo in rev.13819
Amos Jeffries [Mon, 5 Jan 2015 10:01:47 +0000 (02:01 -0800)] 
typo in rev.13819

11 years agonegotiate_kerberos_auth: fix token decode typo in rev.13785
Markus Moeller [Mon, 5 Jan 2015 09:57:06 +0000 (01:57 -0800)] 
negotiate_kerberos_auth: fix token decode typo in rev.13785

11 years agoSourceFormat Enforcement
Source Maintenance [Sun, 4 Jan 2015 12:12:05 +0000 (12:12 +0000)] 
SourceFormat Enforcement

11 years agoSourceLayout: sort configure.ac Makefile list
Amos Jeffries [Sun, 4 Jan 2015 10:12:19 +0000 (02:12 -0800)] 
SourceLayout: sort configure.ac Makefile list

11 years agoImproved automake 1.13+ support in unit-tests
Amos Jeffries [Sun, 4 Jan 2015 07:40:55 +0000 (23:40 -0800)] 
Improved automake 1.13+ support in unit-tests

Automake 1.13+ are warning about subdir-objects being enabled in
future versions but Squid currently relies on several environment
constructs that prevent that feature from working.

* All cppunit tests share a main() implementation in testMain.cc
  which is not able to easily be built as a .o from locations
  such as compat/.

  Fix this by making the code to include/unitTestMain.h and
  including it as an inline main() definition for all cppunit
  tests core .cc files.

* lib/testAll unit test

  Fix by splitting out into multiple unit-test binaries as is done
  by the rest of Squid. And removing duplicate testMain.cc.

* lib/ and src/ objects link to objects in child directories

  Enable subdir-objects when possible. Some remain due to
  depending on stubs files in the not yet created src/tests/ build
  directory. That will be fixed in a future commit.

11 years agoFixed -Wno-deprecated-register detection
kinkie@buildmaster.squid-cache.org [Sat, 3 Jan 2015 21:25:56 +0000 (21:25 +0000)] 
Fixed -Wno-deprecated-register detection

11 years agoFix typo on commStartSslClose
Francesco Chemolli [Sat, 3 Jan 2015 20:55:21 +0000 (21:55 +0100)] 
Fix typo on commStartSslClose

11 years agoClang on CentOS needs -Wno-deprecated-register
Amos Jeffries [Sat, 3 Jan 2015 15:37:56 +0000 (07:37 -0800)] 
Clang on CentOS needs -Wno-deprecated-register

11 years agoSourceFormat Enforcement
Source Maintenance [Sat, 3 Jan 2015 12:12:04 +0000 (12:12 +0000)] 
SourceFormat Enforcement

11 years agoAdd missing include after rev.13808
Amos Jeffries [Sat, 3 Jan 2015 12:04:40 +0000 (04:04 -0800)] 
Add missing include after rev.13808

11 years agoMerge splayfix branch
Francesco Chemolli [Sat, 3 Jan 2015 10:42:48 +0000 (11:42 +0100)] 
Merge splayfix branch

11 years agoMerged from trunk
Francesco Chemolli [Sat, 3 Jan 2015 09:59:51 +0000 (10:59 +0100)] 
Merged from trunk

11 years agoSource Maintenance
Amos Jeffries [Sat, 3 Jan 2015 08:08:23 +0000 (00:08 -0800)] 
Source Maintenance

11 years agoBug 3760: squidclient ignores --disable-ipv6
Amos Jeffries [Sat, 3 Jan 2015 08:01:50 +0000 (00:01 -0800)] 
Bug 3760: squidclient ignores --disable-ipv6

11 years agoMade Splay::elements private
Francesco Chemolli [Fri, 2 Jan 2015 19:31:49 +0000 (20:31 +0100)] 
Made Splay::elements private

11 years agoFixed typo
Francesco Chemolli [Fri, 2 Jan 2015 17:56:20 +0000 (18:56 +0100)] 
Fixed typo

11 years agoMerged from trunk
Francesco Chemolli [Fri, 2 Jan 2015 17:36:55 +0000 (18:36 +0100)] 
Merged from trunk

11 years agoFixed never-true tests in testRefCount
Francesco Chemolli [Fri, 2 Jan 2015 17:35:49 +0000 (18:35 +0100)] 
Fixed never-true tests in testRefCount

11 years agoUpdated DelayTagged and DelayUser from SplayNode to Splay API
Francesco Chemolli [Fri, 2 Jan 2015 17:13:46 +0000 (18:13 +0100)] 
Updated DelayTagged and DelayUser from SplayNode to Splay API

11 years agoMerged from trunk
Francesco Chemolli [Fri, 2 Jan 2015 15:50:07 +0000 (16:50 +0100)] 
Merged from trunk

11 years agoInterim: removed needless spacing and c++ guards, started fixing DelayTagged accessin...
Francesco Chemolli [Fri, 2 Jan 2015 15:46:35 +0000 (16:46 +0100)] 
Interim: removed needless spacing and c++ guards, started fixing DelayTagged accessing SplayNodes, prevented Splay leaks on several ACL types

11 years agoRemoved useless (this==NULL) checks
Francesco Chemolli [Fri, 2 Jan 2015 15:38:19 +0000 (16:38 +0100)] 
Removed useless (this==NULL) checks

11 years agoMerged from trunk
Francesco Chemolli [Fri, 2 Jan 2015 13:37:05 +0000 (14:37 +0100)] 
Merged from trunk

11 years agoRemoved some never-true assertions
Francesco Chemolli [Fri, 2 Jan 2015 13:32:49 +0000 (14:32 +0100)] 
Removed some never-true assertions

clang uncovered several conditionals which could never be true.
Removed the conditionals entirely.

11 years agoBug 3664: ssl_crtd fails to build on OpenSolaris/OpenIndiana/Solaris 11
Andrew Evdokimov [Fri, 2 Jan 2015 13:20:24 +0000 (05:20 -0800)] 
Bug 3664: ssl_crtd fails to build on OpenSolaris/OpenIndiana/Solaris 11

11 years agoBug 3754: configure doesnt detect IPFilter 5.1.2 system headers
Amos Jeffries [Fri, 2 Jan 2015 13:15:24 +0000 (05:15 -0800)] 
Bug 3754: configure doesnt detect IPFilter 5.1.2 system headers

Solaris 10+ bundles IPFilter code natively, but the IPFilter
headers contain a duplicate definition of minor_t which does
not match the existing OS definition.

The result is that no applications (such as Squid) will build
on Solaris with the natively provided headers.

Also, the upstream IPFilter code separate from Solaris contains
the same minor_t definition so building against a separate
install of IPFilter does not fix the issue.

We must instead play fancy games #define'ing minor_t to a
different real-name for the OS headers and its own name for
the IPFilter headers.

 Thanks to Yuri Voinov for sponsoring the Solaris 10
 machine and environment resources for this fix.

11 years agoRemoved now useless assertions
Francesco Chemolli [Fri, 2 Jan 2015 10:08:20 +0000 (11:08 +0100)] 
Removed now useless assertions

11 years agoFixed unit tests
Francesco Chemolli [Fri, 2 Jan 2015 10:02:05 +0000 (11:02 +0100)] 
Fixed unit tests

11 years agoFixed Splay::insert
Francesco Chemolli [Fri, 2 Jan 2015 10:00:35 +0000 (11:00 +0100)] 
Fixed Splay::insert

11 years agoMerged from trunk
Francesco Chemolli [Fri, 2 Jan 2015 09:07:07 +0000 (10:07 +0100)] 
Merged from trunk

11 years agoAdded correct NULL check in Splay::find
Francesco Chemolli [Fri, 2 Jan 2015 09:04:54 +0000 (10:04 +0100)] 
Added correct NULL check in Splay::find

11 years agoRemoved useless C symbols
Francesco Chemolli [Fri, 2 Jan 2015 08:23:11 +0000 (09:23 +0100)] 
Removed useless C symbols

11 years agoSourceFormat Enforcement
Source Maintenance [Fri, 2 Jan 2015 06:12:06 +0000 (06:12 +0000)] 
SourceFormat Enforcement

11 years agoFix several uninitilized member issues
Amos Jeffries [Fri, 2 Jan 2015 04:13:30 +0000 (20:13 -0800)] 
Fix several uninitilized member issues

* Digest auth header field-value parser

* HTTP header statistics state data

* logformat parser token data

11 years agoRelease Notes: updates for MSNT helpers
Amos Jeffries [Fri, 2 Jan 2015 03:37:55 +0000 (19:37 -0800)] 
Release Notes: updates for MSNT helpers

11 years agoCleanup: fix most 'unused parameter' warnings
Amos Jeffries [Thu, 1 Jan 2015 08:57:18 +0000 (00:57 -0800)] 
Cleanup: fix most 'unused parameter' warnings

... and several bugs hidden by lack of this check:

* url_rewrite_timeout parser/dumper using wrong cf.data.pre
  parameter definition.

* url_rewrite_timeout parser/dumper using wrong object for
  state data.
  Global a Config object instead of parameter object.
  Preventing future use of multiple Config objects. There is
  more to be done as the Timeout value itself is not stored
  as part of the object apparently detailing the timeout.

* request_header_add directive dump() omitting directive
  name in mgr:config output.

* dead code as HTCP packet handlers for NOP, MON, SET

* mime icons download operation incorrectly initialized.
  was using the 'view' access parameter to set download
  access permission.

* peerCountHandleIcpReply() assertions testing validity
  after pointers already used. This would lead to segfault
  on errors, now leading to assertion logging.

Only the default built code was checked and updated at this
time. There are 62 known warnings still appearing due to
parameters being only used inside conditional code, possibly
more issues in code not enabled in this build and certainly
a lot more in the stubs and unit tests which were not checked.

11 years agoSplayNode::SPLAYFREE -> Splay::SPLAYFREE
Francesco Chemolli [Wed, 31 Dec 2014 08:51:04 +0000 (09:51 +0100)] 
SplayNode::SPLAYFREE -> Splay::SPLAYFREE

11 years agoSplayNode::SPLAYFREE -> Splay::SPLAYFREE
Francesco Chemolli [Wed, 31 Dec 2014 08:48:55 +0000 (09:48 +0100)] 
SplayNode::SPLAYFREE -> Splay::SPLAYFREE

11 years agoRestored splay NULL checks. Things break without them
Francesco Chemolli [Wed, 31 Dec 2014 08:45:23 +0000 (09:45 +0100)] 
Restored splay NULL checks. Things break without them

11 years agoFixed uninitialized data member in Acl::Ip
Francesco Chemolli [Wed, 31 Dec 2014 08:23:53 +0000 (09:23 +0100)] 
Fixed uninitialized data member in Acl::Ip

11 years agoFixed Acl::CertificateData
Francesco Chemolli [Wed, 31 Dec 2014 07:50:14 +0000 (08:50 +0100)] 
Fixed Acl::CertificateData

11 years agoMerged from trunk
Francesco Chemolli [Wed, 31 Dec 2014 07:34:12 +0000 (08:34 +0100)] 
Merged from trunk

11 years agontlm_sspi_auth: convert to new base64 API
Amos Jeffries [Wed, 31 Dec 2014 05:20:28 +0000 (21:20 -0800)] 
ntlm_sspi_auth: convert to new base64 API

11 years agonegotiate_sspi_auth: fix various build errors
Amos Jeffries [Wed, 31 Dec 2014 04:11:16 +0000 (20:11 -0800)] 
negotiate_sspi_auth: fix various build errors

* fix convenience library dependency detection

* convert to new base64 coding API

* remove goto's

11 years agobasic_sspi_auth: fix MinGW compile errors
Amos Jeffries [Wed, 31 Dec 2014 02:55:22 +0000 (18:55 -0800)] 
basic_sspi_auth: fix MinGW compile errors

11 years agolibsspwin32: update to new base64 API
Amos Jeffries [Wed, 31 Dec 2014 02:52:18 +0000 (18:52 -0800)] 
libsspwin32: update to new base64 API

11 years agoInterim: remove SplayNode this==NULL checks
Francesco Chemolli [Tue, 30 Dec 2014 23:12:49 +0000 (00:12 +0100)] 
Interim: remove SplayNode this==NULL checks

11 years agoCosmetic change in mem_hdr_test.cc
Francesco Chemolli [Tue, 30 Dec 2014 22:55:20 +0000 (23:55 +0100)] 
Cosmetic change in mem_hdr_test.cc

11 years agoFixed Acl::UserData
Francesco Chemolli [Tue, 30 Dec 2014 22:52:53 +0000 (23:52 +0100)] 
Fixed Acl::UserData

11 years agoCosmetic changes to src/stmem
Francesco Chemolli [Tue, 30 Dec 2014 22:39:43 +0000 (23:39 +0100)] 
Cosmetic changes to src/stmem

11 years agoFixed Acl::StringData
Francesco Chemolli [Tue, 30 Dec 2014 22:27:34 +0000 (23:27 +0100)] 
Fixed Acl::StringData

11 years agoFixed Acl::Ip
Francesco Chemolli [Tue, 30 Dec 2014 22:13:01 +0000 (23:13 +0100)] 
Fixed Acl::Ip

11 years agoFixed Acl::HttpStatus
Francesco Chemolli [Tue, 30 Dec 2014 21:58:43 +0000 (22:58 +0100)] 
Fixed Acl::HttpStatus

11 years agoFixed Eui::Eui64::encode stub
Francesco Chemolli [Tue, 30 Dec 2014 21:47:57 +0000 (22:47 +0100)] 
Fixed Eui::Eui64::encode stub

11 years agoSourceFormat Enforcement
Source Maintenance [Tue, 30 Dec 2014 18:12:05 +0000 (18:12 +0000)] 
SourceFormat Enforcement

11 years agoMigrated acl/Eui64 to Splay
Francesco Chemolli [Tue, 30 Dec 2014 16:52:25 +0000 (17:52 +0100)] 
Migrated acl/Eui64 to Splay

11 years agoMigrated acl/DomainData to Splay
Francesco Chemolli [Tue, 30 Dec 2014 16:05:48 +0000 (17:05 +0100)] 
Migrated acl/DomainData to Splay

11 years agoFixed handling of invalid SSL server certificates when splicing connections.
Christos Tsantilas [Tue, 30 Dec 2014 15:33:40 +0000 (17:33 +0200)] 
Fixed handling of invalid SSL server certificates when splicing connections.

An unpatched Squid in peek-and-splice mode may splice connections after
receiving a malformed or unsupported SSL server Hello message. This may
happen even if sslproxy_cert_error tells Squid to honor the error. After
this change, Squid honors sslproxy_cert_error setting when:

* no server certificate was found and checked using Squid validation procedure
  (e.g., because the SSL server Hello response was malformed or unsupported); or
* Squid server certificate validation procedure has failed.

If the certificate error is not allowed, Squid terminates the server connection
and attempts to bump the client connection to deliver the error message to the
user.

This is a Measurement Factory project

11 years agoMerged from trunk
Francesco Chemolli [Tue, 30 Dec 2014 14:59:16 +0000 (15:59 +0100)] 
Merged from trunk

11 years agoFix 'field precision specifier '.*' expects argument of type 'int'
Amos Jeffries [Tue, 30 Dec 2014 14:37:32 +0000 (06:37 -0800)] 
Fix 'field precision specifier '.*' expects argument of type 'int'

11 years agoReworked acl/Arp to use Splay instead of SplayNode
Francesco Chemolli [Tue, 30 Dec 2014 14:24:28 +0000 (15:24 +0100)] 
Reworked acl/Arp to use Splay instead of SplayNode

11 years agontlm_smb_lm_auth: fix compile errors after rev.13785
Amos Jeffries [Tue, 30 Dec 2014 14:24:28 +0000 (06:24 -0800)] 
ntlm_smb_lm_auth: fix compile errors after rev.13785

11 years agoAdded default arguments to Splay::destroy
Francesco Chemolli [Tue, 30 Dec 2014 14:23:21 +0000 (15:23 +0100)] 
Added default arguments to Splay::destroy
Added documentation to Splay::find
Added Splay::empty()
Removed obsolete tests in test-suite/splay.cc

11 years agontlm_fake_auth: fix compile errors after rev.13785
Amos Jeffries [Tue, 30 Dec 2014 14:07:54 +0000 (06:07 -0800)] 
ntlm_fake_auth: fix compile errors after rev.13785

11 years agoFix 64-bit compile issues in rev.13785
Amos Jeffries [Tue, 30 Dec 2014 13:40:33 +0000 (05:40 -0800)] 
Fix 64-bit compile issues in rev.13785

The Nettle 3.0 library API imported and used by rev.13785 defines
function symbols with size_t parameters where earlier libraries used
'unsigned'. This matters on 64-bit systems where unsigned is a 'int'
and size_t a 'long' - implicit conversion is not possible.

Explicitly detect the size_t API existence during ./configure time and
use the built-in logics if supplied Nettle library is an older version.

11 years agoSourceFormat Enforcement
Source Maintenance [Tue, 30 Dec 2014 12:12:03 +0000 (12:12 +0000)] 
SourceFormat Enforcement