Commit graph

147 commits

Author SHA1 Message Date
David Lawrence
4b7c8ee536 use libisc fsaccess to make private key file accessible only to owner 2000-06-20 04:13:40 +00:00
Brian Wellington
c0975ccf5c Use the dst entropy wrapper in all cases, so that the initial entropy flags
passes into dst are always in effect.
2000-06-12 18:05:15 +00:00
Brian Wellington
ce89d902a2 dst_context_create should check for a null key before creating a context 2000-06-12 07:07:53 +00:00
Brian Wellington
03e7db4ba4 hmacmd5_generate wasn't initializing a buffer 2000-06-12 07:07:14 +00:00
Brian Wellington
3bd1726b6f fix memory leak on entropy failure 2000-06-10 21:30:53 +00:00
David Lawrence
ec90f1a1d6 revived openssl sha1 code to get the project to compile again. it is needed
by openssl/dsa_gen.c, as that file is currently written.  this might not
be what is ultimately desired, but was the quickest way to have a working
system again.
2000-06-10 16:53:53 +00:00
Brian Wellington
d01c654984 Removed unused openssl md5, sha1, and randomness code 2000-06-10 01:39:13 +00:00
Brian Wellington
6204077770 Actually make openssl work with our entropy api 2000-06-09 23:31:55 +00:00
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