Wed Mar 29 15:08:43 1995 Theodore Y. Ts'o (tytso@dcl)
+ * kerberos5.c: No need to have the session_key established for
+ mutual authentication to work. (That's only done if
+ ENCRYPTION is defined.)
+
* auth.c (authenticators): Allow mutual authentication even if the
ENCRYPTION option is not turned on.
inbuf.length = cnt;
inbuf.data = (char *)data;
- if (!session_key.contents) {
- printf("[ Mutual authentication failed: no session key ]\n");
- auth_send_retry();
- return;
- }
-
if (r = krb5_rd_rep(telnet_context, auth_context, &inbuf,
&reply)) {
printf("[ Mutual authentication failed: %s ]\n",
}
krb5_free_ap_rep_enc_part(telnet_context, reply);
#ifdef ENCRYPTION
+ if (!session_key.contents) {
skey.type = SK_DES;
skey.length = 8;
skey.data = session_key.contents;
encrypt_session_key(&skey, 0);
+ }
#endif /* ENCRYPTION */
mutual_complete = 1;
}