2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-29 13:07:50 +00:00

9667 Commits

Author SHA1 Message Date
Jeremy C. Reed
e0bcbb981c [master] set library version
make sure use the correct version of libdatasrc.

Error was:
Undefined symbol "_ZN3isc7datasrc35DATASRC_SQLITE_INCOMPATIBLE_VERSIONE"

Discussed on jabber.
2012-04-13 12:22:05 -05:00
Jelte Jansen
57512ac60b [master] update changelog for merge of #1491 2012-04-13 16:17:11 +02:00
Jelte Jansen
00a36e7528 [master] Merge branch 'trac1491' 2012-04-13 16:16:17 +02:00
Michal 'vorner' Vaner
3057455dd0 [1782] Include the NSEC3 namespace in the iterator
It is included using the UNION SQL statement to concatenate the tables
together. The ordering is little bit of a hack. We could order by name,
but that would not be much better and a lot of tests would need to be
modified. Also, the NSEC3 sigtype is hardcoded for the NSEC3 namespace,
as there can be no other signature.
2012-04-13 14:16:28 +02:00
Michal 'vorner' Vaner
65193e8384 [1782] Test nsec3 iteration of sqlite3 zone
We count the NSEC3 records there and check one if it looks correct.
2012-04-13 13:49:10 +02:00
Jelte Jansen
5dcf1dadd1 [master] Merge branch 'trac1789' 2012-04-13 11:20:51 +02:00
haikuo zhang
7c75154f52 Merge branch 'trac1579suggest' 2012-04-13 16:05:17 +08:00
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
Jeremy C. Reed
d8b8e46b85 [master]Merge branch 'master' of ssh://git.bind10.isc.org//var/bind10/git/bind10 2012-04-12 17:15:55 -05:00
Jeremy C. Reed
7116ee3c76 [master] fix typo in a pydoc string comment
trivial / no review
2012-04-12 17:15:09 -05: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
Jeremy C. Reed
291d0cbfdc [master] fix usage synopsis
trivial, not reviewed
2012-04-12 16:49:14 -05: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
Michal 'vorner' Vaner
c47c4c3541 [1577] Code comments for findNSEC3 2012-04-12 14:58:52 +02:00
Michal 'vorner' Vaner
7130e28820 [1577] Logging for findNSEC3 2012-04-12 14:36:45 +02:00
Michal 'vorner' Vaner
a29df11575 [1577] Port the in-memory loop to database findNSEC3
The high-level logic of finding it is similar, so we take the loop from
the in-memory data source and adapt it to the database.
2012-04-12 14:11:25 +02:00
Jelte Jansen
56338ac70f [1789] more review comments
in xfrin
- add note about lack of thread-safety
- add note about from-source temporariness
- add test for case-insensitive class strings
- directly replace _memory_zones
2012-04-12 12:51:35 +02: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
JINMEI Tatuya
283053c1a3 [master] fixed build failure with SunStudio.
(the intent of the change should be obvious from the diff.)
2012-04-11 16:37:18 -07:00
Jelte Jansen
f173bdf07e [master] fix linker problem in lib/cc unit test
move GTEST_LDADD to the end of the list, so that the source tree libs get linked instead of those installed in the same location as gtest
(reviewed on jabber by jinmei)
2012-04-11 23:33:15 +00:00
JINMEI Tatuya
7ce8291439 [1789] editorial nits: folded long lines, removed redundant spaces. 2012-04-11 15:48:07 -07:00
JINMEI Tatuya
5c9b7307a5 [master] added changelogs for a couple of piggy-backed fixes in #1791 2012-04-11 10:35:16 -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
JINMEI Tatuya
0c0e8a5f4d [master] Merge branch 'trac1791' 2012-04-11 09:47:40 -07: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
Michal 'vorner' Vaner
a98fc15799 [1577] Reuse more code in findNSEC3
The internal function used to create normal RRs when looking them up is
reused for the ones from NSEC3 namespace as well.
2012-04-11 16:57:40 +02:00
Jelte Jansen
94077743ff [1789] address review comments
All in xfrin memory zones handlers;
- normalize zone name and class
- provide strong exception guarantee in _set_memory_zones
- fix comment in _set_db_file
- make _auth_config_update 'protected'

And in the tests:
- extracted memory zones update tests to own class
- added tests for bad data
- added tests for normalization
2012-04-11 16:31:45 +02:00
Michal 'vorner' Vaner
b407617f16 [1577] Test findNSEC3 throws on non-NSEC3 zone
Just confirming it throws in case there's no NSEC3PARAM to compute the
hash by.
2012-04-11 10:46:16 +02:00
Michal 'vorner' Vaner
76f364b152 [1577] First shot at the findNSEC3 implementation
This one is wrong in many ways. It assumes (without checking) it gets an
exact match, it does not check any wrong data, it expects given order of
results. But it passes the minimal test now, and can be used as a base
for improving the implementation.
2012-04-11 10:35:49 +02:00
JINMEI Tatuya
6d7a20689e [1781] unrelated cleanup: reorder header files per guideline and constify. 2012-04-10 18:29:03 -07:00
JINMEI Tatuya
d12134b3a9 [1791] fixed one remaining regression: 'separate_rrs' case was broken.
added a test for that case to confirm the regression and the fix.
also introduced some more cleanups: removed rdata_txt_ so we simplify the
code further, made isSameType static class function (it doesn't refer to
any class attributes), constified separate_rrs_.
2012-04-10 14:57:38 -07:00
JINMEI Tatuya
55cecba6f3 [1491] (editorial) removed white spaces in a blank line. 2012-04-10 11:02:50 -07:00
Michal 'vorner' Vaner
7ef140c77f [1577] Validate the findNSEC3 input
We check the name comes from inside the zone.
2012-04-10 15:58:33 +02:00
Jelte Jansen
7a0dc75cee [1789] keep list of 'sqlite3' type memory ds zones in xfrin 2012-04-10 14:51:56 +02:00
Jelte Jansen
61446fd400 [master] Merge branch 'trac1845' 2012-04-10 10:56:02 +02:00
JINMEI Tatuya
9ad569a0f5 [1792] added a simple lettuce for the "inmemory w/ SQLite3 backend" scenario.
right now it does a simple check for loading and query response from the loaded
zone.  this is intended to be used for the inmemory-from-xfrin scenarios.
2012-04-09 17:04:36 -07:00