function setHash($hash = 'sha1') { if ($hash != 'sha1') { throw new UnsupportedAlgorithmException('ssh-agent can only be used with the sha1 hash'); } }