Commit Graph
70 Commits
Author SHA1 Message Date
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 6c0b9052fa Updated openssl to 0.9.5 2000-03-07 19:30:55 +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 429bc0239f do not install openssl .h files 2000-02-08 21:49:26 +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
Mark Andrews 4754765cc0 Fully declare function pointers. 1999-12-13 02:22:09 +00:00
Mark Andrews 19c5c23ef6 fix compiler warning: While loop condition is always non-zero.
nxt_30.c enforce type range to 1..127. DNS_R_RANGE otherwise.
1999-11-03 01:07:02 +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 d13792dd52 ensure comparisions of pointers are for the same type. 1999-10-29 13:21:08 +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
Brian Wellington cf7f5036cb add int to function declaration typedefs 1999-10-11 22:18:58 +00:00
Brian Wellington f044f20f15 removed initializer warning 1999-10-11 22:00:27 +00:00
Brian Wellington 82e8e17f7f make opensslconf.h nonempty 1999-10-11 20:50:11 +00:00
David Lawrence 432b589972 does not need sys/param.h 1999-10-08 22:32:51 +00:00
David Lawrence 6a79959258 explicitly cast return value of dst_s_id_calc to uint16. the return value
is already masked to 16 bits but the compiler is not smart enough to know
that there is no loss of precision.
1999-10-08 22:27:00 +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
David Lawrence 589064803f use ISC_DIR_NAMEMAX instead of PATH_MAX.
cast isc_buffer_putuint{8,16} integers to appropritate size.  nearly all
are clearly masked to the correct size at the location of the call, so
it is just delinting the "conversion supplied" warnings from NT's CL.
1999-10-08 22:24:06 +00:00
David Lawrence 85053e2af8 does not need unistd.h
cast integer arg to isc_buffer_putuint{8,16} to appropriate size.  the
value was already checked for suitable range so casting occurs without
loss of precision.
1999-10-08 22:14:24 +00:00
David Lawrence 0e64f7883a define THIRTY_TWO_BIT instead of SIXTY_FOUR_BIT on WIN32. Since
this file is already heavily ifdef'd with WIN32, one more seemed like
the most reasonable way to handle the matter.
1999-10-08 22:01:05 +00:00
Brian Wellington 22fe53a629 more warning fixes 1999-10-08 13:08:57 +00:00
Bob Halley 51917258db build system cleanups; improved include handling 1999-10-05 19:52:30 +00:00
Brian Wellington f9e5d1c8ca Added a routine to compute the length of a generated shared secret 1999-10-05 15:08:52 +00:00
Brian Wellington 688d43f2ac check for known primes was backwards 1999-10-05 15:06:37 +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