From 8866896c568c0e2fa3be4fe85d8ed290773e8541 Mon Sep 17 00:00:00 2001 From: phk Date: Tue, 25 Nov 2008 11:09:38 +0000 Subject: [PATCH] Add a parameter to enable SHA256 hashing. This does not do anything yet. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3437 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishd/heritage.h | 3 +++ varnish-cache/bin/varnishd/mgt_param.c | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/varnish-cache/bin/varnishd/heritage.h b/varnish-cache/bin/varnishd/heritage.h index 8be6f7af..7a7c2193 100644 --- a/varnish-cache/bin/varnishd/heritage.h +++ b/varnish-cache/bin/varnishd/heritage.h @@ -174,6 +174,9 @@ struct params { /* Default grace period */ unsigned default_grace; + /* Use sha256 hasing */ + unsigned hash_sha256; + /* Log hash string to shm */ unsigned log_hash; diff --git a/varnish-cache/bin/varnishd/mgt_param.c b/varnish-cache/bin/varnishd/mgt_param.c index 1d307248..b361a0bc 100644 --- a/varnish-cache/bin/varnishd/mgt_param.c +++ b/varnish-cache/bin/varnishd/mgt_param.c @@ -839,6 +839,10 @@ static const struct parspec parspec[] = { "NB: Must be specified with -p to have effect.\n", 0, "8192", "bytes" }, + { "hash_sha256", tweak_bool, &master.hash_sha256, 0, 0, + "Use SHA256 compression of hash-strings", + 0, + "off", "bool" }, { "log_hashstring", tweak_bool, &master.log_hash, 0, 0, "Log the hash string to shared memory log.\n", 0, -- 2.39.5