aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Sadie Powell2025-10-26 14:57:51 +0000
committerGravatar Sadie Powell2025-10-26 15:04:22 +0000
commita05abef182846dfe06ee91d1c77838aa78b8049c (patch)
tree705bfc36d240228980027d2d8b1ba32891a3872b /src
parentCheck all fingerprints for server links not just the primary one. (diff)
Deprecate the contents of the SSLClientCert namespace.
This is full of footguns and isn't really needed.
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_sslinfo.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/modules/m_sslinfo.cpp b/src/modules/m_sslinfo.cpp
index b38931871..4a1f73f74 100644
--- a/src/modules/m_sslinfo.cpp
+++ b/src/modules/m_sslinfo.cpp
@@ -161,7 +161,11 @@ public:
if (!luser || nosslext.Get(luser))
return nullptr;
- cert = SSLClientCert::GetCertificate(&luser->eh);
+ auto* ssliohook = SSLIOHook::IsSSL(&luser->eh);
+ if (!ssliohook)
+ return nullptr;
+
+ cert = ssliohook->GetCertificate();
if (!cert)
return nullptr;