diff options
| author | Geoff Rehmet <csgr@FreeBSD.org> | 1994-08-12 23:00:04 +0000 |
|---|---|---|
| committer | Geoff Rehmet <csgr@FreeBSD.org> | 1994-08-12 23:00:04 +0000 |
| commit | 46592ab983f60f66ed17dfb79c707eaacbbc5a9c (patch) | |
| tree | 3a50a770ca5b1d6b1812d9ba0693543499e6a269 /libexec/telnetd/termstat.c | |
| parent | daf079cb540ea2eca50991a9adf3f9ebd0e6887c (diff) | |
Remove the scary bits from telnetd - no more encryption left here.
Only crypt.c in libc remains.
Reviewed by: Geoff Rehmet
Notes
svn path=/head/; revision=2054
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 a3f69312217f..25124a039386 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 |
