2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-28 13:08:06 +00:00

42 Commits

Author SHA1 Message Date
Brian Wellington
4fe8755480 Use the new DST API 2000-06-02 18:59:33 +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
8c8b6b1ce5 include isc/buffer.h, dns/rdatastruct.h 2000-05-30 22:30:39 +00:00
Brian Wellington
a9bc95f22e dst now stores the key name as a dns_name_t, not a char *. 2000-05-24 23:13:32 +00:00
Brian Wellington
fa686a7235 removed more invalid _freestruct calls 2000-05-20 01:27:28 +00:00
Brian Wellington
c50936eb40 changed dst_key_free() prototype, misc. dst cleanup 2000-05-19 00:20:59 +00:00
Brian Wellington
81ab85fd39 dst function name cleanup 2000-05-17 22:48:10 +00:00
Michael Sawyer
9b171934ef Change REQUIRE test to allow signing of root domain 2000-05-17 02:15:08 +00:00
David Lawrence
1a69a1a78c Megacommit of dozens of files.
Cleanup of redundant/useless header file inclusion.

ISC style lint, primarily for function declarations and standalone
comments -- ie, those that appear on a line without any code, which
should be written as follows:
   /*
    * This is a comment.
    */
2000-05-08 14:38:29 +00:00
David Lawrence
09f22ac5b0 Redundant header work, mostly removing <dns/result.h> from installed
headers and adding it to source files that need it.
2000-05-02 03:54:17 +00:00
Mark Andrews
b8dd48ecf8 119. [cleanup] structure definitions for generic rdata stuctures do
not have _generic_ in their names.
2000-04-28 02:08:37 +00:00
Bob Halley
364a82f7c2 include isc/util.h 2000-04-28 01:12:23 +00:00
Brian Wellington
9e842bb2d3 Allow dnssec verifications to ignore the validity period. 2000-04-27 18:09:10 +00:00
David Lawrence
6e49e91bd0 103. [func] libisc buffer API changes for <isc/buffer.h>:
Added:
                                isc_buffer_base(b)          (pointer)
                                isc_buffer_current(b)       (pointer)
                                isc_buffer_active(b)        (pointer)
                                isc_buffer_used(b)          (pointer)
                                isc_buffer_length(b)            (int)
                                isc_buffer_usedlength(b)        (int)
                                isc_buffer_consumedlength(b)    (int)
                                isc_buffer_remaininglength(b)   (int)
                                isc_buffer_activelength(b)      (int)
                                isc_buffer_availablelength(b)   (int)
                        Removed:
                                ISC_BUFFER_USEDCOUNT(b)
                                ISC_BUFFER_AVAILABLECOUNT(b)
                                isc_buffer_type(b)
                        Changed names:
                                isc_buffer_used(b, r) ->
                                        isc_buffer_usedregion(b, r)
                                isc_buffer_available(b, r) ->
                                        isc_buffer_available_region(b, r)
                                isc_buffer_consumed(b, r) ->
                                        isc_buffer_consumedregion(b, r)
                                isc_buffer_active(b, r) ->
                                        isc_buffer_activeregion(b, r)
                                isc_buffer_remaining(b, r) ->
                                        isc_buffer_remainingregion(b, r)

                        Buffer types were removed, so the ISC_BUFFERTYPE_*
                        macros are no more, and the type argument to
                        isc_buffer_init and isc_buffer_allocate were removed.
                        isc_buffer_putstr is now void (instead of isc_result_t)
                        and requires that the caller ensure that there
                        is enough available buffer space for the string.
2000-04-27 00:03:12 +00:00
Brian Wellington
767b4086b1 dns_dnssec_verifymessage updates 2000-04-19 20:57:55 +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
Michael Graff
4195904998 s/DNS_R_/ISC_R_/ change for some codes. 2000-04-06 22:03:35 +00:00
Brian Wellington
5caab9f99d TSIG and SIG(0) are no longer message pseudosections. 2000-03-29 01:32:22 +00:00
Brian Wellington
f7fbd68b1c added msg.verify_attempted, renamed msg.verify_sig0 to verify_sig 2000-03-13 19:27:35 +00:00
Brian Wellington
82b0a0e059 Build SIG(0) with class ANY, not IN. 2000-03-06 21:31:08 +00:00
Brian Wellington
aa6003d0eb Modify label counts/extractions to use dns_name_depth/dns_name_splitatdepth 2000-03-01 22:34:39 +00:00
Bob Halley
a09568236c add warning comment 2000-02-25 01:07:17 +00:00
Bob Halley
380466f49e remove trusted key stuff 2000-02-23 23:30:29 +00:00
Brian Wellington
fd4d722665 missing initialization 2000-02-10 23:00:48 +00:00
Brian Wellington
882945a30c dns_dnssec_findzonekeys should ignore keys with the noauth flag set 2000-02-04 18:19:48 +00:00
Bob Halley
7d32c065c7 update copyright 2000-02-03 23:50:32 +00:00
Brian Wellington
63d8846b1f If dns_dnssec_findzonekeys can't load a private key, it should continue,
not fail.  If it can't load any, it returns ISC_R_NOTFOUND.
2000-02-03 21:57:25 +00:00
Brian Wellington
112fa80ac3 dns_dnssec_findzonekeys shouldn't complain about a harmless ISC_R_NOTFOUND
error.  It really should do better logging (that is, not to stderr) at
some point too...
2000-02-03 18:48:15 +00:00
Michael Graff
58aaab3687 isc_stdtime_get() now returns void, not isc_result_t. 1999-12-16 23:29:07 +00:00
Brian Wellington
5c688a008a A bit of SIG(0) cleanup 1999-11-02 22:58:29 +00:00
Brian Wellington
0a1c6f36c8 preliminary SIG(0) support 1999-11-02 19:53:41 +00:00
Brian Wellington
d5334bc183 dst_sig_size changes 1999-10-26 19:31:52 +00:00
David Lawrence
49d13506ed INSIST rdata.length < 65536 before using it in a call to isc_buffer_putuint16.
I was not entirely sure that all paths to the places where the INSISTS are
would have guaranteed that the unsigned int rdata.length was in the range
of an unsigned short.
1999-10-17 21:33:03 +00:00
Brian Wellington
c0ddfabced dns_dnssec_findzonekeys should use isc_result_t, not dns_result_t 1999-10-11 15:15:39 +00:00
Brian Wellington
452123247d updated to match struct changes for tsig and sig 1999-10-07 21:51:49 +00:00
Brian Wellington
4c59b4ad1a Diffie Hellman keys shouldn't even think about creating SIG records 1999-09-30 02:50:54 +00:00
Brian Wellington
0bee410bb2 infinite loop on failure in dns_dnssec_findzonekeys 1999-09-23 20:56:59 +00:00
Bob Halley
7c461f9de2 include dns/db.h 1999-09-10 17:18:30 +00:00
Andreas Gustafsson
2813268985 added dns_dnssec_findzonekeys() 1999-09-09 08:28:23 +00:00
Brian Wellington
76caa58fe3 function to convert record to DST key 1999-09-03 19:05:50 +00:00
Michael Graff
94c9d5a8ca s/u_int32_t/isc_uint32_t/g 1999-09-02 00:00:22 +00:00
Brian Wellington
ccad3c9ecb first cut at dnssec support 1999-09-01 20:50:49 +00:00