From 875226fe661f37375273de263d1d871c13abb213 Mon Sep 17 00:00:00 2001 From: Unknown User d91-jda Date: Thu, 13 Jul 1995 14:02:06 +0000 Subject: [PATCH] Only ouput warnig about "connection not encrypted" if decrypt_input != NULL git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@42 ec53bebd-3082-4978-b11e-865c3cabbd6b --- appl/telnet/telnetd/sys_term.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/appl/telnet/telnetd/sys_term.c b/appl/telnet/telnetd/sys_term.c index f440e39c6..9fe1843ce 100644 --- a/appl/telnet/telnetd/sys_term.c +++ b/appl/telnet/telnetd/sys_term.c @@ -1402,9 +1402,13 @@ startslave(host, autologin, autoname) #endif { - char *tbuf = -"\r\n*** Connection not encrypted! Communication may be eavesdropped.***\r\n"; - writenet(tbuf, strlen(tbuf)); + char *tbuf = + "\r\n*** Connection not encrypted! " + "Communication may be eavesdropped.***\r\n"; +#ifdef ENCRYPTION + if(!decrypt_input) +#endif + writenet(tbuf, strlen(tbuf)); } #ifndef NEWINIT # ifdef PARENT_DOES_UTMP