|
OpenTTD Source 20251116-master-g21329071df
|
Callback interface for server implementations to provide the authorized key validation. More...
#include <network_crypto.h>
Public Member Functions | |
| virtual bool | CanBeUsed () const =0 |
| Check whether the key handler can be used, i.e. | |
| virtual bool | IsAllowed (std::string_view peer_public_key) const =0 |
| Check whether the given public key of the peer is allowed in. | |
Callback interface for server implementations to provide the authorized key validation.
Definition at line 140 of file network_crypto.h.
|
pure virtual |
Check whether the key handler can be used, i.e.
whether there are authorized keys to check against.
true when it can be used, otherwise false. Implemented in NetworkAuthenticationDefaultAuthorizedKeyHandler.
Referenced by X25519AuthorizedKeyServerHandler::CanBeUsed().
|
pure virtual |
Check whether the given public key of the peer is allowed in.
| peer_public_key | The public key of the peer to check against. |
true when the key is allowed, otherwise false. Implemented in NetworkAuthenticationDefaultAuthorizedKeyHandler.
Referenced by X25519AuthorizedKeyServerHandler::ReceiveResponse().