forked from mirror/OpenTTD
Feature: admin support for password authentication without sending password
Using either password authenticated key exchange (PAKE) or authorized keys
This commit is contained in:
@@ -325,6 +325,7 @@ struct NetworkSettings {
|
||||
std::string rcon_password; ///< password for rconsole (server side)
|
||||
NetworkAuthorizedKeys rcon_authorized_keys; ///< Public keys of clients that are authorized to use the rconsole (server side).
|
||||
std::string admin_password; ///< password for the admin network
|
||||
NetworkAuthorizedKeys admin_authorized_keys; ///< Public keys of clients that are authorized to use the admin network.
|
||||
std::string client_name; ///< name of the player (as client)
|
||||
std::string client_secret_key; ///< The secret key of the client for authorized key logins.
|
||||
std::string client_public_key; ///< The public key of the client for authorized key logins.
|
||||
@@ -341,6 +342,8 @@ struct NetworkSettings {
|
||||
std::string last_joined; ///< Last joined server
|
||||
UseRelayService use_relay_service; ///< Use relay service?
|
||||
ParticipateSurvey participate_survey; ///< Participate in the automated survey
|
||||
|
||||
bool AdminAuthenticationConfigured() const { return !this->admin_password.empty() || !this->admin_authorized_keys.empty(); }
|
||||
};
|
||||
|
||||
/** Settings related to the creation of games. */
|
||||
|
Reference in New Issue
Block a user