1
0
mirror of https://github.com/anope/anope.git synced 2026-07-08 04:23:14 +02:00

Move B64{Decode,Encode} to textproc and redesign their interface.

This commit is contained in:
Sadie Powell
2025-08-08 12:27:28 +01:00
parent e5c5689985
commit 70de2b7de2
9 changed files with 29 additions and 39 deletions
+1 -2
View File
@@ -1121,8 +1121,7 @@ struct IRCDMessageCapab final
if (challenge.empty() || !sha256)
return Config->Uplinks[Anope::CurrentUplink].password;
Anope::string b64challenge;
Anope::B64Encode(sha256->HMAC(Config->Uplinks[Anope::CurrentUplink].password, challenge), b64challenge);
auto b64challenge = Anope::B64Encode(sha256->HMAC(Config->Uplinks[Anope::CurrentUplink].password, challenge));
challenge.clear();
return "AUTH:" + b64challenge.rtrim('=');