Commit graph

2668 commits

Author SHA1 Message Date
Michael Graff
0d89e0d55c fix a bug where ev_sender wasn't properly set, and convert sender, arg, action, etc. to ev_sender, ev_arg, ev_action, etc. 2000-04-17 19:21:30 +00:00
Michael Graff
c0a8689438 use correct type, not int 2000-04-14 23:03:13 +00:00
Michael Graff
5d4660ccb5 maila/mailb are only allowed as questions, too 2000-04-14 22:59:01 +00:00
Michael Graff
fa018cb51f axfr and ixfr can occur only in the question section, not in the 'body' 2000-04-14 22:42:24 +00:00
Michael Graff
7ec579cd5d Add functions to check that a type is only or is not allowed in a question section 2000-04-14 20:13:49 +00:00
Michael Graff
3bb3b7ac46 implement singleton type checking 2000-04-14 18:36:45 +00:00
Brian Wellington
77294b9d64 typepresent should be correct now 2000-04-14 18:33:33 +00:00
Brian Wellington
69feefe246 META type hack no longer needed 2000-04-14 17:28:21 +00:00
Brian Wellington
fe5ba8ddb5 memory leak cleanup, error if multiple nxts are present in negative answer 2000-04-14 16:00:33 +00:00
Michael Graff
0ed4c4ee35 make unreachable hard errors. 2000-04-14 15:38:28 +00:00
Brian Wellington
777ac454c0 Fixed locking problems in event handlers. Reordered NXT processing to
do range checks before verify, since it's faster.
2000-04-14 02:30:12 +00:00
Andreas Gustafsson
fa44c25a93 checkpoint: the validated() function now does its thing
for positive validations, but does not yet handle things like shutdown
correctly
2000-04-13 22:35:49 +00:00
Brian Wellington
e83cae7fa8 snapshot - partial support for negative answer verification and a couple bug
fixes.
2000-04-13 18:10:07 +00:00
Brian Wellington
53c892082e Added dns_nxt_typepresent() 2000-04-13 18:08:07 +00:00
Brian Wellington
b5fff54fe9 SIG records were not properly negatively cached. 2000-04-13 17:01:19 +00:00
Andreas Gustafsson
3ae7579332 If a fetch with sigrdataset==NULL joined one with sigrdataset!=NULL
or vice versa, the resolver could catch an assertion or lose signature data,
respectively.
2000-04-13 16:43:02 +00:00
Mark Andrews
b61bbad878 Freebsd 4.0 needs sys/param.h for ALIGN 2000-04-13 08:10:18 +00:00
David Lawrence
c80dde0676 Comments about enhancements that could be made now that parent pointers exist. 2000-04-12 21:38:04 +00:00
David Lawrence
b2e0809295 include dns/rbt.h 2000-04-12 21:32:13 +00:00
David Lawrence
510f4bdcb6 static zapnode_and_fixlevels renamed to public dns_rbt_deletenode.
deletion no long requires a valid chain.  chain gook removed from all
of the deletion functions.

Minor unrelated doc & code convention cleanups.
2000-04-12 21:31:02 +00:00
David Lawrence
d3c34e76d6 Stole one bit from node's 'attributes' bitfield for 'is_root' boolean.
Prototyped and documented dns_rbt_deletenode.
2000-04-12 21:27:49 +00:00
David Lawrence
567f3a25bc do not include dns/rbt.h 2000-04-12 21:25:27 +00:00
David Lawrence
7b4e52d119 include dns/rbt.h 2000-04-12 21:25:10 +00:00
Brian Wellington
9c418665dd Responses containing multiple names in the authority section were not
negatively cached.
2000-04-12 19:27:15 +00:00
Bob Halley
fca5f81ad6 using snprintf or vsnprintf requires isc/print.h 2000-04-12 19:07:12 +00:00
Brian Wellington
63bf060be4 dst_key_iszonekey() checks that the key's protocol is DNSSEC or ANY.
Remove this check from the validator, and remove more redundant constants
from dst.h
2000-04-12 15:52:12 +00:00
Bob Halley
b65c8325a7 If the user has specified auth-nxdomain, do not warn about the default
being changed.
Fix typo.
2000-04-12 02:04:03 +00:00
Bob Halley
738b9aa3de isc_task_create() API change 2000-04-12 01:41:21 +00:00
Bob Halley
f80ea74e19 isc_task_create() API change; attach to mctx 2000-04-12 01:37:41 +00:00
Bob Halley
a0f9edd9a4 attach to memory context 2000-04-12 01:35:59 +00:00
Bob Halley
64b1a68e10 isc_task_create() no longer takes an mctx.
isc_task_mem() has been eliminated.
Use memory context reference counting.
2000-04-12 01:34:16 +00:00
Bob Halley
f6c77dd407 Use memory context reference counting.
Timers now use the timer manager's mctx, not the task's.
2000-04-12 01:27:20 +00:00
Bob Halley
823ed8c082 isc_mem_destroy_check is now isc_mem_setdestroycheck 2000-04-12 01:25:07 +00:00
Bob Halley
fd3271152c Add isc_mem_attach(), isc_mem_detach(), isc_mem_preallocate(), and
isc_mem_setsplit().  Rename isc_mem_destroy_check() to
isc_mem_setdestroycheck().  Add isc_mem_inuse().
2000-04-12 01:24:17 +00:00
Andreas Gustafsson
1723fbf70a use the UNUSED() macro 2000-04-11 23:15:30 +00:00
Andreas Gustafsson
ecfe4a3490 validator_log() logged garbage after RR type 2000-04-11 22:17:49 +00:00
Brian Wellington
538fea1c91 Added back some code lost by the logging patch, made the keyvalidated event
handler actually work in the easy case.
2000-04-11 20:59:37 +00:00
Andreas Gustafsson
1b1e1fda46 logging 2000-04-11 20:35:37 +00:00
Andreas Gustafsson
b4b4adc097 added convenience function dns_name_format() for use in formatting
log messages
2000-04-11 19:11:46 +00:00
Andreas Gustafsson
5646eb8cd1 use dns_name_format() 2000-04-11 19:08:32 +00:00
David Lawrence
a9cb032d07 comparison of channel->type to NULL should have been to ISC_LOG_TONULL 2000-04-11 18:22:34 +00:00
Andreas Gustafsson
230bc05e7e added DNS_LOGCATEGORY_DNSSEC and DNS_LOGMODULE_VALIDATOR 2000-04-11 18:17:35 +00:00
Brian Wellington
d0e69984a9 dnssec verification of cached sets was failing, since the ttl from the
rdataset was used instead of the ttl from the sig record.  Also found
and fixed an unchecked memory allocation.
2000-04-11 18:04:35 +00:00
Brian Wellington
e7a8dfd296 If we mark an rdataset as secure, also mark the sigrdataset as secure. 2000-04-11 17:12:31 +00:00
Andreas Gustafsson
0f7045b0c4 moved a few more typedefs to <isc/types.h>: isc_region_t,
isc_textregion_t, isc_lex_t
2000-04-10 21:57:24 +00:00
Andreas Gustafsson
e9da40a783 no need to include <isc/buffer.h>, <isc/result.h> from <isc/base64.h> 2000-04-10 21:35:48 +00:00
Andreas Gustafsson
e3b279bfa9 no need to include <isc/buffer.h>, <isc/result.h>, <isc/mem.h> from <isc/base64.h> 2000-04-10 21:33:36 +00:00
Brian Wellington
2a05fa7535 dst_key_iszonekey() was incorrectly checking the 'name type' field of a key.
The constants added to dst.h for dst_key_iszonekey() duplicated constants
in dns/keyvalues.h, and are now gone.
2000-04-10 19:48:05 +00:00
Brian Wellington
17e81b39cd TSIG signed incoming zone transfer works now. 2000-04-08 04:42:42 +00:00
Brian Wellington
dc3fc5830a A couple minor bugs relating to TCP TSIG verification 2000-04-08 04:40:21 +00:00