summaryrefslogtreecommitdiff
path: root/src/modules/m_sslinfo.cpp
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2010-02-08 22:40:30 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2010-02-08 22:40:30 +0000
commitb7bed41eb90a1c71bf99af1ce7cb0685e5582cf7 (patch)
treef452e27fec12b60b8424a9d12086d1f0b5c0af43 /src/modules/m_sslinfo.cpp
parent7cf132bc6a8251ad2d7ee73cdf5f019fe18d11a0 (diff)
SSL certificate requests prior to full registration must use SocketCertificateRequest
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12402 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_sslinfo.cpp')
-rw-r--r--src/modules/m_sslinfo.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/modules/m_sslinfo.cpp b/src/modules/m_sslinfo.cpp
index 9ad742416..19b6160cc 100644
--- a/src/modules/m_sslinfo.cpp
+++ b/src/modules/m_sslinfo.cpp
@@ -193,15 +193,16 @@ class ModuleSSLInfo : public Module
ModResult OnSetConnectClass(LocalUser* user, ConnectClass* myclass)
{
- ssl_cert* cert = cmd.CertExt.get(user);
+ SocketCertificateRequest req(&user->eh, this);
+ req.Send();
bool ok = true;
if (myclass->config->getBool("requiressl"))
{
- ok = (cert != NULL);
+ ok = (req.cert != NULL);
}
else if (myclass->config->getString("requiressl") == "trusted")
{
- ok = (cert && cert->IsCAVerified());
+ ok = (req.cert && req.cert->IsCAVerified());
}
if (!ok)