Commit Graph
71 Commits
Author SHA1 Message Date
Mark Andrews cbdd3a318b update lib copyrights 2004-03-06 08:15:48 +00:00
Mark Andrews 388732593d cleanup spaces before semicolons. 2003-09-24 03:47:21 +00:00
Mark Andrews 57b54234cd sizeof style 2003-09-11 00:18:18 +00:00
Mark Andrews 7b1256eb34 Protect both the socket and fifo tests with #ifdef's. 2003-08-15 03:11:45 +00:00
Mark Andrews 34d527bf02 pullup:
mask of mode format bits and compare result
2003-08-15 02:14:57 +00:00
Mark Andrews 364237ab5f 1293. [func] Entropy can now be retrieved from EGDs. [RT #2438] 2003-08-15 02:11:28 +00:00
Mark Andrews 108a1cfcc0 misc pullups:
*warning messages generated by dns_master_load* should not print
dns_master_load, since it violates the "don't print function names in
error messages" rule.
*When printing a warning about a value not being a valid decimal dotted
quad, it seems excessive to print "warning" when the message is already logged
at log level WARNING by the warn() callback.
*We could select on a closed file descriptor.
2003-08-14 00:50:20 +00:00
Mark Andrews 9052beb238 pullup
Check return values or cast them to (void), as required by the coding
standards; add exceptions to the coding standards for cases where this is
not desirable
2003-08-11 05:28:23 +00:00
Mark Andrews 891c424e56 update_copyrights 2002-08-05 06:57:16 +00:00
Mark Andrews a6540ffa21 pullup:
1288.   [port]          Openserver: the value FD_SETSIZE depends on whether
                        <sys/param.h> is included or not.  Be consistant.
2002-05-10 06:54:40 +00:00
Andreas Gustafsson 5a78ccdf1f pullup:
1068.   [bug]           errno could be overwritten by catgets(). [RT #1921]
1066.   [bug]           Provide a thread safe wrapper for strerror().
                        [RT #1689]
(Also some changes to configure.in, config.h.in, and acconfig.h that were
necessary to allow config.h.in to be correctly regenerated with the
HAVE_STRERROR definition needed by 1066.)
2001-10-22 23:28:26 +00:00
Andreas Gustafsson d2a7d7e26c all failures opening /dev/random were reported as
'I/O error'.  This was highly confusing.
2001-07-18 01:31:13 +00:00
David Lawrence 2d67c24744 906. [port] Separated the system independent portion of
lib/isc/unix/entropy.c into lib/isc/entropy.c
			and added lib/isc/win32/entropy.c.
2001-06-21 14:19:20 +00:00
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