OpenTTD Source 20260311-master-g511d3794ce
NetworkAuthenticationPasswordProvider Class Referenceabstract

Callback interface for server implementations to provide the current password. More...

#include <network_crypto.h>

Inheritance diagram for NetworkAuthenticationPasswordProvider:
NetworkAuthenticationDefaultPasswordProvider

Public Member Functions

virtual ~NetworkAuthenticationPasswordProvider ()=default
 Ensure the destructor of the sub classes are called as well.
virtual std::string_view GetPassword () const =0
 Callback to return the password where to validate against.

Detailed Description

Callback interface for server implementations to provide the current password.

Definition at line 112 of file network_crypto.h.

Member Function Documentation

◆ GetPassword()

virtual std::string_view NetworkAuthenticationPasswordProvider::GetPassword ( ) const
pure virtual

Callback to return the password where to validate against.

Returns
std::string_view of the current password; an empty view means no password check will be performed.

Implemented in NetworkAuthenticationDefaultPasswordProvider.

Referenced by X25519PAKEServerHandler::CanBeUsed(), and X25519PAKEServerHandler::ReceiveResponse().


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