Use RAND_bytes() + DES_is_weak_key() to generate random DES
commitd2ecc5a8af1f3a972a5da1e879d2d30ac08829ae
authorLove Hörnquist Åstrand <lha@kth.se>
Sun, 27 Apr 2008 18:49:41 +0000 (27 18:49 +0000)
committerLove Hörnquist Åstrand <lha@kth.se>
Sun, 27 Apr 2008 18:49:41 +0000 (27 18:49 +0000)
tree8430938858c2f730a41ddc17ff737968716a636f
parentbafca15f2ec7b665ccdbf2d96da182d36f46accd
Use RAND_bytes() + DES_is_weak_key() to generate random DES
key. Introdunce random by feeding the des session key into the random
pool when the keys is recived instead of encrypt the random key with
the kerberos key.

This avoid depenency on DES_new_random_key() that doesn't exists in OpenSSL.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23091 ec53bebd-3082-4978-b11e-865c3cabbd6b
appl/telnet/libtelnet/enc_des.c