mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-01 19:46:37 +02:00
cloak_sha256: require cloaking key to be at least 80 characters.
This may also help with people accidentally loading cloak_sha256 when they previously had cloak keys for cloak_md5. [skip ci]
This commit is contained in:
@@ -164,15 +164,15 @@ int cloak_config_test(ConfigFile *cf, ConfigEntry *ce, int type, int *errs)
|
||||
"like \"a2JO6fh3Q6w4oN3s7\"", cep->file->filename, cep->line_number, keycnt);
|
||||
errors++;
|
||||
}
|
||||
if (strlen(cep->name) < 5)
|
||||
if (strlen(cep->name) < 80)
|
||||
{
|
||||
config_error("%s:%i: set::cloak-keys: (key %d) Each key should be at least 5 characters",
|
||||
config_error("%s:%i: set::cloak-keys: (key %d) Each key should be at least 80 characters",
|
||||
cep->file->filename, cep->line_number, keycnt);
|
||||
errors++;
|
||||
}
|
||||
if (strlen(cep->name) > 100)
|
||||
if (strlen(cep->name) > 1000)
|
||||
{
|
||||
config_error("%s:%i: set::cloak-keys: (key %d) Each key should be less than 100 characters",
|
||||
config_error("%s:%i: set::cloak-keys: (key %d) Each key should be less than 1000 characters",
|
||||
cep->file->filename, cep->line_number, keycnt);
|
||||
errors++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user