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

30 Commits

Author SHA1 Message Date
Brian Wellington
177ede307a minor internal reorganization (yes, this will all become clear at some point) 2001-05-10 19:07:18 +00:00
Brian Wellington
8e4da48fa7 consolidated duplicated code for filename mangling, removed sanity checks that
weren't.
2001-05-09 23:04:50 +00:00
Brian Wellington
46c3b3f6e1 isc_uint16_t -> dns_keytag_t in many places; dns_keytable_findkeynode
was casting incorrectly. [RT #664]
2001-01-24 02:23:02 +00:00
Brian Wellington
499b34cea0 copyright update 2001-01-09 22:01:04 +00:00
Brian Wellington
ed239db49c Allow keys to be referred to as 'Kname.+id+alg.' (with a trailing dot), since
file completion often produces strings of that form.
2000-11-01 00:17:18 +00:00
Brian Wellington
ec393c0384 Error return cleanup. 2000-09-08 14:25:40 +00:00
Brian Wellington
d3735e0e25 DST_ALG_RSA -> DST_ALG_RSAMD5 2000-09-02 01:17:20 +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
4b7c8ee536 use libisc fsaccess to make private key file accessible only to owner 2000-06-20 04:13:40 +00:00
Andreas Gustafsson
3b938ff0d9 copyright messages now generated by util/update_copyrights 2000-06-09 20:58:39 +00:00
Brian Wellington
4441bfbd6b More dst updates:
- dst_lib_init()/dst_lib_destroy() allow dst to use a predefined
	  mctx and free all resources on exit.
	- dst_key_tofile() & dst_key/fromfile() take a directory parameter.
	- dst_key_parsefile() removed, replaced by dst_key_fromnamedfile()
	- more bug fixes and memory leak fixes
2000-06-06 21:58:16 +00:00
Brian Wellington
182706b2e9 more dst updates 2000-06-02 23:36:14 +00:00
Brian Wellington
011463c376 New DST API for signing/verifying, as well as some reorganization, cleanup,
and bug fixes.
2000-06-02 18:57: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
70cd89aadb compiler warning 2000-05-15 23:14:12 +00:00
Brian Wellington
c5de87b086 bug fixes from the last commit 2000-05-15 21:30:45 +00:00
Brian Wellington
94a7e85857 Export dst_key_buildfilename and make various dst functions call it. 2000-05-15 21:02:39 +00:00
David Lawrence
8e63fe6323 Silence IRIX warning:
"dst_parse.c", line 201: remark(1552): variable "error" was set but never used
2000-05-13 19:30:19 +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
Bob Halley
364a82f7c2 include isc/util.h 2000-04-28 01:12:23 +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
a7d792804f dst error code cleanup 1999-10-20 22:14:15 +00:00
David Lawrence
54e9edb759 use ISC_DIR_NAMEMAX instead of PATH_MAX.
There is still an unportable chmod() in here, which for now is
just elided when building on NT.  A Better Way will be made.
1999-10-08 22:25:14 +00:00
Brian Wellington
95bf6e9625 fix casting problem 1999-10-05 15:04:27 +00:00
Brian Wellington
5f007faa70 DH support broke DSA private key loading 1999-09-30 17:41:36 +00:00
Brian Wellington
2be474d044 Added Diffie-Hellman support to dst 1999-09-27 16:55:45 +00:00
Brian Wellington
d92543b360 more constant renaming 1999-09-02 15:56:33 +00:00
Brian Wellington
1fd4766e5b constant renaming 1999-09-01 18:56:19 +00:00
Brian Wellington
382442e200 Increased size of a few buffers, removed references to cylink toolkit. 1999-08-20 17:03:30 +00:00
Brian Wellington
65c4736d9c Added underlying DNSSEC support (dst and crypto libraries) 1999-07-12 20:08:42 +00:00