Skip to content

Commit

Permalink
fix(pdu): accept unknown capability flags
Browse files Browse the repository at this point in the history
Be tolerant when parsing unknown flags.

Related to:
Devolutions#217

Signed-off-by: Marc-André Lureau <[email protected]>
  • Loading branch information
elmarco committed Nov 13, 2023
1 parent e3a7e21 commit 8f82a33
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/ironrdp-pdu/src/gcc/core_data/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -475,5 +475,7 @@ bitflags! {
const SUPPORT_DYNAMIC_TIME_ZONE = 0x0200;
const SUPPORT_HEART_BEAT_PDU = 0x0400;
const SUPPORT_SKIP_CHANNELJOIN = 0x0800;
// The source may set any bits
const _ = !0;
}
}
2 changes: 2 additions & 0 deletions crates/ironrdp-pdu/src/gcc/core_data/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,5 +94,7 @@ bitflags! {
const DYNAMIC_DST_SUPPORTED = 0x0000_0002;
const EDGE_ACTIONS_SUPPORTED_V2 = 0x0000_0004;
const SKIP_CHANNELJOIN_SUPPORTED = 0x0000_0008;
// The source may set any bits
const _ = !0;
}
}

0 comments on commit 8f82a33

Please sign in to comment.