qrexec: update protocol version negotiation for R4.1

QubesOS/qubes-issues#4909
This commit is contained in:
Marek Marczykowski-Górecki 2019-03-31 14:22:22 +02:00
parent 7849ff0504
commit e3d0ee0643
No known key found for this signature in database
GPG Key ID: F32894BE9684938A

View File

@ -464,11 +464,9 @@ When two peers establish connection, the server sends `MSG_HELLO` followed by
uint32_t version; /* qrexec protocol version */
};
The client then should reply with its own `MSG_HELLO` and `peer_info`. If
protocol versions don't match, the connection is closed.
(*TODO: fallback for backwards compatibility, don't do handshake in the
same domain?*)
The client then should reply with its own `MSG_HELLO` and `peer_info`. The
lower of two versions define protocol used for this connection. If either side
does not support this version, the connection is closed.
Details of all possible use cases and the messages involved are described below.