Add --dnssec-no-timecheck

This commit is contained in:
Simon Kelley committed 2014-03-28 20:41:23 +00:00
1 parent 8a8bbad0cf
commit e98bd52e25
5 files changed
+116 -83

No files matched your search

+7 -1
View File
@@ -390,7 +390,13 @@ static int serial_compare_32(unsigned long s1, unsigned long s2)
/* Check whether today/now is between date_start and date_end */
static int check_date_range(unsigned long date_start, unsigned long date_end)
{
unsigned long curtime = time(0);
unsigned long curtime;
/* Checking timestamps may be temporarily disabled */
if (option_bool(OPT_DNSSEC_TIME))
return 1;
curtime = time(0);
/* We must explicitly check against wanted values, because of SERIAL_UNDEF */
return serial_compare_32(curtime, date_start) == SERIAL_GT