Commit Graph
194 Commits
Author SHA1 Message Date
Mark Andrews c8f37c2c99 1849. [doc] All forms of the man pages (docbook, man, html) should
have consistant copyright dates.
2005-04-07 02:22:34 +00:00
Mark Andrews 9e4db62a34 update copyrights 2004-03-09 06:12:49 +00:00
Mark Andrews 48cfc9344f update_copyrights 2003-10-09 07:32:57 +00:00
Mark Andrews c1df871a18 silence compiler warnings (HPUX/11i) 2003-07-23 06:57:59 +00:00
Mark Andrews f4d86cfcea update_copyrights 2003-07-22 04:03:54 +00:00
Mark Andrews ed41e594b0 1463. [bug] dns_rdata_from{wire,struct}() failed to catch bad
NXT bit maps. [RT #5577]
2003-05-15 05:41:13 +00:00
Mark Andrews 891c424e56 update_copyrights 2002-08-05 06:57:16 +00:00
Mark Andrews 70fc53059f 1326. [bug] Badly encoded LOC record when the size, horizontal
precision or vertical precision was 0.1m.
2002-07-02 13:53:41 +00:00
Andreas Gustafsson 976dd45973 pullup:
compare: a REQUIRE() was comparing a variable against itself not agaist the
other arguement as it should have been.
2001-09-11 01:09:07 +00:00
Mark Andrews c38b92000c 947. [bug] dns_rdata_soa_t had a badly name element "mname" which
was really the RNAME field from RFC1035.  To avoid
                        confusion and silent errors that would occur it ther
                        "origin" and "mname" elements were given their correct
                        names "mname" and "rname" respectively, the "mname"
                        element is renamed to "contact".
2001-07-30 01:09:14 +00:00
Mark Andrews bddfe77128 936. [func] Warn when non dotted decimal quad's are used.
[RT #1084]

 935.   [bug]           inet_pton failed to reject leading zeros.
2001-07-16 03:06:53 +00:00
Mark Andrews 85bdc128fc Relax REQUIRES() in *fromstruct() and unconditionally call
mem_maybedup() in *tostruct().
TXT is one or more (not zero or more) strings.
2001-06-21 04:00:47 +00:00
Andreas Gustafsson 08a44b06ef the length of the NULL record RDATA can be zero;
do not assert the contrary
2001-06-20 17:43:31 +00:00
Andreas Gustafsson 9762fd29cc DNAME now has an RFC 2001-04-27 21:02:01 +00:00
Brian Wellington caa55a6557 When printing KEY records with COMMENT and MULTILINE, the line would often
be too long.
2001-03-28 02:57:26 +00:00
Brian Wellington ae114ded82 Fix a bunch of unused variable warnings that only occurred with assertions
turned off.
2001-03-16 22:53:20 +00:00
Mark Andrews 9ac7076eba 769. [func] Improved error reporting when parsing rdata. [RT #740]
Two new error codes.  Also push back the last token, if it makes
sense to do so, so that it gets printed in the error message using
RETTOK macro, rather than straight return or RETERR.
2001-03-06 22:11:18 +00:00
Brian Wellington cdc50af0bf In the towire_* and additionaldata_* routines, add an offsets table to names
passed into dns_name_toregion().  This is effectively free, and reduces the
number of calls to set_offsets() and dns_name_clone() in name compression.
2001-02-12 03:05:05 +00:00
Mark Andrews 7dbb39a417 680. [bug] dns_rdata_fromstruct() mis-handles options bigger
than 255 octets.
2001-01-16 06:14:00 +00:00
Brian Wellington e5fb13fb23 The asserts in fromstruct were too strong - it's possible to have a non-NULL
key and keylen == 0 if the pointer is to a 0 byte allocation.
2001-01-11 03:11:30 +00:00
Brian Wellington 499b34cea0 copyright update 2001-01-09 22:01:04 +00:00
Andreas Gustafsson 63cef8bde8 added UNUSED() macros for arguments that end up unused when assertion checking
is turned off
2000-12-01 01:40:59 +00:00
Andreas Gustafsson daf99720c9 the existence of a dynamically allocated array for the NXT
bits should not depend on its length
2000-11-14 18:14:44 +00:00
Brian Wellington add4043305 The identical gettoken() routines in rdata.c, hex.c, and base64.c have
been replaced with isc_lex_getmastertoken().
2000-11-08 01:56:15 +00:00
Brian Wellington 0a6ddf7b82 A typo caused null keys to be printed incorrectly. 2000-10-31 20:12:32 +00:00
Mark Andrews b589e90689 Remove the rdata->length == 0 checks, UPDATE pseudo rdata are now tagged.
Add sanity checks to rdata types where the length cannot legally be zero.
2000-10-25 05:44:10 +00:00
Brian Wellington e484f9de4f The nxt structure was basically useless. 2000-10-06 22:41:16 +00:00
Brian Wellington 8c7fa43b3c Make dst_region_computeid() take an algorithm, since it was returning the
wrong id for RSA keys.  Also clean up a few error messages from dst routines.
2000-09-08 14:23:49 +00:00
Andreas Gustafsson 9f139761ca don't use parentheses in the text representation of RRs unless
we are in multiline mode; this ensures that the output can be re-parsed with
dns_rdata_fromtext
2000-08-24 21:41:44 +00:00
Brian Wellington 9ce72fc748 don't print parens at all if in non-multiline mode. 2000-08-22 22:07:13 +00:00
Brian Wellington 2f507825cf _tostruct had a few typos. 2000-08-10 01:59:39 +00:00
David Lawrence 40f53fa8d9 Trailing whitespace trimmed. Perhaps running "perl util/spacewhack.pl in your
own CVS tree will help minimize CVS conflicts.  Maybe not.
Blame Graff for getting me to trim all trailing whitespace.
2000-08-01 01:33:37 +00:00
Brian Wellington 0e93f65e10 Print the key id when DNS_STYLEFLAG_COMMENT is passed to _totext() 2000-07-31 19:47:21 +00:00
Brian Wellington 2b518b5fb4 fixedname.h is not needed 2000-07-31 19:40:52 +00:00
David Lawrence 15a4474541 word wrap copyright notice at column 70 2000-07-27 09:55:03 +00:00
David Lawrence 5eae30a019 in fact, ISC_LANG_BEGINDECLS and ISC_LANG_ENDDECLS are not needed at all since
rdatastructpre.h and rdatastructsuf.h already provide the wrapper.
(no need to pull up.)
2000-06-28 19:07:19 +00:00
David Lawrence 778d24f5ba do not include isc/lang.h; rdatastructpre.h already gets it.
no need to pull these changes up to the 9.0.0 branch.
2000-06-28 19:03:24 +00:00
David Lawrence 28d9fd5381 update_copyrights 2000-06-21 22:45:24 +00:00
Andreas Gustafsson 12dd8db40b don't indent comments by one space 2000-06-16 21:45:51 +00:00
David Lawrence 6d12fdf966 Megacommit of many files.
Mostly, several functions that take pointers as arguments, almost
always char * pointers, had those pointers qualified with "const".
Those that returned pointers to previously const-qualified arguments
had their return values qualified as const.  Some structure members
were qualified as const to retain that attribute from the variables
from which they were assigned.

The macro DE_CONST is used to deal with a handful of very special
places where something is qualified as const but really needs to have
its const qualifier removed.

rdata.c now defines macros for the prototypes of the basic rdata functions,
and all of the lib/dns/rdata/**/*.c files now use them.

Some minor integer-compatibility issues.  (IE, ~0x03 is a signed int,
so assigning it to an unsigned int should use a cast.  The type of an
enum member is int, so there are some conversion issues there, too.)

A pointers-to-function should not be cast to a pointer-to-object.

Variables should not be named for C reserved identifiers.

One or two set-but-not-used variables removed.

Minor other ISC style cleanups.
2000-06-01 18:26:56 +00:00
Brian Wellington 5d83b561ad Added dns_tsigrcode_totext/fromtext 2000-05-25 00:46:32 +00:00
David Lawrence ed019cabc1 fixed lines > 79 columns wide 2000-05-24 05:10:00 +00:00
Andreas Gustafsson 1ac4b2a1da when printing a SIG record with covers==0, print it as 0,
not RESERVED0
2000-05-22 21:42:47 +00:00
Mark Andrews 373ce67419 Implement dns_rdata_fromstruct() where not already done.
Add missing REQUIRE tests to existing implementations.
2000-05-22 12:38:12 +00:00
Mark Andrews 1e2cf7696f tostruct() initalise region from rdata. 2000-05-19 13:05:51 +00:00
Mark Andrews e6caf43a0b ctype.h is now included in rdata.c 2000-05-19 02:12:56 +00:00
Mark Andrews 1bb227b988 dns_name_dup() -> name_duporclone() in tostruct(). 2000-05-19 02:03:56 +00:00
Mark Andrews 3ef59f5561 Fix bad REQUIRE in tostruct(). 2000-05-19 02:02:11 +00:00
Mark Andrews 2b24b1909f remove REQUIRE(mctx != NULL) from tostruct 2000-05-18 06:27:07 +00:00
Mark Andrews 206c71aae4 handle freestruct(.. mctx = NULL); 2000-05-18 05:46:52 +00:00