OpenTTD Source
20241121-master-g67a0fccfad
|
Default implementation of the password provider. More...
#include <network_crypto.h>
Public Member Functions | |
NetworkAuthenticationDefaultPasswordProvider (const std::string &password) | |
Create the provider with the pointer to the password that is to be used. More... | |
std::string_view | GetPassword () const override |
Callback to return the password where to validate against. More... | |
Private Attributes | |
const std::string * | password |
The password to check against. | |
Default implementation of the password provider.
Definition at line 123 of file network_crypto.h.
|
inline |
Create the provider with the pointer to the password that is to be used.
A pointer, so this can handle situations where the password gets changed over time.
password | The reference to the configured password. |
Definition at line 132 of file network_crypto.h.
|
inlineoverridevirtual |
Callback to return the password where to validate against.
std::string_view
of the current password; an empty view means no password check will be performed. Implements NetworkAuthenticationPasswordProvider.
Definition at line 134 of file network_crypto.h.
References password.