mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-18 18:02:37 +01:00
Codechange: create helper class for useful NetworkAuthorizedKeys functions
This commit is contained in:
@@ -423,14 +423,6 @@ void CombinedAuthenticationServerHandler::Add(CombinedAuthenticationServerHandle
|
||||
this->SendResponse();
|
||||
}
|
||||
|
||||
/* virtual */ bool NetworkAuthenticationDefaultAuthorizedKeyHandler::IsAllowed(std::string_view peer_public_key) const
|
||||
{
|
||||
for (const auto &allowed : *this->authorized_keys) {
|
||||
if (StrEqualsIgnoreCase(allowed, peer_public_key)) return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Create a NetworkAuthenticationClientHandler.
|
||||
|
||||
Reference in New Issue
Block a user