Skip to content

Commit

Permalink
Merge pull request #6 from jschlyter/master
Browse files Browse the repository at this point in the history
Fix NSEC/NSEC3 signature verification
  • Loading branch information
romu42 committed Oct 3, 2013
2 parents 78eceb4 + 1de177c commit 3acc6fc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions dnssec_monitor.pm
Expand Up @@ -465,8 +465,12 @@ sub check_nxdomain {
}

if ($rr->type eq "RRSIG") {
push @{ $signatures_by_name->{ $rr->name } }, $rr;
$signatures++;
if ( ($rr->typecovered eq "NSEC" and not $enable_nsec3)
or ($rr->typecovered eq "NSEC3" and $enable_nsec3))
{
push @{ $signatures_by_name->{ $rr->name } }, $rr;
$signatures++;
}
next;
}
}
Expand Down
2 changes: 1 addition & 1 deletion ns-timestamp.pl
Expand Up @@ -152,7 +152,7 @@ sub timestamp {
$diff_s = "+$diff" if ($diff > 0);

if ($do_absolute) {
my $ts = time2str("%Y:%m:%d %H:%M:%S", $rr->time_signed,
my $ts = time2str("%Y-%m-%d %H:%M:%S", $rr->time_signed,
"UTC");
printf("%-50s %s %s\n",
sprintf("%s (%s)", $hostname{$ns}, $ns),
Expand Down

0 comments on commit 3acc6fc

Please sign in to comment.