Skip to content

Commit

Permalink
NHA2: Deserialize the crypto handshake correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
yaakov-h committed Dec 20, 2015
1 parent 3e2702b commit 09d9612
Showing 1 changed file with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,18 @@ static ISteamSerializableHeader ReadHeader(uint rawEMsg, Stream stream)
}
else
{
header = new ExtendedClientMsgHdr();
switch (rawEMsg)
{
case (uint)EMsg.ChannelEncryptRequest:
case (uint)EMsg.ChannelEncryptResponse:
case (uint)EMsg.ChannelEncryptResult:
header = new MsgHdr();
break;

default:
header = new ExtendedClientMsgHdr();
break;
}
}

header.Deserialize(stream);
Expand Down

0 comments on commit 09d9612

Please sign in to comment.