OpenTTD Source 20241224-master-gf74b0cf984
|
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. | |
virtual NetworkAuthenticationMethod | GetAuthenticationMethod () const =0 |
Get the method this handler is providing functionality for. | |
virtual std::unique_ptr< NetworkEncryptionHandler > | CreateClientToServerEncryptionHandler () const =0 |
Create a NetworkEncryptionHandler to encrypt or decrypt messages from the client to the server. | |
virtual std::unique_ptr< NetworkEncryptionHandler > | CreateServerToClientEncryptionHandler () const =0 |
Create a NetworkEncryptionHandler to encrypt or decrypt messages from the server to the client. | |
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 X25519KeyExchangeOnlyClientHandler, X25519KeyExchangeOnlyServerHandler, X25519PAKEClientHandler, X25519PAKEServerHandler, X25519AuthorizedKeyClientHandler, X25519AuthorizedKeyServerHandler, CombinedAuthenticationClientHandler, and CombinedAuthenticationServerHandler.
Referenced by CombinedAuthenticationClientHandler::CreateClientToServerEncryptionHandler().
|
pure virtual |
Create a NetworkEncryptionHandler to encrypt or decrypt messages from the server to the client.
Implemented in X25519KeyExchangeOnlyClientHandler, X25519KeyExchangeOnlyServerHandler, X25519PAKEClientHandler, X25519PAKEServerHandler, X25519AuthorizedKeyClientHandler, X25519AuthorizedKeyServerHandler, CombinedAuthenticationClientHandler, and CombinedAuthenticationServerHandler.
Referenced by CombinedAuthenticationClientHandler::CreateServerToClientEncryptionHandler().
|
pure virtual |
Get the method this handler is providing functionality for.
NetworkAuthenticationMethod
. Implemented in X25519KeyExchangeOnlyClientHandler, X25519KeyExchangeOnlyServerHandler, X25519PAKEClientHandler, X25519PAKEServerHandler, X25519AuthorizedKeyClientHandler, X25519AuthorizedKeyServerHandler, CombinedAuthenticationClientHandler, and CombinedAuthenticationServerHandler.
Referenced by CombinedAuthenticationClientHandler::GetAuthenticationMethod().
|
pure virtual |
Get the name of the handler for debug messages.
Implemented in X25519KeyExchangeOnlyClientHandler, X25519KeyExchangeOnlyServerHandler, X25519PAKEClientHandler, X25519PAKEServerHandler, X25519AuthorizedKeyClientHandler, X25519AuthorizedKeyServerHandler, CombinedAuthenticationClientHandler, and CombinedAuthenticationServerHandler.
Referenced by CombinedAuthenticationClientHandler::GetName().