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:
@@ -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('=');
|
||||
|
||||
Reference in New Issue
Block a user