--- varnish.module 2010-09-13 23:09:22.000000000 +0200 +++ varnish.module 2010-09-13 23:09:25.000000000 +0200 @@ -207,6 +207,7 @@ function _varnish_terminal_run($command) // Do we need to authenticate? if ($status['code'] == 107) { // Require authentication + $secret = variable_get('varnish_control_key', ''); $challenge = substr($status['msg'], 0, 32); $pack = $challenge ."\x0A". $secret ."\x0A". $challenge ."\x0A"; $key = hash('sha256', $pack);