OpenTTD Source  20241121-master-g67a0fccfad
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 std::string_view GetPassword () const =0
 Callback to return the password where to validate against. More...
 

Detailed Description

Callback interface for server implementations to provide the current password.

Definition at line 109 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: