Changeset 147
- Timestamp:
- Nov 26, 2007, 8:34:29 PM (17 years ago)
- Location:
- trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Makefile.in
r144 r147 1650 1650 sh_mail.o: $(srcsrc)/sh_mail.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_error.h $(srcinc)/sh_unix.h $(srcinc)/sh_tiger.h $(srcinc)/sh_mail.h $(srcinc)/sh_utils.h $(srcinc)/sh_fifo.h $(srcinc)/sh_tools.h $(srcinc)/sh_pthread.h $(srcinc)/sh_static.h $(srcinc)/sh_tools.h 1651 1651 sh_mem.o: $(srcsrc)/sh_mem.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_error.h $(srcinc)/sh_utils.h $(srcinc)/sh_mem.h $(srcinc)/sh_pthread.h 1652 sh_entropy.o: $(srcsrc)/sh_entropy.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_utils.h $(srcinc)/sh_unix.h $(srcinc)/sh_tiger.h $(srcinc)/sh_calls.h $(srcinc)/sh_pthread.h $(srcinc)/sh_static.h $(srcinc)/sh_pthread.h 1652 sh_entropy.o: $(srcsrc)/sh_entropy.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_utils.h $(srcinc)/sh_unix.h $(srcinc)/sh_tiger.h $(srcinc)/sh_calls.h $(srcinc)/sh_pthread.h $(srcinc)/sh_static.h $(srcinc)/sh_pthread.h $(srcinc)/CuTest.h 1653 1653 sh_forward.o: $(srcsrc)/sh_forward.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_tiger.h $(srcinc)/sh_utils.h $(srcinc)/sh_unix.h $(srcinc)/sh_forward.h $(srcinc)/sh_srp.h $(srcinc)/sh_fifo.h $(srcinc)/sh_tools.h $(srcinc)/sh_entropy.h $(srcinc)/sh_html.h $(srcinc)/sh_mail.h $(srcinc)/sh_socket.h $(srcinc)/sh_static.h $(srcinc)/rijndael-api-fst.h $(srcinc)/sh_readconf.h $(srcinc)/zAVLTree.h $(srcinc)/sh_extern.h 1654 1654 sh_modules.o: $(srcsrc)/sh_modules.c Makefile config_xor.h $(srcinc)/sh_modules.h $(srcinc)/sh_pthread.h $(srcinc)/sh_utmp.h $(srcinc)/sh_mounts.h $(srcinc)/sh_userfiles.h $(srcinc)/sh_kern.h $(srcinc)/sh_suidchk.h $(srcinc)/sh_processcheck.h $(srcinc)/sh_portcheck.h -
trunk/configure.ac
r145 r147 13 13 dnl start 14 14 dnl 15 AM_INIT_AUTOMAKE(samhain, 2.4. 0a)15 AM_INIT_AUTOMAKE(samhain, 2.4.1) 16 16 AC_CANONICAL_HOST 17 17 -
trunk/depend.dep
r144 r147 16 16 sh_mail.o: $(srcsrc)/sh_mail.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_error.h $(srcinc)/sh_unix.h $(srcinc)/sh_tiger.h $(srcinc)/sh_mail.h $(srcinc)/sh_utils.h $(srcinc)/sh_fifo.h $(srcinc)/sh_tools.h $(srcinc)/sh_pthread.h $(srcinc)/sh_static.h $(srcinc)/sh_tools.h 17 17 sh_mem.o: $(srcsrc)/sh_mem.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_error.h $(srcinc)/sh_utils.h $(srcinc)/sh_mem.h $(srcinc)/sh_pthread.h 18 sh_entropy.o: $(srcsrc)/sh_entropy.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_utils.h $(srcinc)/sh_unix.h $(srcinc)/sh_tiger.h $(srcinc)/sh_calls.h $(srcinc)/sh_pthread.h $(srcinc)/sh_static.h $(srcinc)/sh_pthread.h 18 sh_entropy.o: $(srcsrc)/sh_entropy.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_utils.h $(srcinc)/sh_unix.h $(srcinc)/sh_tiger.h $(srcinc)/sh_calls.h $(srcinc)/sh_pthread.h $(srcinc)/sh_static.h $(srcinc)/sh_pthread.h $(srcinc)/CuTest.h 19 19 sh_forward.o: $(srcsrc)/sh_forward.c Makefile config_xor.h $(srcinc)/samhain.h $(srcinc)/sh_tiger.h $(srcinc)/sh_utils.h $(srcinc)/sh_unix.h $(srcinc)/sh_forward.h $(srcinc)/sh_srp.h $(srcinc)/sh_fifo.h $(srcinc)/sh_tools.h $(srcinc)/sh_entropy.h $(srcinc)/sh_html.h $(srcinc)/sh_mail.h $(srcinc)/sh_socket.h $(srcinc)/sh_static.h $(srcinc)/rijndael-api-fst.h $(srcinc)/sh_readconf.h $(srcinc)/zAVLTree.h $(srcinc)/sh_extern.h 20 20 sh_modules.o: $(srcsrc)/sh_modules.c Makefile config_xor.h $(srcinc)/sh_modules.h $(srcinc)/sh_pthread.h $(srcinc)/sh_utmp.h $(srcinc)/sh_mounts.h $(srcinc)/sh_userfiles.h $(srcinc)/sh_kern.h $(srcinc)/sh_suidchk.h $(srcinc)/sh_processcheck.h $(srcinc)/sh_portcheck.h -
trunk/depend.sum
r146 r147 1 1 1541314115 -
trunk/docs/Changelog
r146 r147 1 1 2.4.1: 2 * security fix: regression in the seeding routine for the PRNG 3 (detected by C. Mueller) 4 * regression test added for PRNG seeding routine 2 5 * fix problem with PCI ROM check (spurious messages about modified 3 6 timestamps, reported by S. Clormann) -
trunk/src/sh_entropy.c
r138 r147 295 295 if (0 == sh_unix_device_readable(fd2)) 296 296 { 297 m_count = sl_read_timeout_fd(fd2, &nbuf, nbytes,297 m_count = sl_read_timeout_fd(fd2, nbuf, nbytes, 298 298 timeout_val, SL_FALSE); 299 299 if (m_count < 0) … … 387 387 SH_MUTEX_UNLOCK_UNSAFE(mutex_skey); 388 388 memset (keybuf, '\0', KEY_BYT); 389 memset (kbuf, '\0', sizeof(kbuf)); 389 390 390 391 SL_RETURN(0, _("sh_entropy")); … … 960 961 #endif 961 962 962 963 964 965 966 967 963 #ifdef SH_CUTEST 964 #include "CuTest.h" 965 966 void Test_entropy (CuTest *tc) 967 { 968 char bufx[9 * sizeof(UINT32) + 1]; 969 char bufy[9 * sizeof(UINT32) + 1]; 970 int status; 971 972 memset(skey->poolv, '\0', KEY_BYT); 973 974 status = sh_entropy (24, bufx); 975 CuAssertTrue(tc, 0 == status); 976 977 memset(skey->poolv, '\0', KEY_BYT); 978 979 status = sh_entropy (24, bufy); 980 CuAssertTrue(tc, 0 == status); 981 982 CuAssertTrue(tc, 0 != memcmp(bufx, bufy, 24)); 983 } 984 #endif 985 986 987 988 989 990 991 992 -
trunk/test/testcompile.sh
r145 r147 414 414 # test standalone compilation 415 415 # 416 TEST="${S}standalone w/o mail ${E}"417 # 418 if test -r "Makefile"; then 419 $MAKE clean 420 fi 421 # 422 ${TOP_SRCDIR}/configure --quiet --disable-mail --prefix=$PW_DIR --localstatedir=$PW_DIR --with-config-file=$PW_DIR/samhainrc.test > /dev/null 2>> test_log416 TEST="${S}standalone w/o mail w/unix_rnd${E}" 417 # 418 if test -r "Makefile"; then 419 $MAKE clean 420 fi 421 # 422 ${TOP_SRCDIR}/configure --quiet --disable-mail --prefix=$PW_DIR --localstatedir=$PW_DIR --with-config-file=$PW_DIR/samhainrc.test --with-rnd=unix > /dev/null 2>> test_log 423 423 # 424 424 let "num = num + 1" >/dev/null
Note:
See TracChangeset
for help on using the changeset viewer.