diff options
author | Stefan Metzmacher <metze@samba.org> | 2004-05-24 22:05:06 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:56:13 -0500 |
commit | 1f033febfe19d6bb0b45524a672eaf1d1373f15e (patch) | |
tree | d39f4a956b08c1a9b94ad0dc35f5cb7253866a21 /source4/lib/genrand.c | |
parent | 73f1ec5b0c4042728aed1a9cf22739aa1349090c (diff) | |
download | samba-1f033febfe19d6bb0b45524a672eaf1d1373f15e.tar.gz samba-1f033febfe19d6bb0b45524a672eaf1d1373f15e.tar.bz2 samba-1f033febfe19d6bb0b45524a672eaf1d1373f15e.zip |
r861: remove the next round of unused stuff
metze
(This used to be commit 8f59daba0d03a2c58f7f23655153de05cbe47e81)
Diffstat (limited to 'source4/lib/genrand.c')
-rw-r--r-- | source4/lib/genrand.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/source4/lib/genrand.c b/source4/lib/genrand.c index fdd4bb14fc..9645dd7999 100644 --- a/source4/lib/genrand.c +++ b/source4/lib/genrand.c @@ -135,7 +135,6 @@ static int do_reseed(BOOL use_fd, int fd) { unsigned char seed_inbuf[40]; uint32 v1, v2; struct timeval tval; pid_t mypid; - struct passwd *pw; if (use_fd) { if (fd != -1) @@ -152,22 +151,6 @@ static int do_reseed(BOOL use_fd, int fd) do_filehash(lp_smb_passwd_file(), &seed_inbuf[16]); /* - * Add in the root encrypted password. - * On any system where security is taken - * seriously this will be secret. - */ - - pw = getpwnam_alloc("root"); - if (pw && pw->pw_passwd) { - size_t i; - unsigned char md4_tmp[16]; - mdfour(md4_tmp, (unsigned char *)pw->pw_passwd, strlen(pw->pw_passwd)); - for (i=0;i<16;i++) - seed_inbuf[8+i] ^= md4_tmp[i]; - passwd_free(&pw); - } - - /* * Add the counter, time of day, and pid. */ |