2024-10-22 16:40:16 -04:00
|
|
|
# Introduction
|
|
|
|
`CHL` is a command introduced with [MSNP6](../versions/msnp6.md).
|
|
|
|
|
|
|
|
It is a Notification Server command, without a request or response payload.
|
|
|
|
|
2024-10-26 06:56:17 -04:00
|
|
|
A request to generate or solve a challenge.
|
|
|
|
Respond correctly with [QRY](qry.md) on a new transaction to continue your connection.
|
2024-10-22 16:40:16 -04:00
|
|
|
|
|
|
|
# Client/Request
|
|
|
|
`CHL TrID`
|
|
|
|
|
|
|
|
# Server/Response
|
|
|
|
`CHL TrID challenge`
|
|
|
|
|
|
|
|
If this command is sent asynchronously, the Transaction ID will be `0` instead.
|
|
|
|
|
|
|
|
Where `challenge` is usually a 20-character numeric value (but can be any valid string)
|
2024-10-23 16:47:02 -04:00
|
|
|
that is concatenated with the client's Private Key.
|
2024-10-22 16:40:16 -04:00
|
|
|
|
|
|
|
# Examples
|
|
|
|
|
2024-12-18 15:16:29 -05:00
|
|
|
## Client-initiated challenge
|
2024-10-22 16:40:16 -04:00
|
|
|
```
|
2024-12-18 15:16:29 -05:00
|
|
|
C: CHL 1
|
|
|
|
S: CHL 1 12345678901234567890
|
2024-10-22 16:40:16 -04:00
|
|
|
```
|
|
|
|
|
2024-12-18 15:16:29 -05:00
|
|
|
## From server at any time
|
2024-10-22 16:40:16 -04:00
|
|
|
```
|
2024-12-18 15:16:29 -05:00
|
|
|
S: CHL 0 12345678901234567890
|
2024-10-22 16:40:16 -04:00
|
|
|
```
|
|
|
|
|
|
|
|
## Challenge timeout
|
|
|
|
```
|
|
|
|
S: CHL 0 12345678901234567890
|
|
|
|
```
|
|
|
|
... some time passes ...
|
|
|
|
```
|
|
|
|
S: OUT
|
|
|
|
```
|
|
|
|
Server disconnects client.
|
|
|
|
|
|
|
|
# Known changes
|
2024-10-26 06:56:17 -04:00
|
|
|
* [MSNP11](../versions/msnp11.md): Changed challenge response ([QRY](qry.md) commands) generation algorithm drastically.
|