Message 0x06
Handshake / Auth Response
| Type | Description | Offset |
| uint32_t | packet type | 0 |
| uint16_t | unknown_1 | 4 |
| uint16_t | errorid | 6 |
| uint32_t | subtype | 8 |
| uint8_t | unknown_2 | 12 |
| uint8_t* | encryption_key | 12 |
Note: variably sized packet. encryption_key is only valid for subtype & 4.
The client makes uses of a set of flags and a bitwise AND on the subtype to determine what to do with this packet.
The following is a list of these flags:
| ID | Description |
| 0x01 | server requests client disconnection |
| 0x02 | client authenticated as administrator |
| 0x04 | handshake succeeded, encryption_key is valid at this point |
| 0x10 | unknown, please provide us with a packetlog |
| 0x20 | unknown, please provide us with a packetlog |
| 0x40 | client supplied an incorrect password |
| 0x100 | unknown, please provide us with a packetlog |
| 0x200 | server has been disabled, errorid specifies why |
| 0x400 | unknown, please provide us with a packetlog |
Error IDs for subtype & 200 and their corresponding messages:
| ID | Description |
| 1 | This server has not been authenticated yet. Please try connecting again in a few minutes. |
| 2 | This server has not been configured properly. Please contact your hosting company. |
| 3 | This server has been remotely disabled. |
| 4 | This server has been disabled by order of the Department of Homeland Security. |
| 5 | This server has been disabled by order of the Federal Bureau of Investigation. |
| 6 | This server has been disabled by order of the United States Government. |
| 7 | This server has been disabled by order of the United States Secret Service. |
| 8 | This server has been disabled by order of the goverment in which the server is hosted. |
| 9 | This server has been disabled by order of the United States Military. |
