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:
@@ -1245,6 +1245,8 @@ suboption(void)
|
|||||||
encrypt_start(subpointer, SB_LEN());
|
encrypt_start(subpointer, SB_LEN());
|
||||||
break;
|
break;
|
||||||
case ENCRYPT_END:
|
case ENCRYPT_END:
|
||||||
|
if (require_encryption)
|
||||||
|
fatal(net, "Output encryption is not possible to turn off");
|
||||||
encrypt_end();
|
encrypt_end();
|
||||||
break;
|
break;
|
||||||
case ENCRYPT_REQSTART:
|
case ENCRYPT_REQSTART:
|
||||||
@@ -1257,6 +1259,8 @@ suboption(void)
|
|||||||
* if we have been able to get in the correct mode
|
* if we have been able to get in the correct mode
|
||||||
* anyhow.
|
* anyhow.
|
||||||
*/
|
*/
|
||||||
|
if (require_encryption)
|
||||||
|
fatal(net, "Input encryption is not possible to turn off");
|
||||||
encrypt_request_end();
|
encrypt_request_end();
|
||||||
break;
|
break;
|
||||||
case ENCRYPT_ENC_KEYID:
|
case ENCRYPT_ENC_KEYID:
|
||||||
|
Reference in New Issue
Block a user