diff options
| author | 2021-05-10 16:10:14 +0100 | |
|---|---|---|
| committer | 2021-05-10 20:09:55 +0100 | |
| commit | 73695c4fde78a2fde0ca8badc05890d4c11a0ce5 (patch) | |
| tree | 04bd67979656c49d74ca13b730857997f4782a71 /src/modules/m_spanningtree/hmac.cpp | |
| parent | Use the contents of the link data map when using the 1206 protocol. (diff) | |
Refactor the Base64 encoding and decoding functions.
Diffstat (limited to 'src/modules/m_spanningtree/hmac.cpp')
| -rw-r--r-- | src/modules/m_spanningtree/hmac.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_spanningtree/hmac.cpp b/src/modules/m_spanningtree/hmac.cpp index b86f6d088..c97e9a49b 100644 --- a/src/modules/m_spanningtree/hmac.cpp +++ b/src/modules/m_spanningtree/hmac.cpp @@ -62,7 +62,7 @@ std::string TreeSocket::MakePass(const std::string &password, const std::string */ HashProvider* sha256 = ServerInstance->Modules.FindDataService<HashProvider>("hash/sha256"); if (sha256 && !challenge.empty()) - return "AUTH:" + BinToBase64(sha256->hmac(password, challenge)); + return "AUTH:" + Base64::Encode(sha256->hmac(password, challenge)); if (!challenge.empty() && !sha256) ServerInstance->Logs.Log(MODNAME, LOG_DEFAULT, "Not authenticating to server using SHA256/HMAC because we don't have an SHA256 provider (e.g. the sha2 module) loaded!"); |
