diff options
| author | 2024-02-19 18:46:05 +0000 | |
|---|---|---|
| committer | 2024-02-19 18:46:05 +0000 | |
| commit | ebd03383f856bfaa72b1700a96561396e6f8f6cc (patch) | |
| tree | 47651f7a9c8567ae020c6b8750db58a7d3c2da2b /src/modules/m_sasl.cpp | |
| parent | Fix more issues with the v3 compat layer. (diff) | |
Allow using multiple SSL fingerprint algorithms.
Closes #1804.
Diffstat (limited to 'src/modules/m_sasl.cpp')
| -rw-r--r-- | src/modules/m_sasl.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
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<std::string> 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); } |
