]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_pbkdf2.cpp
Add ConfigTag::getUInt for reading unsigned config values.
[user/henk/code/inspircd.git] / src / modules / m_pbkdf2.cpp
index 8b1346c845659bbd71ff0f5e082f8d3d2987f6ed..89bc39ef4cf8e40f13ef59b8d833e991fa949f0b 100644 (file)
@@ -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);
                        }
                }
        }