]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_sasl.cpp
Include connection security with the SASL host information.
[user/henk/code/inspircd.git] / src / modules / m_sasl.cpp
index 5afab9502147ce9e4a73e482ca222bdfc39b5445..0ef93ec5ae66476923dfe7eaded192dba54711df 100644 (file)
@@ -99,6 +99,15 @@ class SaslAuthenticator
                params.push_back(host);
                params.push_back(ip);
 
+               LocalUser* lu = IS_LOCAL(user);
+               if (lu)
+               {
+                       // NOTE: SaslAuthenticator instances are only created for local
+                       // users so this parameter will always be appended.
+                       SocketCertificateRequest req(&lu->eh, ServerInstance->Modules->Find("m_sasl.so"));
+                       params.push_back(req.cert ? "S" : "P");
+               }
+
                SendSASL(params);
        }