"EDNS is being created with incompatible RR type: "
<< rrtype);
}
-
+
if (version_ > EDNS::SUPPORTED_VERSION) {
isc_throw(DNSMessageBADVERS, "unsupported EDNS version: " <<
static_cast<unsigned int>(version_));
bool operator==(const Opcode& other) const {
return (equals(other));
}
-
+
/// \brief Return true iff two Opcodes are not equal.
///
/// This method never throws an exception.
// OPT RR of a non root name
EXPECT_THROW(EDNS(Name("example.com"), rrclass, rrtype,
rrttl_do_on, *opt_rdata), DNSMessageFORMERR);
-
+
// Unsupported Version
EXPECT_THROW(EDNS(Name::ROOT_NAME(), rrclass, rrtype,
rrttl_badver, *opt_rdata), DNSMessageBADVERS);
EXPECT_LT(0, large2.compare(small2));
// comparison attempt between incompatible RR types should be rejected
- EXPECT_THROW(rdata_in_a.compare(*RdataTest::rdata_nomatch), bad_cast);
+ EXPECT_THROW(rdata_in_a.compare(*RdataTest::rdata_nomatch), bad_cast);
}
}
EXPECT_LT(0, large2.compare(small2));
// comparison attempt between incompatible RR types should be rejected
- EXPECT_THROW(rdata_in_aaaa.compare(*RdataTest::rdata_nomatch), bad_cast);
+ EXPECT_THROW(rdata_in_aaaa.compare(*RdataTest::rdata_nomatch), bad_cast);
}
+
}
const uint16_t sha1_qid = 0x0967;
const uint8_t expected_mac[] = {
- 0x3b, 0x93, 0xd3, 0xc5, 0xf9, 0x64, 0xb9, 0xc5, 0x00, 0x35,
- 0x02, 0x69, 0x9f, 0xfc, 0x44, 0xd6, 0xe2, 0x66, 0xf4, 0x08,
+ 0x3b, 0x93, 0xd3, 0xc5, 0xf9, 0x64, 0xb9, 0xc5, 0x00, 0x35,
+ 0x02, 0x69, 0x9f, 0xfc, 0x44, 0xd6, 0xe2, 0x66, 0xf4, 0x08,
0xef, 0x33, 0xa2, 0xda, 0xa1, 0x48, 0x71, 0xd3
};
{
matchName(const char* nameexp1, const char* nameexp2,
const isc::dns::Name& name1, const isc::dns::Name& name2);
};
+
}
#endif // UNITTEST_UTIL_H
-
-// Local Variables:
-// mode: c++
-// End:
// be used in subsequent response with a TSIG indicating a BADKEY
// error.
impl_.reset(new TSIGContextImpl(TSIGKey(key_name, algorithm_name, 0, 0),
- TSIGError::BAD_KEY()));
+ TSIGError::BAD_KEY()));
} else {
impl_.reset(new TSIGContextImpl(*result.key));
}