/// (signaled by find() returning NXRRSET), and the zone is signed
/// with NSEC, an NSEC denial of existance proof is added.
///
+ /// \exception BadDS raised if find() returns anything other than
+ /// SUCCESS or NXRRSET when searching for the DS
+ /// record.
/// \param finder The ZoneFinder where the delegation was found
/// \param ds_name The name of the delegation RRset
void addDS(isc::datasrc::ZoneFinder& finder,
}
}
-
// normal cases. names are searched for only per exact-match basis
// for simplicity.
const Domains::const_iterator found_domain = domains_.find(name);
}
TEST_F(QueryTest, secureDelegation) {
- // find match rrset, omit additional data which has already been provided
- // in the answer section from the additional.
- EXPECT_NO_THROW(Query(memory_client, Name("foo.signed-delegation.example.com"),
+ EXPECT_NO_THROW(Query(memory_client,
+ Name("foo.signed-delegation.example.com"),
qtype, response, true).process());
// Should now contain RRSIG and DS record as well.
Name("foo.unsigned-delegation.example.com"),
qtype, response, true).process());
- // Should now contain RRSIG and DS record as well.
+ // Should now contain RRSIG and NSEC record as well.
responseCheck(response, Rcode::NOERROR(), 0, 0, 3, 0,
NULL,
(string(unsigned_delegation_txt) +