summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--Makefile.in6
-rw-r--r--entropy.c13
3 files changed, 13 insertions, 9 deletions
diff --git a/ChangeLog b/ChangeLog
index 906e09f04..33e522843 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -8,6 +8,9 @@
8 channel layer support for ssh2 8 channel layer support for ssh2
9 - [kex.h kex.c hmac.h hmac.c dsa.c dsa.h] 9 - [kex.h kex.c hmac.h hmac.c dsa.c dsa.h]
10 DSA, keyexchange, algorithm agreement for ssh2 10 DSA, keyexchange, algorithm agreement for ssh2
11 - Generate manpages before make install not at the end of make all
12 - Don't seed the rng quite so often
13 - Always reseed rng when requested
11 14
1220000403 1520000403
13 - Wrote entropy collection routines for systems that lack /dev/random 16 - Wrote entropy collection routines for systems that lack /dev/random
diff --git a/Makefile.in b/Makefile.in
index bb08b53b9..196cc5786 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -47,7 +47,9 @@ PATHSUBS = -D/etc/ssh_config=$(sysconfdir)/ssh_config -D/etc/known_hosts=$(sysco
47 47
48FIXPATHSCMD = $(PERL) $(srcdir)/fixpaths $(PATHSUBS) 48FIXPATHSCMD = $(PERL) $(srcdir)/fixpaths $(PATHSUBS)
49 49
50all: $(TARGETS) $(MANPAGES) $(CONFIGFILES) 50all: $(TARGETS) $(CONFIGFILES)
51
52manpages: $(MANPAGES)
51 53
52$(LIBOBJS): config.h 54$(LIBOBJS): config.h
53 55
@@ -95,7 +97,7 @@ catman-do:
95 >$${f%%.[18]}.0 ; \ 97 >$${f%%.[18]}.0 ; \
96 done 98 done
97 99
98install: $(TARGETS) 100install: manpages $(TARGETS)
99 $(INSTALL) -d $(DESTDIR)$(bindir) 101 $(INSTALL) -d $(DESTDIR)$(bindir)
100 $(INSTALL) -d $(DESTDIR)$(sbindir) 102 $(INSTALL) -d $(DESTDIR)$(sbindir)
101 $(INSTALL) -d $(DESTDIR)$(mandir) 103 $(INSTALL) -d $(DESTDIR)$(mandir)
diff --git a/entropy.c b/entropy.c
index cd6f1a508..94e7dcec1 100644
--- a/entropy.c
+++ b/entropy.c
@@ -41,7 +41,7 @@
41# include <ssl/sha.h> 41# include <ssl/sha.h>
42#endif 42#endif
43 43
44RCSID("$Id: entropy.c,v 1.2 2000/04/03 05:07:32 damien Exp $"); 44RCSID("$Id: entropy.c,v 1.3 2000/04/04 05:04:10 damien Exp $");
45 45
46#ifdef EGD_SOCKET 46#ifdef EGD_SOCKET
47#ifndef offsetof 47#ifndef offsetof
@@ -424,11 +424,10 @@ seed_rng(void)
424void 424void
425seed_rng(void) 425seed_rng(void)
426{ 426{
427 if (!RAND_status()) { 427 debug("Seeding random number generator.");
428 debug("Seeding random number generator."); 428 debug("OpenSSL random status is now %i\n", RAND_status());
429 debug("%i bytes from system calls", (int)stir_from_system()); 429 debug("%i bytes from system calls", (int)stir_from_system());
430 debug("%i bytes from programs", (int)stir_from_programs()); 430 debug("%i bytes from programs", (int)stir_from_programs());
431 debug("OpenSSL random status is now %i\n", RAND_status()); 431 debug("OpenSSL random status is now %i\n", RAND_status());
432 }
433} 432}
434#endif /* defined(EGD_SOCKET) || defined(RANDOM_POOL) */ 433#endif /* defined(EGD_SOCKET) || defined(RANDOM_POOL) */