require encryption if passed -x

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9271 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
2000-12-05 09:12:26 +00:00
parent d1e87251f4
commit 6bd6f80082

View File

@@ -363,6 +363,8 @@ recv_krb5_auth (int s, u_char *buf,
do_encrypt = 1;
memmove (cmd, cmd + 3, strlen(cmd) - 2);
} else {
if(do_encrypt)
fatal (s, "Encryption required");
do_encrypt = 0;
}