From 49385a98b2878ae6f19dd0925e0dc90fcc3d6372 Mon Sep 17 00:00:00 2001 From: Sebastian Köhler Date: Thu, 2 Aug 2012 13:53:46 +0200 Subject: Implemented hashed cloaked hostnames for +x CloakHostModeX can now contain '%x'. It will be replace by the hash of the original client hostname. The new config option CloakHostModeXSalt defines the salt for the hash function. When CloakHostModeXSalt is not set a random salt will be generated after each server restart. Spelling fix in defines.h --- src/tool/tool.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/tool/tool.h') diff --git a/src/tool/tool.h b/src/tool/tool.h index 60a65379..9fa19e55 100644 --- a/src/tool/tool.h +++ b/src/tool/tool.h @@ -32,6 +32,8 @@ GLOBAL void ngt_TrimStr PARAMS((char *String )); GLOBAL char *ngt_UpperStr PARAMS((char *String )); GLOBAL char *ngt_LowerStr PARAMS((char *String )); +GLOBAL char *ngt_RandomStr PARAMS((char *String, const size_t len)); + #ifdef SYSLOG GLOBAL const char *ngt_SyslogFacilityName PARAMS((int Facility)); GLOBAL int ngt_SyslogFacilityID PARAMS((char *Name, int DefaultFacility)); -- cgit 1.4.1