Add some error checking when opening the new-keys file.


git-svn-id: https://www.dnssec-tools.org/svn/dnssec-tools/trunk@6664 c4029f9c-b713-0410-a448-fae9e31a314a
When daemonizing, force the parent to exit with 0.


git-svn-id: https://www.dnssec-tools.org/svn/dnssec-tools/trunk@6665 c4029f9c-b713-0410-a448-fae9e31a314a
Added a timetrans() call to a message so it'd be clearer when hold-down timer
expires.


git-svn-id: https://www.dnssec-tools.org/svn/dnssec-tools/trunk@6666 c4029f9c-b713-0410-a448-fae9e31a314a
Step 1 in a (potentially) major reorganization of trustman.


git-svn-id: https://www.dnssec-tools.org/svn/dnssec-tools/trunk@6667 c4029f9c-b713-0410-a448-fae9e31a314a
Pass hashrefs to remove_ta_dnsvalconf() and remove_ta_namedconf() instead
of piles of fields.



git-svn-id: https://www.dnssec-tools.org/svn/dnssec-tools/trunk@6668 c4029f9c-b713-0410-a448-fae9e31a314a
use AC_SEARCH_LIBS to find openssl routines

git-svn-id: https://www.dnssec-tools.org/svn/dnssec-tools/trunk@6669 c4029f9c-b713-0410-a448-fae9e31a314a
move define LIBVAL_CONFIGURE to CFLAGS

- instead of validator-config.h, where it isn't seen

git-svn-id: https://www.dnssec-tools.org/svn/dnssec-tools/trunk@6670 c4029f9c-b713-0410-a448-fae9e31a314a
Moved a bunch of code from checkkeys() into the new checkzones().


git-svn-id: https://www.dnssec-tools.org/svn/dnssec-tools/trunk@6671 c4029f9c-b713-0410-a448-fae9e31a314a
Modified read_conf_file() and read_dnsval_file() to not turn the root zone
into an empty string.
Jiggled read_conf_file() and read_dnsval_file() for improved readability.


git-svn-id: https://www.dnssec-tools.org/svn/dnssec-tools/trunk@6672 c4029f9c-b713-0410-a448-fae9e31a314a
Modified resolve_and_check_dnskey() for a little more clarity in logic.


git-svn-id: https://www.dnssec-tools.org/svn/dnssec-tools/trunk@6673 c4029f9c-b713-0410-a448-fae9e31a314a
Fixed seconds count for 15 days to have the correct number of zeroes.
This was actually using 1.5 days.


git-svn-id: https://www.dnssec-tools.org/svn/dnssec-tools/trunk@6674 c4029f9c-b713-0410-a448-fae9e31a314a
Pulled all the seconds counts into one place and made them "constants".
(Y'know, in case the number of seconds in a day or an hour ever changes.)


git-svn-id: https://www.dnssec-tools.org/svn/dnssec-tools/trunk@6675 c4029f9c-b713-0410-a448-fae9e31a314a
Moved a bunch of code from checkkeys() to timing_check().


git-svn-id: https://www.dnssec-tools.org/svn/dnssec-tools/trunk@6676 c4029f9c-b713-0410-a448-fae9e31a314a
Moved sleep-time calculation out of checkkeys() and into getsleeptime().


git-svn-id: https://www.dnssec-tools.org/svn/dnssec-tools/trunk@6677 c4029f9c-b713-0410-a448-fae9e31a314a
Remove defines that are not constants


git-svn-id: https://www.dnssec-tools.org/svn/dnssec-tools/trunk@6678 c4029f9c-b713-0410-a448-fae9e31a314a
struct val_context was renamed to struct libval_context because of the conflict
on Windows


git-svn-id: https://www.dnssec-tools.org/svn/dnssec-tools/trunk@6679 c4029f9c-b713-0410-a448-fae9e31a314a
More code refactoring:  code from checkkeys() to removecheck() 


git-svn-id: https://www.dnssec-tools.org/svn/dnssec-tools/trunk@6680 c4029f9c-b713-0410-a448-fae9e31a314a
Moved code from checkkeys() into sched_remove().


git-svn-id: https://www.dnssec-tools.org/svn/dnssec-tools/trunk@6681 c4029f9c-b713-0410-a448-fae9e31a314a
Tightened up a bit of logic in a checkkey() loop.
Added vnotify(), which calls notify() iff -v was given.
Changed several notify() calls to use vnotify() instead.


git-svn-id: https://www.dnssec-tools.org/svn/dnssec-tools/trunk@6682 c4029f9c-b713-0410-a448-fae9e31a314a
Moved an error check in checkzones() to its proper place.  Previous location
was okay, this is just more efficient in time and memory.
Moved the save of a sleep-time into the calculating routine.


git-svn-id: https://www.dnssec-tools.org/svn/dnssec-tools/trunk@6683 c4029f9c-b713-0410-a448-fae9e31a314a