From ebd03383f856bfaa72b1700a96561396e6f8f6cc Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Mon, 19 Feb 2024 18:46:05 +0000 Subject: Allow using multiple SSL fingerprint algorithms. Closes #1804. --- src/modules/m_sasl.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/modules/m_sasl.cpp') diff --git a/src/modules/m_sasl.cpp b/src/modules/m_sasl.cpp index ac2b4dd4e..61f529643 100644 --- a/src/modules/m_sasl.cpp +++ b/src/modules/m_sasl.cpp @@ -200,9 +200,11 @@ public: std::vector params; params.push_back(method); - const std::string fp = sslapi ? sslapi->GetFingerprint(user) : ""; - if (!fp.empty()) - params.push_back(fp); + if (sslapi) + { + for (const auto& fingerprint : sslapi->GetFingerprints(user)) + params.push_back(fingerprint); + } SendSASL(user, "*", 'S', params); } -- cgit v1.3.1-10-gc9f91