No need to call DES_init_random_number_generator, hcrypto is sane now.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23034 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2008-04-18 10:01:54 +00:00
parent cd980194d9
commit bdc1855499

View File

@@ -83,7 +83,6 @@ struct fb {
int need_start;
int state[2];
int keyid[2];
int once;
struct stinfo streams[2];
};
@@ -395,12 +394,6 @@ static void fb64_session(Session_Key *key, int server, struct fb *fbp)
fb64_stream_key(fbp->krbdes_key, &fbp->streams[DIR_ENCRYPT-1]);
fb64_stream_key(fbp->krbdes_key, &fbp->streams[DIR_DECRYPT-1]);
if (fbp->once == 0) {
#if !defined(OLD_DES_RANDOM_KEY) && !defined(HAVE_OPENSSL)
DES_init_random_number_generator(&fbp->krbdes_key);
#endif
fbp->once = 1;
}
DES_set_key_checked((DES_cblock *)&fbp->krbdes_key,
&fbp->krbdes_sched);
/*