diff options
author | Attila Molnar <attilamolnar@hush.com> | 2015-01-18 10:40:33 +0100 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2015-01-18 10:40:33 +0100 |
commit | 4fc2f7199e964ba5112ecdb2613c6fd5c2eee638 (patch) | |
tree | bf2469f00fd4dfeaa07c0ab431a9663952cf17b7 /src/modules/m_sslinfo.cpp | |
parent | 4b6f7d789333dd9fd3b08f8742a68c0f9c6c2254 (diff) |
Specify which Extensible subclass an ExtensionItem is valid for
Diffstat (limited to 'src/modules/m_sslinfo.cpp')
-rw-r--r-- | src/modules/m_sslinfo.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/modules/m_sslinfo.cpp b/src/modules/m_sslinfo.cpp index c354e4e0e..f861f1236 100644 --- a/src/modules/m_sslinfo.cpp +++ b/src/modules/m_sslinfo.cpp @@ -22,7 +22,11 @@ class SSLCertExt : public ExtensionItem { public: - SSLCertExt(Module* parent) : ExtensionItem("ssl_cert", parent) {} + SSLCertExt(Module* parent) + : ExtensionItem("ssl_cert", ExtensionItem::EXT_USER, parent) + { + } + ssl_cert* get(const Extensible* item) const { return static_cast<ssl_cert*>(get_raw(item)); |