2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 14:35:26 +00:00
Commit Graph

139 Commits

Author SHA1 Message Date
Brian Wellington
09a1a618cd Use the entropy api. 2000-06-09 22:32:20 +00:00
Andreas Gustafsson
3b938ff0d9 copyright messages now generated by util/update_copyrights 2000-06-09 20:58:39 +00:00
David Lawrence
e46d261abb added void parameter declarator for definition of dst_lib_destroy() 2000-06-08 23:21:15 +00:00
David Lawrence
c656250292 include void parameter declarator for definition of dst__openssldh_destroy() 2000-06-08 20:52:12 +00:00
David Lawrence
e90de0d144 buildfilename() definition needed static attribute of its declaration 2000-06-08 20:38:48 +00:00
Brian Wellington
b01324ef07 Removed unused DST_R_NAMETOOLONG result code 2000-06-07 19:18:53 +00:00
Brian Wellington
76513c0271 Removed errant call to dns_rdata_freestruct, cleaned up an error case. 2000-06-07 19:05:45 +00:00
Brian Wellington
c892129a37 isc_buffer_base->isc_buffer_used 2000-06-07 19:05:00 +00:00
Brian Wellington
78d14e388a Use MD5/SHA1 from libisc instead of dst/openssl 2000-06-07 17:22:31 +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
46734259ca Replace the calls to openssl error routines with stubs, since the calls
allocate memory somewhere which isn't being freed.
2000-06-06 20:40:28 +00:00
David Lawrence
bb808665b4 removed unused stack variable "ctx" from dnssafersa_verify() 2000-06-06 16:35:59 +00:00
David Lawrence
febb976e2e dnssafersa_verify() was failing because it used isc_buffer_used() where it
needed isc_buffer_base().
2000-06-06 15:16:45 +00:00
David Lawrence
b1a8714e07 cast void *isc_buffer_used() to char * for pointer arithmetic 2000-06-05 22:20:04 +00:00
Brian Wellington
b15d35d4e6 use the dst md5 layer instead of openssl md5, replace verify with sign & compare 2000-06-05 19:10:58 +00:00
Brian Wellington
9ee00c4fa0 use the dst md5 layer instead of dnssafe md5 2000-06-05 19:10:27 +00:00
Brian Wellington
aeca99a602 Don't dereference a pointer before assigning it. 2000-06-03 00:43:46 +00:00
Brian Wellington
e8325473bc typos 2000-06-02 23:44:52 +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
399fe4aa0f Lots of bugs fixed in _fromfile and _fromdns. There were enough of them that
they managed to hide each other in most cases.
2000-06-01 02:33:26 +00:00
Brian Wellington
b058593410 Passed incorrect size to isc_mem_get. 2000-06-01 02:04:38 +00:00
Olafur Gudmundsson
389f2ccc2f Upgrading openssl to latest released version 0.9.5
there are no major fixes in here but couple of bug fixes that
	may affect operation in some cases. I updated rename.h to
	make sure all symbols with T have dst__openssl prefix.
	Any bugs found in this source code should be reported to the
	openssl people.
	Olafur
2000-05-25 18:27:42 +00:00
David Lawrence
b27d7383f4 prototype of *_pop_free made to conform with existing prototype of sk_pop_free 2000-05-25 14:20:05 +00:00
David Lawrence
ebece5658f added prototypes to pointers-to-functions for sk_pop_free and lh_doall_arg
to make both IRIX and HP/UX happy.
2000-05-25 04:02:47 +00:00
David Lawrence
1ee6767f40 explicitly cast to int four assignments of an unsigned long expression to
and int variable.  in three of the four cases this cast is questionable,
as suitable range had not been checked, but the situation is no worse
than without the casts.
2000-05-24 23:42:01 +00:00
David Lawrence
cf9eeff3dc added prototype for pop_info 2000-05-24 23:39:13 +00:00
David Lawrence
c175eace1d made a couple of definition prototypes consistent with their
declaration prototypes.
2000-05-24 23:38:33 +00:00
David Lawrence
36024add69 made "err" in ssleay_rand_pseudo_bytes unsigned long to match the return value
of ERR_peek_error().
2000-05-24 23:36:35 +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
David Lawrence
f419977986 use NULL, not NULL_PTR, when casting to a context that requires a
pointer-to-function instead of pointer-to-object
2000-05-24 21:50:10 +00:00
David Lawrence
f105c1cb72 use IRIX_DNSSEC_WARNINGS_HACK to shut up missing prototype warnings 2000-05-24 20:04:59 +00:00
David Lawrence
ed019cabc1 fixed lines > 79 columns wide 2000-05-24 05:10:00 +00:00
David Lawrence
695c2f9ba1 range check assignment of uint16 "id" in dst_key_parsefilename 2000-05-24 03:00:39 +00:00
Brian Wellington
82efeeb703 removed typo 2000-05-22 23:34:24 +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
Brian Wellington
1d58763c26 Added dst_key_parsefilename 2000-05-15 23:14:42 +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
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
Olafur Gudmundsson
ff8d15be4e Fixed 3 bugs in keygen,
it overwrote old keys if new key key-id conflicted
	It was generating non null-keys with id==0
	It was not able to generate DSA null keys.
I changed size of maximum RSA key to 2048.
2000-05-10 17:57:53 +00:00