mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-29 13:38:26 +00:00
Fix tsig_test.c unittest (OK'd by Mark on Jabber)
This commit is contained in:
parent
c88efb83b3
commit
f2b6eef899
@ -178,6 +178,13 @@ render(isc_buffer_t *buf, unsigned flags, dns_tsigkey_t *key,
|
||||
msg->rcode = dns_rcode_noerror;
|
||||
msg->flags = flags;
|
||||
|
||||
/*
|
||||
* XXXMPA: this hack needs to be replaced with use of
|
||||
* dns_message_reply() at some point.
|
||||
*/
|
||||
if ((flags & DNS_MESSAGEFLAG_QR) != 0)
|
||||
msg->verified_sig = 1;
|
||||
|
||||
if (tsigin == tsigout)
|
||||
msg->tcp_continuation = 1;
|
||||
|
||||
@ -384,7 +391,7 @@ ATF_TC_BODY(tsig_tcp, tc) {
|
||||
ATF_CHECK_EQ_MSG(result, ISC_R_SUCCESS,
|
||||
"dns_tsig_verify: %s",
|
||||
dns_result_totext(result));
|
||||
ATF_CHECK_EQ(msg->verified_sig, 1);
|
||||
ATF_CHECK_EQ(msg->verified_sig, 0);
|
||||
ATF_CHECK_EQ(msg->tsigstatus, dns_rcode_noerror);
|
||||
|
||||
/*
|
||||
|
Loading…
x
Reference in New Issue
Block a user