From 780dda83ba3857bc3c330d4b5d38bb251a9d879b Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Sat, 14 Apr 2018 15:43:03 +0100 Subject: Add ConfigTag::getUInt for reading unsigned config values. --- src/modules/m_pbkdf2.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/modules/m_pbkdf2.cpp') 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::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); } } } -- cgit v1.2.3