Having a non-noerror value inn the tsig error field should always return

DNS_R_TSIGERRORSET in dns_tsig_verify.  Change the result text to reflect
this.
This commit is contained in:
Brian Wellington
2000-07-20 19:32:57 +00:00
parent e860332b07
commit a5e73f3e9d
2 changed files with 6 additions and 11 deletions
+2 -2
View File
@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: result.c,v 1.65 2000/07/13 02:41:19 bwelling Exp $ */
/* $Id: result.c,v 1.66 2000/07/20 19:32:57 bwelling Exp $ */
#include <config.h>
@@ -65,7 +65,7 @@ static const char *text[DNS_R_NRESULTS] = {
"more data", /* 36 */
"up to date", /* 37 */
"tsig verify failure", /* 38 */
"tsig error set in query", /* 39 */
"tsig indicates error", /* 39 */
"SIG failed to verify", /* 40 */
"SIG has expired", /* 41 */
"SIG validity period has not begun", /* 42 */
+4 -9
View File
@@ -16,7 +16,7 @@
*/
/*
* $Id: tsig.c,v 1.73 2000/07/18 00:46:01 bwelling Exp $
* $Id: tsig.c,v 1.74 2000/07/20 19:32:56 bwelling Exp $
* Principal Author: Brian Wellington
*/
@@ -30,6 +30,7 @@
#include <isc/util.h>
#include <dns/keyvalues.h>
#include <dns/log.h>
#include <dns/message.h>
#include <dns/rdata.h>
#include <dns/rdatalist.h>
@@ -798,14 +799,8 @@ dns_tsig_verify(isc_buffer_t *source, dns_message_t *msg,
msg->tsigstatus = dns_rcode_noerror;
if (tsig.error != dns_rcode_noerror) {
if (is_response(msg)) {
/* XXXBEW Log a message */
return (ISC_R_SUCCESS);
}
else
return (DNS_R_TSIGERRORSET);
}
if (tsig.error != dns_rcode_noerror)
return (DNS_R_TSIGERRORSET);
msg->verified_sig = 1;