summaryrefslogtreecommitdiff
path: root/src/modules/m_sslinfo.cpp
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2018-10-16 14:57:28 +0100
committerPeter Powell <petpow@saberuk.com>2018-10-25 13:50:43 +0100
commitae0ae8ea617a1a3a3d4f89f5a5e470e8aa262c9f (patch)
tree12eef804c08f55a8dcb9ff2cf1eefbb425df48f0 /src/modules/m_sslinfo.cpp
parentd62c870ffb1bf02e4be65183f3ae4bbe2229fbb2 (diff)
Allow HAProxy to specify that a client is connecting with SSL.
Diffstat (limited to 'src/modules/m_sslinfo.cpp')
-rw-r--r--src/modules/m_sslinfo.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/modules/m_sslinfo.cpp b/src/modules/m_sslinfo.cpp
index 6d0a84249..25415095c 100644
--- a/src/modules/m_sslinfo.cpp
+++ b/src/modules/m_sslinfo.cpp
@@ -147,6 +147,11 @@ class UserCertificateAPIImpl : public UserCertificateAPIBase
{
return ext.get(user);
}
+
+ void SetCertificate(User* user, ssl_cert* cert) CXX11_OVERRIDE
+ {
+ ext.set(user, cert);
+ }
};
class ModuleSSLInfo : public Module, public Whois::EventListener