OpenTTD Source
20241108-master-g80f628063a
|
Base class for cryptographic authentication handlers. More...
#include <network_crypto.h>
Public Member Functions | |
virtual std::string_view | GetName () const =0 |
Get the name of the handler for debug messages. More... | |
virtual NetworkAuthenticationMethod | GetAuthenticationMethod () const =0 |
Get the method this handler is providing functionality for. More... | |
virtual std::unique_ptr< NetworkEncryptionHandler > | CreateClientToServerEncryptionHandler () const =0 |
Create a NetworkEncryptionHandler to encrypt or decrypt messages from the client to the server. More... | |
virtual std::unique_ptr< NetworkEncryptionHandler > | CreateServerToClientEncryptionHandler () const =0 |
Create a NetworkEncryptionHandler to encrypt or decrypt messages from the server to the client. More... | |
Base class for cryptographic authentication handlers.
Definition at line 190 of file network_crypto.h.
|
pure virtual |
Create a NetworkEncryptionHandler to encrypt or decrypt messages from the client to the server.
Implemented in CombinedAuthenticationServerHandler, CombinedAuthenticationClientHandler, X25519AuthorizedKeyServerHandler, X25519AuthorizedKeyClientHandler, X25519PAKEServerHandler, X25519PAKEClientHandler, X25519KeyExchangeOnlyServerHandler, and X25519KeyExchangeOnlyClientHandler.
Referenced by CombinedAuthenticationClientHandler::CreateClientToServerEncryptionHandler().
|
pure virtual |
Create a NetworkEncryptionHandler to encrypt or decrypt messages from the server to the client.
Implemented in CombinedAuthenticationServerHandler, CombinedAuthenticationClientHandler, X25519AuthorizedKeyServerHandler, X25519AuthorizedKeyClientHandler, X25519PAKEServerHandler, X25519PAKEClientHandler, X25519KeyExchangeOnlyServerHandler, and X25519KeyExchangeOnlyClientHandler.
Referenced by CombinedAuthenticationClientHandler::CreateServerToClientEncryptionHandler().
|
pure virtual |
Get the method this handler is providing functionality for.
NetworkAuthenticationMethod
. Implemented in CombinedAuthenticationServerHandler, CombinedAuthenticationClientHandler, X25519AuthorizedKeyServerHandler, X25519AuthorizedKeyClientHandler, X25519PAKEServerHandler, X25519PAKEClientHandler, X25519KeyExchangeOnlyServerHandler, and X25519KeyExchangeOnlyClientHandler.
Referenced by CombinedAuthenticationClientHandler::GetAuthenticationMethod().
|
pure virtual |
Get the name of the handler for debug messages.
Implemented in CombinedAuthenticationServerHandler, CombinedAuthenticationClientHandler, X25519AuthorizedKeyServerHandler, X25519AuthorizedKeyClientHandler, X25519PAKEServerHandler, X25519PAKEClientHandler, X25519KeyExchangeOnlyServerHandler, and X25519KeyExchangeOnlyClientHandler.
Referenced by CombinedAuthenticationClientHandler::GetName().