OpenTTD Source
20241121-master-g67a0fccfad
|
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. More... | |
virtual bool | IsAllowed (std::string_view peer_public_key) const =0 |
Check whether the given public key of the peer is allowed in. More... | |
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.