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
This commit is contained in:
Love Hörnquist Åstrand
2006-09-19 08:25:20 +00:00
parent fbfc689300
commit ead5f1b7b6

View File

@@ -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: