2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-30 21:45:37 +00:00
Commit Graph

8955 Commits

Author SHA1 Message Date
JINMEI Tatuya
d127560b02 [1579] suggested addition: a missing test case for an empty wildcard name. 2012-04-12 20:00:45 -07:00
JINMEI Tatuya
793772f302 [1579] suggested addition: a missing test case for an empty name. 2012-04-12 19:44:02 -07:00
JINMEI Tatuya
be2b8d67e2 [1579] suggested updates to unit tests.
- consolidated test scenarios for NSEC and NSEC3 to avoid duplicates
- also tested the case for findAll()
- also tested when the zone only has NSEC3PARAM or unsigned
2012-04-12 18:49:16 -07:00
JINMEI Tatuya
6cd82ad2a6 [1579] suggested doc update.
I also renamed init() to probe() as the latter seemed more appropriate
in terms of what it does.
2012-04-12 16:08:41 -07:00
JINMEI Tatuya
493f952e69 [1579] cleanup: removed an unused class member variable. 2012-04-12 15:31:12 -07:00
JINMEI Tatuya
9b6993002b [1579] (suggested) cleanup, mainly moving isNSEC[3] to FindDNSSECContext
these are short, and only used in FindDNSSECContext, so it'd make more sense
to enclose them there.
Other cleanups:
- also made FindDNSSECContext::isNSEC/isNSEC3 private as they now don't need
  to be called outside the class
- removed isInited(); simpy doesn't see the need for it as a separate method
- simplified the code logic of getResultFlag()
2012-04-12 15:25:46 -07:00
JINMEI Tatuya
fb23175505 [1579] cleanup: FINAL_TYPES_NO_NSEC & findNSECCover are now unused and removed.
the latter has been merged to getDNSSECRRset().  doxygen comments were
also merged.
2012-04-12 14:55:42 -07:00
JINMEI Tatuya
52e971851f [1579] suggested change: made findNoNameResult completely DNSSEC-agnostic.
same adjustment as the previous comment was made for tests.
also fixed a small bug in getDNSSECRRset(): I should have reversed the
logic for need_nscheck.
2012-04-12 14:46:01 -07:00
JINMEI Tatuya
07274f662a [1579] suggested change: made findNoNameResult a bit more DNSSEC-agnostic.
to make a related test pass, incorporated the NotImplemented exception
handling from findNSECCover to getDNSSECRRset.
note: in this commit I reversed the behavior when we encounter the situation
where NSEC is expected but cannot be found; it now returns a NULL pointer,
although the NSEC_SIGNED flag can be still set.

It's a quite broken case of zone config so it's probably up to the
implementation, and in that sense throwing an exception is not necessary
wrong.  But we may have such a situation in a valid scenario if and when we
support incremental zone signing.  Also, this behavior is consistent with
BIND 9.

The emptyNonterminalNSEC test case was adjusted accordingly.
2012-04-12 14:25:41 -07:00
JINMEI Tatuya
c3bc4e0251 [1579] suggest change: made findWildcardMatch DNSSEC-agnostic.
to do this, I extended getDNSSECRRset(name) further: it now takes 'covering'
parameter, depending on whether the requested NSEC is for the exact name
or the covering ("previous") name.  In the latter case it does the same
thing as findNSECCover() (which will be merged to getDNSSECRRset later).
2012-04-12 13:55:14 -07:00
JINMEI Tatuya
b77375be27 [1579] suggested change: made findOnNameResult DNSSEC-agnostic about flags.
now FindDNSSECContext has sufficient information to choose the correct flag,
findOnNameResult() can simply call its getResultFlags().
as an additional bonus, we can constify 'flags'.
2012-04-12 13:23:20 -07:00
JINMEI Tatuya
05793b5a18 [1579] suggested change: made findOnNameResult more DNSSEC agnostic
- renamed getNSECRRset to getDNSSECRRset to clarify it's for generic DNSSEC
  purpose, even though it's essentially NSEC specific.
- moved the 'isNSEC' check to the now-renamed getDNSSECRRset, thereby removing
  the need for checking that within findOnNameResult.
2012-04-12 13:09:41 -07:00
JINMEI Tatuya
186bacfc7b [1579] suggested change: pass a reference of ZoneFinder to DNSSECContext.
instead of a pointer.
IMO, finderp_ should better be a reference than a pointer if we'd
worry about the case where it's NULL later on, like getNSECRRset
does (which shouldn't never happen in our usage).
the NULL pointer check was therefore removed with this change.
2012-04-12 11:50:05 -07:00
JINMEI Tatuya
058af3dc4b [1579] suggested changes: made FindDNSSECContext more focused.
removed origin_ or complete flags_ from the class members.  non DNSSEC-specific
processing was recovered from the original version.
also made FindDNSSECContext private inside ZoneFinder; it doesn't have to
be publicly usable.
also made indentation policy more consistent for the class.
2012-04-12 11:40:09 -07:00
JINMEI Tatuya
2d99288b34 [1579] more cleanups, mostly editorial ones.
- indentation
- spelling: 'other else' should be 'otherwise'
- constify
- avoid using an unnecessary temporary variable
2012-04-11 18:02:33 -07:00
JINMEI Tatuya
52ee8a2874 [1579] another editorial fix: spacing. 2012-04-11 17:27:53 -07:00
JINMEI Tatuya
33f9ea32c6 [1579] made some definitions of ZoneFinder private.
They are only used for FindDNSSECContext, which is part of ZoneFinder
and can refer to its private members.
2012-04-11 17:20:30 -07:00
JINMEI Tatuya
ed4c07d55c [1579] various style fixes.
- () for return
- indentation
- brace position
- and a few other small things
2012-04-11 17:15:42 -07:00
Jeremy C. Reed
77b918b706 [trac1579] re-add removed character
I assume the previous change was an accident.
2012-04-11 12:28:35 -05:00
haikuo zhang
4eeff0e79d [1579] adjust codes for the flag in the find function. Using a helper class to
deal with the flag.
2012-04-11 23:30:29 +08:00
JINMEI Tatuya
c31cfdf844 [1579] editorial cleanups: shortened long lines, indentation consistency. 2012-03-30 16:43:01 -07:00
JINMEI Tatuya
cd6faa250e [1579] folded a long line 2012-03-30 15:21:41 -07:00
JINMEI Tatuya
5893305969 [1579] more suggested editorial fixes: use boolean as boolean 2012-03-30 15:18:53 -07:00
JINMEI Tatuya
4196650265 [1579] some more suggested editorial fixes:
- use boolean as boolean: if (is_xx == true) => if (is_xx)
- spacing consistency if (X){ => if (X) { // (many of this in the branch)
- folded a long line
2012-03-30 15:12:58 -07:00
JINMEI Tatuya
ad0ce258df [1579] editorial cleanup, mostly per the guidelines.
- folded long lines
- removed white space at EOL
- spacing consistency.  in particular, add one space after comma
- alignment
2012-03-30 15:01:35 -07:00
JINMEI Tatuya
fa4aa9c87c [1579] cancel unnecessary change (this will help reduce conflict on merge) 2012-03-30 14:36:22 -07:00
haikuo zhang
94793e41d9 [1579] If nsec and nsec3 coexist in zone, find function and findAll
function will throw error. find and findAll function will set
RESULT_NSEC3_SIGNED if the zone is signed with NSEC3.
2012-03-30 19:52:51 +08:00
JINMEI Tatuya
dfd2aeefef [1579] more editorial and style (guideline) fixes 2012-03-22 17:52:23 -07:00
JINMEI Tatuya
1c57fb2350 [1579] more editorial fixes 2012-03-22 17:52:10 -07:00
JINMEI Tatuya
8c55200c17 [1579] constified is_nsec3 2012-03-22 17:35:07 -07:00
JINMEI Tatuya
ae40f56b7e [1579] suggested change for an awkward comment line:
- s/NSEC3PARAMETER/NSEC3PARAM/
- "definitely" is too strong in this context
- add a space after a comma
- "zonefile" is awkward (there's no "zonefile" in this context)
- "NSEC3 method" is an awkward term
- "this zone signature" is also awkward
2012-03-22 17:18:52 -07:00
JINMEI Tatuya
dd8d9d4ab3 [1579] editorial: removed spaces at EOL; folded long lines, () after return. 2012-03-22 17:04:38 -07:00
haikuo zhang
29e01b55a5 [1579] adjust codes after discussion with jinmei. append more unit
tests for negative case in find function
2012-03-22 21:23:55 +08:00
JINMEI Tatuya
c96ac865ac [1579] some trivial editorial/style fixes
- removed white spaces at EOL
- add a spaece after commas
- variable naming convention (use underscored lower cased chars)
- indentation
2012-03-19 14:01:04 -07:00
haikuo zhang
8e4c960405 [1579] update unit test. In this unit test, I update NSEC3PARAM
type RR data to database,and it works smoothly.
2012-03-19 13:08:04 +08:00
haikuo zhang
0b1b0da6ff [1579] add RESULT_NSEC3_SIGNED flag if the zone is signed using nsec3 in
the response of NXDOMAIN and NXRRSET
2012-03-13 09:43:56 +08:00
Mukund Sivaraman
6e7eee31fa Add more .gitignore files (for unit tests) 2012-03-09 12:33:02 +05:30
Mukund Sivaraman
2b13ceb687 Add more .gitignore files for the rest of generated stuff 2012-03-09 07:13:01 +05:30
Mukund Sivaraman
71032a09e3 [1673] Remove WIFCONTINUED and WIFSTOPPED checks
These are unnecessary and don't seem to be available on platforms like
NetBSD.
2012-03-08 13:30:29 +05:30
Mukund Sivaraman
4299179844 Add more .gitignore files 2012-03-08 12:43:35 +05:30
Mukund Sivaraman
99c9c5e589 Add a basic .gitignore to ignore build related fluff 2012-03-08 09:36:41 +05:30
Mukund Sivaraman
ead42e5f51 [1673] Add ChangeLog entry 2012-03-08 09:32:36 +05:30
Mukund Sivaraman
3adabc6a1e [1673] Output the signal name even when the process dumps core 2012-03-08 09:30:28 +05:30
Mukund Sivaraman
1cd0d0e4fc [1673] Decode exit status in boss 2012-03-08 09:30:22 +05:30
JINMEI Tatuya
14d4b5dd3e [master] explicitly declare/define virtual destructor for ZoneFinder::Context.
This will fix a build error on some systems, and is a good practice anyway.
Also fix a minor wording error in a comment.
2012-03-07 16:16:54 -08:00
JINMEI Tatuya
abfbe328e4 [master] changelog for #1607 2012-03-07 14:23:44 -08:00
JINMEI Tatuya
2e940ea65d [master] Merge branch 'trac1607' with fixing conflicts:
src/lib/datasrc/tests/Makefile.am
auth_srv_unittest.cc needed an adjustment, but I believe it's trivial,
so I'm commiting and pushing it.
2012-03-07 14:06:55 -08:00
Jelte Jansen
4a82ece4c4 [master] update changelog for #1093 and #1741 2012-03-07 18:50:20 +01:00
Jelte Jansen
b8960ab85c [master] Merge branch 'trac1741' 2012-03-07 18:39:11 +01:00
Jelte Jansen
f537c7e12f [master] Merge branch 'trac1093' 2012-03-07 18:39:01 +01:00