From: Theodore Tso Date: Wed, 21 Feb 1996 20:21:50 +0000 (+0000) Subject: kerberos_v4.c (kerberos_v4): Use strong random number generator X-Git-Tag: krb5-1.0-beta6~504 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=fc8305db5e928aaddbf1ddd6b981a5a302df94e7;p=krb5.git kerberos_v4.c (kerberos_v4): Use strong random number generator main.c (main): Initialize Kerberos V4's random number generator. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7491 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/kdc/ChangeLog b/src/kdc/ChangeLog index 9395047b3..cbb072621 100644 --- a/src/kdc/ChangeLog +++ b/src/kdc/ChangeLog @@ -1,3 +1,9 @@ +Tue Feb 20 16:50:59 1996 Theodore Y. Ts'o + + * 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 * network.c (setup_network): strtol is good enough for port diff --git a/src/kdc/kerberos_v4.c b/src/kdc/kerberos_v4.c index 7d0508f21..de588716e 100644 --- a/src/kdc/kerberos_v4.c +++ b/src/kdc/kerberos_v4.c @@ -569,7 +569,7 @@ kerberos_v4(client, pkt) 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 */ @@ -709,7 +709,7 @@ kerberos_v4(client, pkt) 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, diff --git a/src/kdc/main.c b/src/kdc/main.c index c2671388a..442e21793 100644 --- a/src/kdc/main.c +++ b/src/kdc/main.c @@ -887,6 +887,9 @@ char *argv[]; 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]);