+Tue Feb 20 16:50:59 1996 Theodore Y. Ts'o <tytso@dcl>
+
+ * kerberos_v4.c (kerberos_v4): Use strong random number generator
+
+ * main.c (main): Initialize Kerberos V4's random number generator.
+
Sat Jan 27 00:53:41 1996 Mark Eichin <eichin@cygnus.com>
* network.c (setup_network): strtol is good enough for port
memset(session_key, 0, sizeof(C_Block));
#else
/* random session key */
- random_key(session_key);
+ des_new_random_key(session_key);
#endif
/* unseal server's key from master key */
memset(session_key, 0, sizeof(C_Block));
#else
/* random session key */
- random_key(session_key);
+ des_new_random_key(session_key);
#endif
krb_create_ticket(tk, k_flags, ad->pname, ad->pinst,
finish_realms(argv[0]);
return 1;
}
+#ifdef KRB5_KRB4_COMPAT
+ des_init_random_number_generator(master_keyblock.contents);
+#endif
if (!nofork && daemon(0, 0)) {
com_err(argv[0], errno, "while detaching from tty");
finish_realms(argv[0]);