summaryrefslogtreecommitdiffstats
path: root/usr.bin/telnet/terminal.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/telnet/terminal.c')
-rw-r--r--usr.bin/telnet/terminal.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/usr.bin/telnet/terminal.c b/usr.bin/telnet/terminal.c
index b6d3b86..6e3cf69 100644
--- a/usr.bin/telnet/terminal.c
+++ b/usr.bin/telnet/terminal.c
@@ -205,29 +205,12 @@ getconnmode()
setconnmode(force)
int force;
{
-#ifdef ENCRYPTION
- static int enc_passwd = 0;
-#endif /* ENCRYPTION */
register int newmode;
newmode = getconnmode()|(force?MODE_FORCE:0);
TerminalNewMode(newmode);
-#ifdef ENCRYPTION
- if ((newmode & (MODE_ECHO|MODE_EDIT)) == MODE_EDIT) {
- if (my_want_state_is_will(TELOPT_ENCRYPT)
- && (enc_passwd == 0) && !encrypt_output) {
- encrypt_request_start(0, 0);
- enc_passwd = 1;
- }
- } else {
- if (enc_passwd) {
- encrypt_request_end();
- enc_passwd = 0;
- }
- }
-#endif /* ENCRYPTION */
}
OpenPOWER on IntegriCloud