Warn if encryption is not activated both ways!

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@90 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Björn Groenvall
1995-09-02 12:26:01 +00:00
parent dd3612608f
commit 6229ce26fd

View File

@@ -1417,7 +1417,7 @@ startslave(host, autologin, autoname)
"\r\n*** Connection not encrypted! "
"Communication may be eavesdropped.***\r\n";
#ifdef ENCRYPTION
if(!decrypt_input)
if (encrypt_output == 0 || decrypt_input == 0)
#endif
writenet(tbuf, strlen(tbuf));
}