Report information
The Basics
Id:
45490
Status:
resolved
Priority:
Medium/Medium
Queue:

People
Cc:
AdminCc:

BugTracker
Version Fixed:
9.12.0
Version Found:
(no value)
Versions Affected:
(no value)
Versions Planned:
(no value)
Priority:
P2 Normal
Severity:
S3 Low
CVSS Score:
(no value)
CVE ID:
(no value)
Component:
BIND Common
Area:
libdns

Dates
Created:Fri, 30 Jun 2017 10:17:15 -0400
Updated:Mon, 18 Sep 2017 20:19:39 -0400
Closed:Mon, 18 Sep 2017 20:19:39 -0400



This bug tracker is no longer active.

Please go to our Gitlab to submit issues (both feature requests and bug reports) for active projects maintained by Internet Systems Consortium (ISC).

Due to security and confidentiality requirements, full access is limited to the primary maintainers.

Date: Fri, 30 Jun 2017 14:17:15 +0000
From: ray@isc.org
Subject: tsig.c refactoring
To: bind9-confidential@isc.org
Minor refactoring of lib/dns/tsig.c to reduce code duplication and simplify the disabling of MD5. The patch subsumes RT#45409 "typo in DNS_NAME_INITABSOLUTE"
> The patch subsumes RT#45409 "typo in DNS_NAME_INITABSOLUTE" or not, since that already got done in the master branch.
After merging to current master, the version that uses #include "../tsig.c" no longer compiles due to shadowed global variables. Earlier, Mark and I discussed the best method for unit testing static functions, and he convinced me that it's okay to use the direct-include method in relatively simple cases, where the file is small and including it isn't going to cause namespace problems with the unit test. But that seems no longer to be the case here. So, because I want to get this merged for alpha, I reverted back to using double-underscore, non-static functions. However, I created a tsig_p.h instead of having the prototypes be in the public tsig.h. 4701. [cleanup] Refactored lib/dns/tsig.c to reduce code duplication and simplify the disabling of MD5. [RT #45490] 9.12.0
test is fine. resolving On Wed Sep 06 10:57:19 2017, each wrote: > After merging to current master, the version that uses #include "../tsig.c" > no longer compiles due to shadowed global variables. > > Earlier, Mark and I discussed the best method for unit testing static > functions, and he convinced me that it's okay to use the direct-include > method in relatively simple cases, where the file is small and including > it isn't going to cause namespace problems with the unit test. But that > seems no longer to be the case here. > > So, because I want to get this merged for alpha, I reverted back to using > double-underscore, non-static functions. However, I created a tsig_p.h > instead of having the prototypes be in the public tsig.h. > > 4701. [cleanup] Refactored lib/dns/tsig.c to reduce code > duplication and simplify the disabling of MD5. > [RT #45490] > > 9.12.0