OpenTTD Source: NetworkAuthenticationPasswordProvider Class Reference

OpenTTD Source 15.0-beta1

Public Member Functions
NetworkAuthenticationPasswordProvider Class Referenceabstract

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

`#include <network_crypto.h>`

Inheritance diagram for NetworkAuthenticationPasswordProvider:

## Public Member Functions
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 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:

- src/network/network_crypto.h