233 Commits
Author SHA1 Message Date
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
Brian Wellington 37a8fbab3a 411. [bug] A typo in the HS A code caused an assertion failure. 2000-08-28 17:39:21 +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
Andreas Gustafsson efadda9a7b added UNUSED() macros to suppress compiler warnings when
compiling with assertion checking turned off
2000-08-08 23:40:46 +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
David Lawrence 23b251fbf2 needs <dns/name.h> for dns_name_t 2000-07-31 20:57:06 +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 9c3531d72a add RCS id string 2000-06-22 22:00:42 +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 003a40178f make DNS_RDATACOMMON_INIT work again. structure elemnts had the same name as
the downcased macro argument names
2000-06-07 00:11:51 +00:00
David Lawrence fccbca2cdf style lint; macro parameter names are lowercase 2000-06-06 15:23:26 +00:00
Mark Andrews ba6f0d85b4 Add macro to initalise the common part of a rdata struct. 2000-06-06 02:03:23 +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
Andreas Gustafsson fd6de7af32 refer to RFC2845, not draft-ietf-dnsext-tsig-00.txt 2000-06-01 16:47:26 +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 389e24909e return ISC_R_SUCCESS from tostruct(). 2000-05-19 13:28:36 +00:00
Mark Andrews a2b5255212 remove INSIST(ISC_FALSE) from freestruct(). 2000-05-19 13:27:45 +00:00
Mark Andrews 1e2cf7696f tostruct() initalise region from rdata. 2000-05-19 13:05:51 +00:00
Mark Andrews e7514afccb Convert tostruct() to new API. 2000-05-19 13:04:45 +00:00
Mark Andrews e6caf43a0b ctype.h is now included in rdata.c 2000-05-19 02:12:56 +00:00
Mark Andrews 251705f683 Lowercase the service string as some getservbyname() are case sensitive
and the database is usually in lowercase.
2000-05-19 02:07:16 +00:00
Mark Andrews 4333126a5c Name structures were not being initialized. 2000-05-19 02:06:00 +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
Mark Andrews e7359c3a86 Implement totext(). RFC 2671 does *not* specify a presentation format.
[option length [base64string] ] ...
2000-05-17 03:39:29 +00:00
David Lawrence 34b394b43e DNS_R_RANGE -> ISC_R_RANGE 2000-05-15 21:14:38 +00:00
David Lawrence 71f88e821c Fixed IRIX warnings:
"./rdata/any_255/tsig_250.c", line 74: remark(1506): implicit conversion from
          "unsigned long" to "int":  rounding, sign extension, or loss of
          accuracy may result
"./rdata/any_255/tsig_250.c", line 95: remark(1506): implicit conversion from
          "unsigned long" to "int":  rounding, sign extension, or loss of
          accuracy may result

The values in question were already being checked to be within the range of
a short, so where the warnings were occuring they were just cast to int.
2000-05-13 22:50:49 +00:00
David Lawrence 652c80435a Fixed IRIX warnings:
"./rdata/generic/tkey_249.c", line 89: remark(1506): implicit conversion from
          "unsigned long" to "int":  rounding, sign extension, or loss of
          accuracy may result
"./rdata/generic/tkey_249.c", line 98: remark(1506): implicit conversion from
          "unsigned long" to "int":  rounding, sign extension, or loss of
          accuracy may result

The values in question were already being checked to be within the range of
a short, so where the warnings were occuring they were just cast to int.
2000-05-13 22:46:07 +00:00
David Lawrence e14969d293 Fixed IRIX warning:
"./rdata/generic/unspec_103.c", line 138: warning(1184): possible use of "="
          where "==" was intended
by changing to ==, which is clearly what was intended.
2000-05-13 22:39:03 +00:00
David Lawrence 17547ed8c9 Fixed IRIX warning:
"./rdata/generic/opt_41.c", line 73: remark(1552): variable "option" was set
          but never used
by removing option, because there was nothing to do with its value.
2000-05-13 22:33:29 +00:00
David Lawrence 7c7d67b5d8 Fixed IRIX warning:
"./rdata/in_1/a6_38.c", line 259: remark(1552): variable "octets" was set but
          never used
by using UNUSED() on this stack variable.  I didn't take it out altogether
because this function is not yet finished, but someone was starting to
do some work on it and I didn't want to undo that.
2000-05-13 22:07:57 +00:00
David Lawrence 873484b40d Fixed IRIX warning:
"./rdata/generic/nxt_30.c", line 66: warning(1042): operand types are
          incompatible ("char *" and "void *")
by casting to char *, as already being done with several other uses of
token.value.as_pointer.
2000-05-13 22:05:39 +00:00