when deciding whether to enable keystroke timing obfuscation,
authordjm <djm@openbsd.org>
Wed, 15 Nov 2023 22:51:49 +0000 (22:51 +0000)
committerdjm <djm@openbsd.org>
Wed, 15 Nov 2023 22:51:49 +0000 (22:51 +0000)
commit1ee271ea2fe2c34df3cee4571464ff50fb7515b4
tree9f26b0c3595f8fcdf3284454fc6f16147b1a67c9
parent0930cb9293866d47da09cff04448e4d8d4be0cc5
when deciding whether to enable keystroke timing obfuscation,
only consider enabling it when a channel with a tty is open.

Avoids turning on the obfucation when X11 forwarding only is in use,
which slows it right down. Reported by Roger Marsh
usr.bin/ssh/channels.c
usr.bin/ssh/channels.h
usr.bin/ssh/clientloop.c