]> git.ipfire.org Git - thirdparty/bind9.git/commit
pullup:
authorAndreas Gustafsson <source@isc.org>
Thu, 6 Sep 2001 00:14:18 +0000 (00:14 +0000)
committerAndreas Gustafsson <source@isc.org>
Thu, 6 Sep 2001 00:14:18 +0000 (00:14 +0000)
commit3f538ef15c8e57ae6b90ccee37fb4e898161456c
tree79be0da5e7ec98b69d57f1de837931184c2b0547
parentf58f6043cef9eaf4bdcc6b772db4b7ced45113f6
pullup:
[RT #1709]
Change isc_entropy_usebestsource() to have saner semantics:
 - If an invalid file is specified, an error will be returned instead of the
   keyboard being used.
 - If no file is specified but a random device is present, the keyboard will
   be used if there is an error opening the random device.
 - ISC_ENTROPY_KEYBOARDYES indicates that the keyboard should be the
   only device used.  Otherwise, passing '-r keyboard' is meaningless
   on a machine with a random device, since the keyboard will not be used.

Change the callers in the dnssec tools and rndc-confgen to check for the
special file "keyboard" and call isc_entropy_usebestsource() with the right set
of parameters.
bin/dnssec/dnssectool.c
bin/rndc/rndc-confgen.c
lib/isc/entropy.c
lib/isc/include/isc/entropy.h