diff options
Diffstat (limited to 'libexec/telnetd/termstat.c')
-rw-r--r-- | libexec/telnetd/termstat.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/libexec/telnetd/termstat.c b/libexec/telnetd/termstat.c index a3f6931..25124a0 100644 --- a/libexec/telnetd/termstat.c +++ b/libexec/telnetd/termstat.c @@ -181,25 +181,6 @@ localstat() tty_setlinemode(uselinemode); } -#ifdef ENCRYPTION - /* - * If the terminal is not echoing, but editing is enabled, - * something like password input is going to happen, so - * if we the other side is not currently sending encrypted - * data, ask the other side to start encrypting. - */ - if (his_state_is_will(TELOPT_ENCRYPT)) { - static int enc_passwd = 0; - if (uselinemode && !tty_isecho() && tty_isediting() - && (enc_passwd == 0) && !decrypt_input) { - encrypt_send_request_start(); - enc_passwd = 1; - } else if (enc_passwd) { - encrypt_send_request_end(); - enc_passwd = 0; - } - } -#endif /* ENCRYPTION */ /* * Do echo mode handling as soon as we know what the |