From ead5f1b7b6ad9e9e5b9c6a1b6ec02c1644356220 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Tue, 19 Sep 2006 08:25:20 +0000 Subject: [PATCH] If encryption is required, don't allow it to be turned off. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@18110 ec53bebd-3082-4978-b11e-865c3cabbd6b --- appl/telnet/telnetd/state.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/appl/telnet/telnetd/state.c b/appl/telnet/telnetd/state.c index 2873b1c9c..bfa3c6fe3 100644 --- a/appl/telnet/telnetd/state.c +++ b/appl/telnet/telnetd/state.c @@ -1245,6 +1245,8 @@ suboption(void) encrypt_start(subpointer, SB_LEN()); break; case ENCRYPT_END: + if (require_encryption) + fatal(net, "Output encryption is not possible to turn off"); encrypt_end(); break; case ENCRYPT_REQSTART: @@ -1257,6 +1259,8 @@ suboption(void) * if we have been able to get in the correct mode * anyhow. */ + if (require_encryption) + fatal(net, "Input encryption is not possible to turn off"); encrypt_request_end(); break; case ENCRYPT_ENC_KEYID: