]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/extra/m_ssl_mbedtls.cpp
Fix whitelist check for a badchan redirect (#1676).
[user/henk/code/inspircd.git] / src / modules / extra / m_ssl_mbedtls.cpp
index 8c15342f22820ceedaa95a66a61f76c0c03b418e..75b25fbc43b579f60797847d6b7bd6e6c7426d6b 100644 (file)
@@ -410,12 +410,12 @@ namespace mbedTLS
                                , dhstr(ReadFile(tag->getString("dhfile", "dhparams.pem")))
                                , ciphersuitestr(tag->getString("ciphersuites"))
                                , curvestr(tag->getString("curves"))
-                               , mindh(tag->getInt("mindhbits", 2048))
+                               , mindh(tag->getUInt("mindhbits", 2048))
                                , hashstr(tag->getString("hash", "sha256"))
                                , castr(tag->getString("cafile"))
-                               , minver(tag->getInt("minver"))
-                               , maxver(tag->getInt("maxver"))
-                               , outrecsize(tag->getInt("outrecsize", 2048, 512, 16384))
+                               , minver(tag->getUInt("minver", 0))
+                               , maxver(tag->getUInt("maxver", 0))
+                               , outrecsize(tag->getUInt("outrecsize", 2048, 512, 16384))
                                , requestclientcert(tag->getBool("requestclientcert", true))
                        {
                                if (!castr.empty())
@@ -876,7 +876,7 @@ class ModuleSSLmbedTLS : public Module
                for (ConfigIter i = tags.first; i != tags.second; ++i)
                {
                        ConfigTag* tag = i->second;
-                       if (tag->getString("provider") != "mbedtls")
+                       if (!stdalgo::string::equalsci(tag->getString("provider"), "mbedtls"))
                                continue;
 
                        std::string name = tag->getString("name");