From owner-freebsd-current Thu Mar 22 7: 8:37 2001 Delivered-To: freebsd-current@freebsd.org Received: from assaris.sics.se (assaris.sics.se [193.10.66.234]) by hub.freebsd.org (Postfix) with ESMTP id 501BF37B71D for ; Thu, 22 Mar 2001 07:08:34 -0800 (PST) (envelope-from assar@assaris.sics.se) Received: (from assar@localhost) by assaris.sics.se (8.9.3/8.9.3) id QAA00862; Thu, 22 Mar 2001 16:08:35 +0100 (CET) (envelope-from assar) From: assar@freebsd.org To: Daniel Eischen Cc: current@freebsd.org Subject: Re: telnet broken with auto-negotiation of encrypt/decrypt change References: Date: 22 Mar 2001 16:08:34 +0100 In-Reply-To: Daniel Eischen's message of "Thu, 22 Mar 2001 07:51:07 -0500 (EST)" Message-ID: <5ln1adlu31.fsf@assaris.sics.se> Lines: 46 User-Agent: Gnus/5.070098 (Pterodactyl Gnus v0.98) Emacs/20.6 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Daniel Eischen writes: > As someone else has already posted, the following will reproduce > the behaviour on my system: > > bash-2.02$ telnet localhost > Trying ::1... > Connected to localhost. > Escape character is '^]'. > Trying SRA secure login: > User (deischen): ^C^C^C^C^C^C^C > Password: > [ SRA login failed ] > User (deischen): ^Z > [1]+ Stopped telnet localhost > bash-2.02$ kill -9 13164 > [1]+ Killed telnet localhost > > Once you login and are connected, telnet can then again be escaped > with CTRL-]. Thanks. The problem is with SRA using fgets/getpass for its prompts. The simplest way of fixing this is by disabling SRA with the following patch: /assar Index: secure/lib/libtelnet/Makefile =================================================================== RCS file: /home/ncvs/src/secure/lib/libtelnet/Makefile,v retrieving revision 1.18 diff -u -w -u -w -r1.18 Makefile --- secure/lib/libtelnet/Makefile 2000/07/16 05:52:55 1.18 +++ secure/lib/libtelnet/Makefile 2001/03/22 15:05:50 @@ -3,10 +3,10 @@ LIB= telnet SRCS= genget.c getent.c misc.c encrypt.c auth.c \ - enc_des.c sra.c pk.c + enc_des.c pk.c CFLAGS+= -DHAS_CGETENT -DENCRYPTION -DDES_ENCRYPTION -DAUTHENTICATION \ - -DSRA -I${TELNETDIR} \ + -I${TELNETDIR} \ NOPIC= yes To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message