summaryrefslogtreecommitdiff
path: root/src/modules/m_pbkdf2.cpp
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2018-04-14 15:43:03 +0100
committerPeter Powell <petpow@saberuk.com>2018-04-16 15:29:55 +0100
commit780dda83ba3857bc3c330d4b5d38bb251a9d879b (patch)
tree75034915142a3e1362f0f9d59c8e96e1eec22931 /src/modules/m_pbkdf2.cpp
parent2d36fcb16ef3209fffbe9f4b600971a1edd2ae4b (diff)
Add ConfigTag::getUInt for reading unsigned config values.
Diffstat (limited to 'src/modules/m_pbkdf2.cpp')
-rw-r--r--src/modules/m_pbkdf2.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/m_pbkdf2.cpp b/src/modules/m_pbkdf2.cpp
index 8b1346c84..89bc39ef4 100644
--- a/src/modules/m_pbkdf2.cpp
+++ b/src/modules/m_pbkdf2.cpp
@@ -147,8 +147,8 @@ class ModulePBKDF2 : public Module
{
// First set the common values
ConfigTag* tag = ServerInstance->Config->ConfValue("pbkdf2");
- unsigned int global_iterations = tag->getInt("iterations", 12288, 1);
- unsigned int global_dkey_length = tag->getInt("length", 32, 1, 1024);
+ unsigned int global_iterations = tag->getUInt("iterations", 12288, 1);
+ unsigned int global_dkey_length = tag->getUInt("length", 32, 1, 1024);
for (std::vector<PBKDF2Provider*>::iterator i = providers.begin(); i != providers.end(); ++i)
{
PBKDF2Provider* pi = *i;
@@ -168,8 +168,8 @@ class ModulePBKDF2 : public Module
if (pi->provider->name != hash_name)
continue;
- pi->iterations = tag->getInt("iterations", global_iterations, 1);
- pi->dkey_length = tag->getInt("length", global_dkey_length, 1, 1024);
+ pi->iterations = tag->getUInt("iterations", global_iterations, 1);
+ pi->dkey_length = tag->getUInt("length", global_dkey_length, 1, 1024);
}
}
}