Skip to content

Commit

Permalink
Add protocol version enum, with protocol changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
marmarek committed May 18, 2019
1 parent e124178 commit 19b0142
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions libqrexec/qrexec.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,28 @@
#define NOGUI_CMD_PREFIX_LEN (sizeof(NOGUI_CMD_PREFIX)-1)
#define VCHAN_BASE_PORT 512

/* protocol version */
enum {
/* legacy protocol, without version negotiation support
* Qubes < R3.0
*/
QREXEC_PROTOCOL_V1 = 1,

/* Changes:
* - separate data and control channels
* - handshake with protocol version
* Qubes R3.0 - R4.0
*/
QREXEC_PROTOCOL_V2 = 2,

/* Changes:
* - MAX_DATA_CHUNK increased to 64k
* - MSG_TRIGGER_SERVICE3
* Qubes >= R4.1
*/
QREXEC_PROTOCOL_V3 = 3,
};

/* Messages sent over control vchan between daemon(dom0) and agent(vm).
* The same are used between client(dom0) and daemon(dom0).
*/
Expand Down

0 comments on commit 19b0142

Please sign in to comment.