Commit Graph

176 Commits

Author SHA1 Message Date
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
48a7c6ab28 Silence IRIX warning:
"hmac_link.c", line 92: remark(1692): prototyped function redeclared without
          prototype
  dst_s_hmacmd5_init() {
2000-05-13 19:31:35 +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
29ee206b9a Shut up IRIX warnings, including:
"bsafe_link.c", line 116: remark(1692): prototyped function redeclared without
          prototype
  dst_s_bsafersa_init() {

and several variations of:

"bsafe_link.c", line 155: remark(1552): variable "status" was set but never
          used
        int status = 0;

along with style lint (notably bitwise operands used as truth values:
mode & DST_SIGMODE_INIT   versus  (mode & DST_SIGMODE_INIT) != 0.
2000-05-13 19:28:15 +00:00
Andreas Gustafsson
c94f485c4b use the UNUSED() macro 2000-05-11 22:48:12 +00:00
Andreas Gustafsson
fd9f6afdff use the UNUSED() macro 2000-05-11 22:47:00 +00:00
Andreas Gustafsson
0c59b2a42f dst_key_fromdns() assigned to *keyp even though it returned an error 2000-05-11 02:11:44 +00:00
Andreas Gustafsson
18959172ab check isc_lex_openfile() return value against ISC_R_FILENOTFOUND,
not ISC_R_FAILURE
2000-05-10 18:54:04 +00:00
David Lawrence
47b26abe77 ensure proper range for argument to ctype functions 2000-05-09 22:22:25 +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
Michael Graff
d086365f39 undo the dnssec renaming. 2000-04-29 18:57:17 +00:00
David Lawrence
4be63b1fd8 144. [cleanup] libdns header files too numerous to name were made
to conform to the same style for multiple inclusion
                        protection.
2000-04-29 02:02:38 +00:00
Michael Graff
68e4926b22 namespace changes -- on NetBSD at least, libdns.a is now clean (excepting yy* symbols) 2000-04-28 01:15:58 +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
Michael Graff
08a768e82a Infrastructure to allow use of alternate openssl libraries. Default is still to use our internal, now renamed, version. 2000-04-20 18:27:43 +00:00
Michael Graff
e915367e40 rename openssl functions and exported data to have a dst_ prefix. 2000-04-20 01:13:21 +00:00
Brian Wellington
eb5250f0bd Added dst_key_isnullkey() 2000-04-18 17:39:37 +00:00
Brian Wellington
63bf060be4 dst_key_iszonekey() checks that the key's protocol is DNSSEC or ANY.
Remove this check from the validator, and remove more redundant constants
from dst.h
2000-04-12 15:52:12 +00:00
Brian Wellington
2a05fa7535 dst_key_iszonekey() was incorrectly checking the 'name type' field of a key.
The constants added to dst.h for dst_key_iszonekey() duplicated constants
in dns/keyvalues.h, and are now gone.
2000-04-10 19:48:05 +00:00
Brian Wellington
f383cdfeb8 Moved the (lame) random number seeding code to the dst initialize routine,
since the openssl dsa code calls the openssl random functions directly,
not through dst_random_get.
2000-04-07 20:50:30 +00:00
Brian Wellington
587922e6d1 converting from KEY records to dsa keys was broken. 2000-04-05 22:22:51 +00:00
Brian Wellington
c73aafe601 dst_random_get notices when openssl complains about having no entropy, and
calls isc_random_get to get some.  This should possibly do something
else later.
2000-03-28 03:06:38 +00:00
Bob Halley
dda4bfe649 update copyrights 2000-03-23 19:52:19 +00:00
Bob Halley
a010b9cb61 update copyrights 2000-03-23 19:30:06 +00:00
Bob Halley
d4a4b9ffd6 add dst_key_iszonekey, KEYFLAG and KEYPROTO values 2000-03-16 22:43:54 +00:00
Bob Halley
9dcab19457 add dst_key_iszonekey 2000-03-16 22:43:33 +00:00
Brian Wellington
c600d821ec The hmac-md5 private key file was being written incorrectly. 2000-03-15 18:52:23 +00:00
Brian Wellington
948716c24c Certain errors caused failure but didn't set the return value. 2000-03-14 22:05:08 +00:00
Brian Wellington
7c141c0351 Removed memset()s that caused problems when updating to openssl 0.9.5 2000-03-07 19:27:50 +00:00
Brian Wellington
4f38e8fc44 Converted all references to dst_result_t to use isc_result_t instead 2000-03-06 20:06:01 +00:00
Bob Halley
a2f3208f7f add DESTDIR support 2000-02-08 21:50:23 +00:00
Bob Halley
0a26ae650d add missing .h files 2000-02-04 01:33:16 +00:00
Bob Halley
0fffa9dcca update copyright 2000-02-03 23:17:52 +00:00
Michael Graff
3ddd814a97 dns_result_t is no more. s/dns_result_t/isc_result_t/ -- more later, when I need a break. 1999-12-23 00:09:04 +00:00
Brian Wellington
57a750e9ee yet another case of missing trailing dots 1999-11-02 19:52:29 +00:00
Bob Halley
4a73cf8ee0 update copyrights 1999-10-31 18:42:01 +00:00
Mark Andrews
90adbb5f1c Remove various "enumerated type mixed with another type" warnings.
More still to be removed.
#define ISC_TF(x) to covert logical result to isc_boolean_t
1999-10-29 12:56:58 +00:00
Mark Andrews
7f2ad79f65 "do" was missing from the RETERR macro:
#define RETERR(x) do { \
        ret = (x); \
        if (ret != ISC_R_SUCCESS) \
                return (ret); \
        } while (0)
1999-10-29 05:25:57 +00:00
Brian Wellington
904a34b853 DH constants are mostly statically allocated now 1999-10-27 20:46:33 +00:00
Brian Wellington
b76a252ade fix yesterday's hmac context fix 1999-10-27 16:52:55 +00:00
Brian Wellington
e7b4d4feb4 fix context handling 1999-10-26 19:43:25 +00:00
Brian Wellington
d5334bc183 dst_sig_size changes 1999-10-26 19:31:52 +00:00
Brian Wellington
56e12bb9ed catch out-of memory error, always add trailing dot 1999-10-25 21:04:53 +00:00
Brian Wellington
a7d792804f dst error code cleanup 1999-10-20 22:14:15 +00:00
Brian Wellington
1bdc3fd29a dst_random -> dst_random_get 1999-10-20 19:08:57 +00:00
Brian Wellington
25811a89c6 Added dst_digest (a wrapper around digest functions), and dst_s_md5 (an
internal wrapper around MD5).  Modified hmac-md5 code to use dst_s_md5.
1999-10-18 21:35:46 +00:00
Brian Wellington
3efd14644c Allow private keys to be read if public keys are not present. This isn't
too useful for anything other than HMAC-MD5 shared keys, since the key's
flags and protocol are stored in the public file.

Also some miscellaneous cleanup.
1999-10-14 18:32:49 +00:00