diff options
author | Peter Powell <petpow@saberuk.com> | 2019-10-28 13:17:32 +0000 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2019-11-03 19:05:52 +0000 |
commit | 78a72b90b0213f774d3a65de093c9b61f2abe210 (patch) | |
tree | 5c284d9190bde56965719ef6c321984c7e618c88 | |
parent | f28161a652482717c57ecf7e2696c63833db6975 (diff) |
Use case insensitive comparisons when checking for SSL rehashes.
-rw-r--r-- | src/modules/extra/m_ssl_gnutls.cpp | 2 | ||||
-rw-r--r-- | src/modules/extra/m_ssl_mbedtls.cpp | 2 | ||||
-rw-r--r-- | src/modules/extra/m_ssl_openssl.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/extra/m_ssl_gnutls.cpp b/src/modules/extra/m_ssl_gnutls.cpp index 80c076148..a3690faae 100644 --- a/src/modules/extra/m_ssl_gnutls.cpp +++ b/src/modules/extra/m_ssl_gnutls.cpp @@ -1359,7 +1359,7 @@ class ModuleSSLGnuTLS : public Module void OnModuleRehash(User* user, const std::string ¶m) CXX11_OVERRIDE { - if(param != "ssl") + if (!irc::equals(param, "ssl")) return; try diff --git a/src/modules/extra/m_ssl_mbedtls.cpp b/src/modules/extra/m_ssl_mbedtls.cpp index c4c1906a1..5c7bcf9fa 100644 --- a/src/modules/extra/m_ssl_mbedtls.cpp +++ b/src/modules/extra/m_ssl_mbedtls.cpp @@ -926,7 +926,7 @@ class ModuleSSLmbedTLS : public Module void OnModuleRehash(User* user, const std::string ¶m) CXX11_OVERRIDE { - if (param != "ssl") + if (!irc::equals(param, "ssl")) return; try diff --git a/src/modules/extra/m_ssl_openssl.cpp b/src/modules/extra/m_ssl_openssl.cpp index 221a3076a..08316f196 100644 --- a/src/modules/extra/m_ssl_openssl.cpp +++ b/src/modules/extra/m_ssl_openssl.cpp @@ -1049,7 +1049,7 @@ class ModuleSSLOpenSSL : public Module void OnModuleRehash(User* user, const std::string ¶m) CXX11_OVERRIDE { - if (param != "ssl") + if (!irc::equals(param, "ssl")) return; try |