OpenTTD Source  20241108-master-g80f628063a
NetworkAuthenticationPasswordRequestHandler Class Referenceabstract

Callback interface for client implementations to provide the handling of the password requests. More...

#include <network_crypto.h>

Inheritance diagram for NetworkAuthenticationPasswordRequestHandler:
NetworkAuthenticationPasswordRequest ClientGamePasswordRequestHandler TestPasswordRequestHandler

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
 

Detailed Description

Callback interface for client implementations to provide the handling of the password requests.

Definition at line 84 of file network_crypto.h.

Member Function Documentation

◆ AskUserForPassword()

virtual void NetworkAuthenticationPasswordRequestHandler::AskUserForPassword ( std::shared_ptr< NetworkAuthenticationPasswordRequest request)
pure virtual

Callback to trigger asking the user for the password.

Parameters
requestThe request to the user, to which it can reply with the password.

Implemented in TestPasswordRequestHandler, and ClientGamePasswordRequestHandler.


The documentation for this class was generated from the following files: