Skip to content

Commit

Permalink
Update AuthenticationHandler.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
Shauren authored Jan 17, 2025
1 parent d1e6d24 commit 5ba02d0
Showing 1 changed file with 6 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,41 +7,32 @@ namespace WowPacketParserModule.V11_0_0_55666.Parsers
{
public static class AuthenticationHandler
{
[Parser(Opcode.SMSG_AUTH_CHALLENGE)]
[Parser(Opcode.SMSG_AUTH_CHALLENGE, ClientVersionBuild.V11_0_7_58123)]
public static void HandleServerAuthChallenge(Packet packet)
{
for (uint i = 0; i < 8; ++i)
packet.ReadUInt32("DosChallenge", i);
if (ClientVersion.RemovedInVersion(ClientVersionBuild.V11_0_7_58123))
packet.ReadBytes("Challenge", 16);
if (ClientVersion.AddedInVersion(ClientVersionBuild.V11_0_7_58123))
packet.ReadBytes("Challenge", 32);
packet.ReadBytes("Challenge", 32);
packet.ReadByte("DosZeroBits");
}

[Parser(Opcode.CMSG_AUTH_CONTINUED_SESSION)]
[Parser(Opcode.CMSG_AUTH_CONTINUED_SESSION, ClientVersionBuild.V11_0_7_58123)]
public static void HandleRedirectAuthProof(Packet packet)
{
packet.ReadInt64("DosResponse");
packet.ReadInt64("Key");
if (ClientVersion.RemovedInVersion(ClientVersionBuild.V11_0_7_58123))
packet.ReadBytes("LocalChallenge", 16);
if (ClientVersion.AddedInVersion(ClientVersionBuild.V11_0_7_58123))
packet.ReadBytes("LocalChallenge", 32);
packet.ReadBytes("LocalChallenge", 32);
packet.ReadBytes("Digest", 24);
}

[Parser(Opcode.CMSG_AUTH_SESSION)]
[Parser(Opcode.CMSG_AUTH_SESSION, ClientVersionBuild.V11_0_7_58123)]
public static void HandleAuthSession(Packet packet)
{
packet.ReadUInt64("DosResponse");
packet.ReadUInt32("RegionID");
packet.ReadUInt32("BattlegroupID");
packet.ReadUInt32("RealmID");
if (ClientVersion.RemovedInVersion(ClientVersionBuild.V11_0_7_58123))
packet.ReadBytes("LocalChallenge", 16);
if (ClientVersion.AddedInVersion(ClientVersionBuild.V11_0_7_58123))
packet.ReadBytes("LocalChallenge", 32);
packet.ReadBytes("LocalChallenge", 32);
packet.ReadBytes("Digest", 24);
packet.ReadBit("UseIPv6");

Expand Down

0 comments on commit 5ba02d0

Please sign in to comment.