CMSG AUTH SESSION: Difference between revisions
Jump to navigation
Jump to search
(Created page with "'''CMSG_AUTH_SESSION''' is a World Packet that initiates the connection between the client and the world server. It is one of only two world packets with unencrypted head...") |
(Add CMSG header template) |
||
Line 2: | Line 2: | ||
It is one of only two world packets with unencrypted headers, the other being [[SMSG_AUTH_CHALLENGE]]. | It is one of only two world packets with unencrypted headers, the other being [[SMSG_AUTH_CHALLENGE]]. | ||
{{CMSG_Header}} | |||
{| class="wikitable" | {| class="wikitable" |
Revision as of 18:53, 23 May 2021
CMSG_AUTH_SESSION is a World Packet that initiates the connection between the client and the world server.
It is one of only two world packets with unencrypted headers, the other being SMSG_AUTH_CHALLENGE.
Offset | Size / Endianness | Type | Name | Description |
---|---|---|---|---|
0x0 | 2 / Big | uint16 | size | Size of the packet including the opcode field. |
0x2 | 4 / Little | uint32 | opcode | Opcode for the packet. Determines the structure of the body. |
Offset | Size / Endianness | Type | Name | Description |
---|---|---|---|---|
0x0 | 4 / Little | uint32 | build | Revision of client. |
0x4 | 4 / Little | uint32 | server_id | |
0x8 | - / Big | char[] | username | Null terminated string. |
- | 4 / Little | uint32 | client_seed | Client seed for proving knowledge of session key. |
- | 20 / Little | uint8[20] | client_proof | Client proof of knowing the session key. |
- | 4 / Little | uint32 | decompressed_addon_info_size | |
- | 4 / Little | uint8[] | compressed_addon_info | This field lasts until the end of the packet. The size of this can be calculated from the size field in the header. |