OpenTTD Source 20241224-master-gf74b0cf984
|
Callback interface for client implementations to provide the handling of the password requests. More...
#include <network_crypto.h>
Public Member Functions | |
virtual void | Reply (const std::string &password) override |
Reply to the request with the given password. | |
virtual void | SendResponse ()=0 |
Callback to trigger sending the response for the password request. | |
virtual void | AskUserForPassword (std::shared_ptr< NetworkAuthenticationPasswordRequest > request)=0 |
Callback to trigger asking the user for the password. | |
Protected Attributes | |
std::string | password |
The entered password. | |
Friends | |
class | X25519PAKEClientHandler |
Callback interface for client implementations to provide the handling of the password requests.
Definition at line 84 of file network_crypto.h.
|
pure virtual |
Callback to trigger asking the user for the password.
request | The request to the user, to which it can reply with the password. |
Implemented in ClientGamePasswordRequestHandler, and TestPasswordRequestHandler.
|
overridevirtual |
Reply to the request with the given password.
Implements NetworkAuthenticationPasswordRequest.
Definition at line 440 of file network_crypto.cpp.
References password, and SendResponse().
|
pure virtual |
Callback to trigger sending the response for the password request.
Implemented in ClientGamePasswordRequestHandler, and TestPasswordRequestHandler.
Referenced by Reply().
|
friend |
Definition at line 86 of file network_crypto.h.
|
protected |