diff options
author | DukePyrolator <DukePyrolator@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-11-02 05:22:35 +0000 |
---|---|---|
committer | DukePyrolator <DukePyrolator@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-11-02 05:22:35 +0000 |
commit | 9a0b1efc24e84c7cf17a0e87c98fd1e22fe1c356 (patch) | |
tree | 3abf675a834d23b9064dce2333f7a2e5d0df336a /src/config.c | |
parent | d2362719b256f556b862a85dd73a806ccc2faebe (diff) |
added a way to load multiple encryption modules at the same and to switch between encryption methods
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2602 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/config.c')
-rw-r--r-- | src/config.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/config.c b/src/config.c index 89342ff13..f136ffc9a 100644 --- a/src/config.c +++ b/src/config.c @@ -23,7 +23,6 @@ ServerConfig serverConfig; /* Configurable variables: */ char *IRCDModule; -char *EncModule; std::list<Uplink *> Uplinks; @@ -206,6 +205,10 @@ int ModulesNumber; /** * Core Module Stuff **/ +char **EncModuleList; +char *EncModules; +int EncModulesNumber; + static char *HostCoreModules; char **HostServCoreModules; int HostServCoreNumber; @@ -831,7 +834,7 @@ int ServerConfig::Read(bool bail) {"networkinfo", "logbot", "no", new ValueContainerBool(&LogBot), DT_BOOLEAN, NoValidation}, {"networkinfo", "networkname", "", new ValueContainerChar(&NetworkName), DT_CHARPTR, ValidateNotEmpty}, {"networkinfo", "nicklen", "0", new ValueContainerUInt(&NickLen), DT_UINTEGER | DT_NORELOAD, ValidateNickLen}, - {"options", "encryption", "", new ValueContainerChar(&EncModule), DT_CHARPTR | DT_NORELOAD, ValidateNotEmpty}, + {"options", "encryption", "", new ValueContainerChar(&EncModules), DT_CHARPTR | DT_NORELOAD, ValidateNotEmpty}, {"options", "userkey1", "0", new ValueContainerLUInt(&UserKey1), DT_LUINTEGER, NoValidation}, {"options", "userkey2", "0", new ValueContainerLUInt(&UserKey2), DT_LUINTEGER, NoValidation}, {"options", "userkey3", "0", new ValueContainerLUInt(&UserKey3), DT_LUINTEGER, NoValidation}, @@ -1907,6 +1910,8 @@ int read_config(int reload) /* Modules Autoload building... :P */ ModulesAutoload = buildStringList(Modules, &ModulesNumber); + EncModuleList = + buildStringList(EncModules ? EncModules : "", &EncModulesNumber); HostServCoreModules = buildStringList(HostCoreModules ? HostCoreModules : "", &HostServCoreNumber); MemoServCoreModules = |