trigger keystroke timing obfucation only if the channels layer enqueud
authordjm <djm@openbsd.org>
Mon, 4 Sep 2023 00:08:14 +0000 (00:08 +0000)
committerdjm <djm@openbsd.org>
Mon, 4 Sep 2023 00:08:14 +0000 (00:08 +0000)
commit03ebfdcdb1ca729ce924154b1f3c9997872b763e
tree724002e0948f34f3d431b445c8af36a2ee3a4f67
parent3353d14d40236d27dafd66194e0cdfa8ef6547d1
trigger keystroke timing obfucation only if the channels layer enqueud
some data in the last poll() cycle; this avoids triggering the
obfuscatior for non-channels data like ClientAlive probes and also
fixes a related problem were the obfucations would be triggered on
fully quiescent connections.

Based on / tested by naddy@
usr.bin/ssh/clientloop.c