From af8effe4f0876d6fa934806745712f679bd36278 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 24 Jan 2023 23:41:50 +0000 Subject: Replace getInt/getUInt/getFloat with type safe templated functions. --- 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 fbeb52e3b..53afb0ed3 100644 --- a/src/modules/m_pbkdf2.cpp +++ b/src/modules/m_pbkdf2.cpp @@ -185,8 +185,8 @@ class ModulePBKDF2 final // First set the common values const auto& tag = ServerInstance->Config->ConfValue("pbkdf2"); ProviderConfig newglobal; - newglobal.iterations = tag->getUInt("iterations", 12288, 1); - newglobal.dkey_length = tag->getUInt("length", 32, 1, 1024); + newglobal.iterations = tag->getNum("iterations", 12288, 1); + newglobal.dkey_length = tag->getNum("length", 32, 1, 1024); // Then the specific values ProviderConfigMap newconfigs; @@ -195,8 +195,8 @@ class ModulePBKDF2 final std::string hash_name = "hash/" + ptag->getString("hash"); ProviderConfig& config = newconfigs[hash_name]; - config.iterations = ptag->getUInt("iterations", newglobal.iterations, 1); - config.dkey_length = ptag->getUInt("length", newglobal.dkey_length, 1, 1024); + config.iterations = ptag->getNum("iterations", newglobal.iterations, 1); + config.dkey_length = ptag->getNum("length", newglobal.dkey_length, 1, 1024); } // Config is valid, apply it -- cgit v1.3.1-10-gc9f91