2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-27 12:38:24 +00:00

311 Commits

Author SHA1 Message Date
Mark Andrews
a7038d1a05 copyrights 2002-02-20 03:35:59 +00:00
Mark Andrews
23cb957a81 1201. [bug] Require that if 'callbacks' is passed to
dns_rdata_fromtext(), callbacks->error and
                        callbacks->warn are initalised.
2002-02-12 03:45:54 +00:00
Mark Andrews
b6a0341bcb don't reference through potentially NULL callback pointers. 2002-02-11 22:30:28 +00:00
Mark Andrews
c46f10e4a1 Use as_textregion.base not as_pointer. [RT #2385] 2002-01-21 01:07:32 +00:00
Olafur Gudmundsson
90e303b114 Adding function isc_region_compare and using in instead of compare_region in lib/dns 2002-01-05 07:05:28 +00:00
Andreas Gustafsson
242bba8991 1151. [bug] nslookup failed to check that the arguments to
the port, timeout, and retry options were
                        valid integers and in range. [RT #2099]

1150.   [bug]           named incorrectly accepted TTL values
                        containing plus or minus signs, such as
                        1d+1h-1s.

1149.   [func]          New function isc_parse_uint32().
2001-11-30 01:02:18 +00:00
Andreas Gustafsson
751af0ee2f duplicate code consistently 2001-11-26 23:37:24 +00:00
Brian Wellington
d9af67ef70 add RSA to the secalgs list in rdata.c (as a synonym for RSAMD5), remove the
special case code in dnssec-keygen to parse RSA.
2001-11-15 19:44:52 +00:00
Andreas Gustafsson
f3ca27e9fe sizeof style 2001-11-12 19:05:39 +00:00
Andreas Gustafsson
6bebabb376 Also disallow creation of TYPE0 records from wire data 2001-10-03 00:51:38 +00:00
Andreas Gustafsson
de5247ae16 Disallow creation of TYPE0 records from master files, since the server reserves type 0 for
internal purposes related to negative caching
2001-10-02 23:33:04 +00:00
Brian Wellington
21825a8d00 Sync up the dnssec key algorithms listed in include/dns/keyvalues.h and
rdata.c.
2001-09-19 00:14:48 +00:00
Mark Andrews
e6f17474cb 1000. [func] Accept "HESIOD" as a alias for class "HS". 2001-09-16 05:27:04 +00:00
Brian Wellington
36e37042c6 997. [func] Add support for RSA-SHA1 keys. 2001-09-15 00:01:58 +00:00
Andreas Gustafsson
76c8294c81 format string bugs and improved format string checking [RT #1578] 2001-08-08 22:54:55 +00:00
Brian Wellington
cabaeca9ae missing assertion checks 2001-07-16 09:48:05 +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
Andreas Gustafsson
ad493ef9dd spacing 2001-07-06 20:15:08 +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
330705066b Wrap inet_ntop() and use that in the _totext() functions. The wrapper calls
inet_ntop() and copies the output (but not the trailing null) into the buffer.
2001-01-25 20:14:42 +00:00
Brian Wellington
499b34cea0 copyright update 2001-01-09 22:01:04 +00:00
Mark Andrews
228c679d7a 662. [bug] dns_rdata_fromtext() failed to log certain errors. 2001-01-08 06:54:35 +00:00
Mark Andrews
8dd5237a27 655. [bug] Improve error reporting on unexpected eof when loading
zones. [RT #611]
2001-01-04 23:43:53 +00:00
Andreas Gustafsson
ca2912424b DEL (ASCII 127) is not a printable character and should be
backslash-decimal quoted when printing TXT record
2001-01-02 04:24:52 +00:00
Mark Andrews
5f7a9845e9 make ISC_LIST_CHECKINIT work 2000-12-19 04:46:36 +00:00
Andreas Gustafsson
6c29053a20 614. [bug] Checks for uninitialized link fields were prone
to false positives, causing assertion failures.
                        The checks are now disabled by default and may
                        be re-enabled by defining ISC_LIST_CHECKINIT.
2000-12-15 00:20:55 +00:00
Mark Andrews
5d2026ea7b relax initalied checks 2000-12-14 22:09:51 +00:00
Brian Wellington
78838d3e0c 8 space -> tab conversion 2000-12-11 19:24:30 +00:00
David Lawrence
e086935752 isc_hex_tobuffer() third argument is unsigned int, not unsigned long 2000-12-06 22:33:39 +00:00
Andreas Gustafsson
7e4cda9965 renamed rdata_valid() to rdata_validate() and commented it 2000-11-20 21:58:01 +00:00
Brian Wellington
f164957327 Allocate a buffer large enough to hold the unknown rr data, not a buffer
with the same amount of free space as the target buffer.
2000-11-20 21:41:53 +00:00
Brian Wellington
93ed317bb4 unknown rr type parsing code deuglification. 2000-11-20 21:29:41 +00:00
Mark Andrews
25a66b4e41 #include <isc/print.h> 2000-11-20 13:02:18 +00:00
Mark Andrews
7d8cdd869e pointer arithmetic on (void*) is a no-no.
use extened buffer api to calculate lengths.
2000-11-20 06:54:40 +00:00
Brian Wellington
2ea44ff332 Unknown rrs would not be parsed correctly when in an rdataset with known rrs. 2000-11-19 23:19:23 +00:00
Brian Wellington
1275a72e8d Don't allow metatypes to be loaded using the \# format. 2000-11-19 22:12:42 +00:00
Andreas Gustafsson
8c962eba3d I really shouldn't commit stuff until it at least compiles 2000-11-15 19:11:36 +00:00
Andreas Gustafsson
d3a86da2e8 563. [func] New public functions dns_rdatatype_format() and
dns_rdataclass_format(), for convenient formatting
                        of rdata type/class mnemonics in log messages.
2000-11-15 19:05:32 +00:00
Brian Wellington
942d1a339b Decompression contexts now take a type instead of the "strict" boolean
value - the type can be "any", "strict", or "none".  This fixes potential
problems with compression in unknown rr types.
2000-11-14 23:29:55 +00:00
Brian Wellington
ac5921d110 validating that rdata of a known type expressed using the unknown type
syntax is correct didn't work.
2000-11-10 01:37:40 +00:00
Brian Wellington
3a16668468 fix a few minor problems in the unknown rrtype support. 2000-11-10 00:25:46 +00:00
Brian Wellington
ebfcb6cf66 550. [func] Support unknown rdata types and classes. 2000-11-09 23:55:05 +00:00
Brian Wellington
a90dcd1f19 the wrong result code was being printed 2000-11-09 00:20:47 +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
5cca7753fd RRTYPE -> TYPE for unknown types 2000-11-07 23:44:33 +00:00
Mark Andrews
368b37b616 dns_rdata_invalidate -> dns_rdata_reset 2000-10-31 03:22:05 +00:00
Brian Wellington
f1cae4bcb7 DNS_RDATA_INITIALIZED was spelled wrong (missing an 'i'), and also not
spelled the same way as other uses of the word "initialize" (it had an 's',
not a 'z').
2000-10-27 21:29:23 +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
Mark Andrews
c03bb27f06 532. [func] Implement DNS UPDATE pseudo records using
DNS_RDATA_UPDATE flag.

 531.   [func]          Rdata really should be initalized before being
                        assigned to (dns_rdata_fromwire(), dns_rdata_fromtext(),
                        dns_rdata_clone(), dns_rdata_fromregion()),
                        check that it is.
2000-10-25 04:26:57 +00:00
Mark Andrews
389c749a5e 530. [func] New function dns_rdata_invalidate(). 2000-10-24 02:03:33 +00:00