def scan_signed_file(file, domain_filename)
@non_dnssec_rr_count = 0
@algs = []
pid = fork {
grep_for_domains_of_interest(file, domain_filename)
}
first = true
IO.foreach((file.to_s+"").untaint) {|line|
next if (line[0,1] == ";")
next if (line.strip.length == 0)
if (first)
first = false
rr = RR.create(line)
if (rr.type != Types::SOA)
@parent.log(LOG_ERR, "Expected SOA RR as first record in #{file}, but got RR : #{rr}")
end
end
test_rr_type(line)
}
ret_id, ret_status = Process.wait2(pid)
if (ret_status != 0)
@parent.log(LOG_WARNING, "Grep failed on #{file} - #{ret_status}")
else
scan_temp_domain_files(domain_filename)
end
return @non_dnssec_rr_count, @soa
end