OpenTTD Source
20241121-master-g67a0fccfad
|
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. More... | |
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 TestPasswordRequestHandler, and ClientGamePasswordRequestHandler.