]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/extra/m_ssl_openssl.cpp
Change this to use our md5 provider rather than MD5() in the query
[user/henk/code/inspircd.git] / src / modules / extra / m_ssl_openssl.cpp
index ca690fb8f5e976f64f0edf3951af9a0b7180787c..f46f04988c96da37e7c5849356cbeb1588287b8b 100644 (file)
@@ -133,10 +133,10 @@ class ModuleSSLOpenSSL : public Module
                SSL_CTX_set_verify(ctx, SSL_VERIFY_PEER | SSL_VERIFY_CLIENT_ONCE, OnVerify);
 
                // Needs the flag as it ignores a plain /rehash
-               OnRehash("ssl");
+               OnRehash(NULL,"ssl");
        }
        
-       virtual void OnRehash(const std::string &param)
+       virtual void OnRehash(userrec* user, const std::string &param)
        {
                if (param != "ssl")
                        return;
@@ -297,7 +297,8 @@ class ModuleSSLOpenSSL : public Module
                                ServerInstance->Config->DelIOHook(listenports[i]);
                                for (unsigned int j = 0; j < ServerInstance->stats->BoundPortCount; j++)
                                        if (ServerInstance->Config->ports[j] == listenports[i])
-                                               ServerInstance->Config->openSockfd[j]->SetDescription("plaintext");
+                                               if (ServerInstance->Config->openSockfd[j])
+                                                       ServerInstance->Config->openSockfd[j]->SetDescription("plaintext");
                        }
                }
        }