Block profiles with revoked keys from joining auth-only servers.

This commit is contained in:
Paul Chote
2020-04-15 12:57:09 +01:00
committed by abcdefg30
parent 471fc44751
commit 429dbe3e0c

View File

@@ -499,10 +499,16 @@ namespace OpenRA.Server
profile.ProfileName, profile.ProfileID);
}
else if (profile.KeyRevoked)
{
profile = null;
Log.Write("server", "{0} failed to authenticate as {1} (key revoked)", newConn.Socket.RemoteEndPoint, handshake.Fingerprint);
}
else
{
profile = null;
Log.Write("server", "{0} failed to authenticate as {1} (signature verification failed)",
newConn.Socket.RemoteEndPoint, handshake.Fingerprint);
}
}
else
Log.Write("server", "{0} failed to authenticate as {1} (invalid server response: `{2}` is not `Player`)",