]> err.no Git - varnish/commitdiff
Add a parameter to enable SHA256 hashing.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 25 Nov 2008 11:09:38 +0000 (11:09 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Tue, 25 Nov 2008 11:09:38 +0000 (11:09 +0000)
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
varnish-cache/bin/varnishd/mgt_param.c

index 8be6f7af8b7a187f2722af51defbc7a9ba30d844..7a7c21931047683b8d94756bdabec280186b4767 100644 (file)
@@ -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;
 
index 1d30724852217b93b9e27b2eab02a8d7ca6eebe3..b361a0bc44b6efc5319b52098a8682c9cfeb8c18 100644 (file)
@@ -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,