]> source.dussan.org Git - tigervnc.git/commit
Fix RSA-AES state machines
authorPierre Ossman <ossman@cendio.se>
Thu, 5 Jan 2023 08:41:26 +0000 (09:41 +0100)
committerPierre Ossman <ossman@cendio.se>
Thu, 5 Jan 2023 15:42:47 +0000 (16:42 +0100)
commite866c7de65f02ef79ff1090f802a20131a4633df
tree66cf64bdac1d5490e116cbd1ddbdc69a865c090c
parenteb684b9979230bdff3ede1bba7437f839e8cf0bf
Fix RSA-AES state machines

If there isn't enough data, then the client reading the hash will fall
down and try to read the subtype instead, which isn't correct.

Invert the logic so we get a more consistent way through where we only
break out when there is insufficient data.

Do the same for the server code, for consistency.
common/rfb/CSecurityRSAAES.cxx
common/rfb/SSecurityRSAAES.cxx