diff options
author | csgr <csgr@FreeBSD.org> | 1994-08-12 23:00:04 +0000 |
---|---|---|
committer | csgr <csgr@FreeBSD.org> | 1994-08-12 23:00:04 +0000 |
commit | 0c0aebce48b0192f5a0cef62325da3c458a45b78 (patch) | |
tree | 3a50a770ca5b1d6b1812d9ba0693543499e6a269 /libexec/telnetd/termstat.c | |
parent | a9cb0181e6ef59007ec9ec7f1de7416dd60ab30e (diff) | |
download | FreeBSD-src-0c0aebce48b0192f5a0cef62325da3c458a45b78.zip FreeBSD-src-0c0aebce48b0192f5a0cef62325da3c458a45b78.tar.gz |
Remove the scary bits from telnetd - no more encryption left here.
Only crypt.c in libc remains.
Reviewed by: Geoff Rehmet
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 |