2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-24 11:08:45 +00:00

58 Commits

Author SHA1 Message Date
Brian Wellington
f8b3c62794 804. [bug] Attempting to obtain entropy could fail in some
situations.  This would be most common on systems
			with user-space threads. [RT #1131]
2001-04-04 20:57:35 +00:00
Brian Wellington
0ef3f4fb41 When memsetting the entropy pool to 0, the count should be the size in bytes,
not words.
2001-02-05 23:00:18 +00:00
Mark Andrews
363cb30a83 703. [port] sys/select.h is needed on older platforms. [RT #695] 2001-01-23 03:07:18 +00:00
Brian Wellington
499b34cea0 copyright update 2001-01-09 22:01:04 +00:00
Brian Wellington
ee303f481d 639. [bug] Reading entropy from the keyboard would sometimes fail.
[RT #591]

note: the entropy callback conventions should really be documented.
2000-12-27 00:11:26 +00:00
Andreas Gustafsson
5412d26798 entropy.c did not include header files necessary for select(),
causing nonthreaded builds to fail on AIX
2000-12-14 22:40:17 +00:00
David Lawrence
9cd6d409b7 first pass at using isc_msgcat_get for message strings in libisc 2000-12-06 00:30:32 +00:00
Brian Wellington
bfa244d5d4 Mark callback sources as bad if the get() routine returns failure. Also
some other cleanup, and a reversal of the incorrect destroylock patch.
2000-11-23 01:04:00 +00:00
Brian Wellington
a452eb6b5d a mutex wasn't being destroyed 2000-11-23 00:26:11 +00:00
Brian Wellington
a44038277a MOre calls to DESTROYLOCK 2000-08-26 01:31:56 +00:00
Brian Wellington
bba01d378b Since the result of isc_mutex_destroy() is being ignored, cast it to void. 2000-08-26 01:10:54 +00:00
David Lawrence
40f53fa8d9 Trailing whitespace trimmed. Perhaps running "perl util/spacewhack.pl in your
own CVS tree will help minimize CVS conflicts.  Maybe not.
Blame Graff for getting me to trim all trailing whitespace.
2000-08-01 01:33:37 +00:00
David Lawrence
15a4474541 word wrap copyright notice at column 70 2000-07-27 09:55:03 +00:00
Brian Wellington
0191211ce5 Casting void * to unsigned long works better than casting to isc_uint32_t 2000-06-26 18:41:06 +00:00
David Lawrence
24de6390c1 "entropy.c", line 1319: remark(1552): variable "ent" was set but never used 2000-06-23 22:06:47 +00:00
Michael Graff
0087d83906 thinko. Check for necessary entropy content correctly. 2000-06-23 02:31:10 +00:00
David Lawrence
9c3531d72a add RCS id string 2000-06-22 22:00:42 +00:00
Michael Graff
8e7e1ef75b let the entropy source seed the pseudorandom source from _very_ bad sources like the time and the pid. Update the dispatcher to always expect success in these cases. 2000-06-21 22:12:23 +00:00
Michael Graff
96e79f7ede Fully implement callback sources, and add a test program to test it. 2000-06-21 00:04:57 +00:00
Michael Graff
35250798eb Actually create sample sources now. 2000-06-20 19:10:19 +00:00
Michael Graff
b9672b61d8 add processing of sample sources, and of callback sources 2000-06-20 19:01:13 +00:00
Michael Graff
7685c082c8 remove flags from source types. It was never used, and probably shouldn't be there. 2000-06-17 01:42:21 +00:00
Michael Graff
fd316ab4f9 snapshot 2000-06-17 01:30:40 +00:00
Michael Graff
9ceb50ed04 protect isc_entropy_stats() with a lock, and use a static dumpstats() internally when a lock is already held, for debugging. Add isc_entropy_putdata() which can be used to prime the pool. 2000-06-17 00:43:11 +00:00
Michael Graff
29a2e0c9b5 Bring back warnings we supressed for b4 :) 2000-06-16 01:39:05 +00:00
Michael Graff
e92d6ed5e7 snapshot 2000-06-16 01:38:13 +00:00
Michael Graff
c3581e2bcc No need to destroy filesources -- they will clean up when the source is destroyed 2000-06-15 18:15:26 +00:00
Michael Graff
c498b4be95 initialize with at least THRESHOLD_BITS bits of entropy for pseudorandom case. 2000-06-12 22:28:05 +00:00
Michael Graff
6a3beb6f7e don't reset initialized state to ISC_TRUE -- it is a counter now, not a boolean 2000-06-12 21:37:13 +00:00
Brian Wellington
898c0c12f0 MIN -> MAX 2000-06-12 20:49:18 +00:00
Michael Graff
8fdd9c31b9 allow blocking when priming the pseudorandom generator 2000-06-12 18:28:25 +00:00
Michael Graff
8422b3823f require that we collect at least 20 bytes (hash size) of good randomness
before allowing pseudorandom operation.
2000-06-12 18:19:43 +00:00
Michael Graff
8b143acb3a remove debugging printfs, no really 2000-06-10 01:53:02 +00:00
Michael Graff
01e8ed519e remove debugging printfs 2000-06-10 01:52:35 +00:00
Michael Graff
f1400cb774 snapshot 2000-06-10 01:47:06 +00:00
Michael Graff
d08577ac0b don't reset added when retrying sources, and add another printf 2000-06-10 01:09:22 +00:00
Michael Graff
a0dc53dd58 check in a debugging printf, to help track down a problem on linux 2000-06-10 00:52:56 +00:00
Michael Graff
d730157099 Try a different tactic before returning failure 2000-06-10 00:50:03 +00:00
Michael Graff
e679d0acb1 <, not <= 2000-06-10 00:35:08 +00:00
Michael Graff
f8b50c193f snapshot 2000-06-09 22:24:22 +00:00
Michael Graff
79fdce6aff add blocking mode, and add a flag to indicate the input is a device 2000-06-09 21:36:51 +00:00
Michael Graff
b90f80957a use create/attach/detach semantics 2000-06-09 19:18:56 +00:00
Michael Graff
24629383aa kill printf 2000-06-09 18:46:17 +00:00
Michael Graff
348f351145 checkpoint 2000-06-09 18:45:51 +00:00
Michael Graff
99bec2168f checkpoint 2000-06-09 18:33:35 +00:00
Michael Graff
b8feb9c67c checkpoint 2000-06-09 18:22:11 +00:00
Michael Graff
630a955711 checkpoint 2000-06-09 17:48:08 +00:00
Michael Graff
b48abf6b85 snapshot 2000-06-09 17:25:41 +00:00
Michael Graff
e596c6fe81 make it build. 2000-06-09 04:06:06 +00:00
Michael Graff
c6e2d36708 snapshot 2000-06-09 02:00:22 +00:00