mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-11 17:51:04 +00:00
Network: Remove large parts of deprecated legacy code (#6404)
Also remove the setting 'send_pre_v25_init' Keep old enum entries for obsolete commands
This commit is contained in:
parent
7f2a19da11
commit
ee9a442ecc
17 changed files with 143 additions and 882 deletions
|
@ -454,8 +454,7 @@ void RemoteClient::notifyEvent(ClientStateEvent event)
|
|||
{
|
||||
case CSE_AuthAccept:
|
||||
m_state = CS_AwaitingInit2;
|
||||
if ((chosen_mech == AUTH_MECHANISM_SRP)
|
||||
|| (chosen_mech == AUTH_MECHANISM_LEGACY_PASSWORD))
|
||||
if (chosen_mech == AUTH_MECHANISM_SRP)
|
||||
srp_verifier_delete((SRPVerifier *) auth_data);
|
||||
chosen_mech = AUTH_MECHANISM_NONE;
|
||||
break;
|
||||
|
@ -464,8 +463,7 @@ void RemoteClient::notifyEvent(ClientStateEvent event)
|
|||
break;
|
||||
case CSE_SetDenied:
|
||||
m_state = CS_Denied;
|
||||
if ((chosen_mech == AUTH_MECHANISM_SRP)
|
||||
|| (chosen_mech == AUTH_MECHANISM_LEGACY_PASSWORD))
|
||||
if (chosen_mech == AUTH_MECHANISM_SRP)
|
||||
srp_verifier_delete((SRPVerifier *) auth_data);
|
||||
chosen_mech = AUTH_MECHANISM_NONE;
|
||||
break;
|
||||
|
@ -543,8 +541,7 @@ void RemoteClient::notifyEvent(ClientStateEvent event)
|
|||
break;
|
||||
case CSE_SudoSuccess:
|
||||
m_state = CS_SudoMode;
|
||||
if ((chosen_mech == AUTH_MECHANISM_SRP)
|
||||
|| (chosen_mech == AUTH_MECHANISM_LEGACY_PASSWORD))
|
||||
if (chosen_mech == AUTH_MECHANISM_SRP)
|
||||
srp_verifier_delete((SRPVerifier *) auth_data);
|
||||
chosen_mech = AUTH_MECHANISM_NONE;
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue