Commit graph

269 commits

Author SHA1 Message Date
Brian Wellington
49d233a08a Allow the user to specify "keyboard" as the random device. 2000-06-22 02:47:33 +00:00
Brian Wellington
417bd845e5 Lots of miscellaneous cleanup 2000-06-21 23:38:46 +00:00
David Lawrence
2376cd7f84 There is no "unix" subdirectory here. 2000-06-19 19:01:52 +00:00
Brian Wellington
c9c1d17413 Use ISC_FORMAT_PRINTF for fatal 2000-06-19 18:04:22 +00:00
Brian Wellington
1f27f34aee Incorrect arguments passed to fatal() 2000-06-19 17:44:53 +00:00
Michael Graff
7685c082c8 remove flags from source types. It was never used, and probably shouldn't be there. 2000-06-17 01:42:21 +00:00
Michael Graff
c3581e2bcc No need to destroy filesources -- they will clean up when the source is destroyed 2000-06-15 18:15:26 +00:00
Brian Wellington
5ec27bc7f3 Makefile cleanup 2000-06-15 00:07:44 +00:00
Brian Wellington
7f35bf8e17 -p for pseudorandom 2000-06-12 19:32:10 +00:00
Brian Wellington
f7f3cc5ee6 -p for pseudorandom, -h for help 2000-06-12 19:31:53 +00:00
Brian Wellington
c5c9aa94f7 parse -h 2000-06-12 19:21:48 +00:00
Brian Wellington
3d3e7bce59 Add '-r randomfile' option to all tools 2000-06-10 01:28:11 +00:00
Brian Wellington
79d91e9150 Use the entropy api 2000-06-09 22:34:40 +00:00
Andreas Gustafsson
4979d89e04 joint copyright ISC/NAI 2000 2000-06-09 21:32:05 +00:00
Andreas Gustafsson
f85aab2e1a joint copyright ISC 1999,2000 / NAI 2000-06-09 21:31:47 +00:00
Andreas Gustafsson
ff8ef4e84c copyright ISC 2000 2000-06-09 21:31:08 +00:00
Andreas Gustafsson
2648954b6c fixed incorrect copyright years 2000-06-09 21:08:42 +00:00
Mark Andrews
a6733246ea 240. [func] databases now come in three flavours: zone, cache
and stub.
2000-06-07 02:38:41 +00:00
Brian Wellington
b3ef06344a DST API updates 2000-06-06 22:01:49 +00:00
David Lawrence
6dedf9982c int alg in main() made unsigned for argument compatibility with
dns_key_parsefilename().
2000-06-06 15:32:26 +00:00
Brian Wellington
83b32cc342 print memory stats when verbose>10 2000-06-02 19:02:52 +00:00
David Lawrence
7efc8c3f69 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.

Minor other ISC style cleanups.
2000-06-01 18:49:22 +00:00
Brian Wellington
5cfa06cee3 enabling verbose could crash the program 2000-06-01 02:32:12 +00:00
David Lawrence
923d87d9f4 use ISC_TF() to return an isc_boolean_t from an expression 2000-05-25 03:57:20 +00:00
Brian Wellington
b1d234eb75 The dnssec tools properly use the logging subsystem and share more code. 2000-05-24 23:54:43 +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
Brian Wellington
541b1b23e9 actually use the verbose variable 2000-05-24 17:13:29 +00:00
David Lawrence
ed019cabc1 fixed lines > 79 columns wide 2000-05-24 05:10:00 +00:00
Andreas Gustafsson
fa0ad4bc0e updated comments 2000-05-24 04:23:04 +00:00
Andreas Gustafsson
5c3e730c22 include program name in log messages printed through
the logging system
2000-05-24 04:21:34 +00:00
David Lawrence
d6a2af163f added missing prototype for usage().
wrapped long lines.
removed unused stack variable "byte" from set_bit in dnssec-signzone.
UNUSED(verbose) for yet-to-be-used variable in dnssec-keygen.
argument to return should be in parentheses.
2000-05-24 03:16:19 +00:00
Brian Wellington
c50936eb40 changed dst_key_free() prototype, misc. dst cleanup 2000-05-19 00:20:59 +00:00
David Lawrence
6a6b556d9d gcc (ANSI?) won't inline a variable arg function, but there wasn't much point
to inlining fatal() anyway.
2000-05-18 23:28:30 +00:00
Michael Sawyer
ff301f59ea Typo 2000-05-18 22:12:04 +00:00
Brian Wellington
acd5445e00 use the new names in program output 2000-05-18 22:04:02 +00:00
Andreas Gustafsson
95be83b467 DNSSEC tools now have a new home 2000-05-18 21:45:10 +00:00
Brian Wellington
245d9f25a7 better wildcard warning 2000-05-18 17:14:35 +00:00
Brian Wellington
e021965f29 Null keys were improperly generated. 2000-05-18 01:11:48 +00:00
Brian Wellington
81ab85fd39 dst function name cleanup 2000-05-17 22:48:10 +00:00
Brian Wellington
7a152bdae3 Use a database to store the zone, not a zone object. 2000-05-17 19:58:15 +00:00
Brian Wellington
6a285c816d better error reporting and miscellaneous cleanup 2000-05-16 18:41:00 +00:00
Brian Wellington
bb9b90250b additional sanity checking of input, better error reporting 2000-05-16 00:54:59 +00:00
Brian Wellington
3de75141d2 Modified commandline parameters 2000-05-16 00:02:39 +00:00
Brian Wellington
ad418d66f8 style fixes, changes to output format, minor bug fixes 2000-05-15 21:06:41 +00:00
Andreas Gustafsson
9bd874cb27 keysigner identified itself as keysettool in usage message 2000-05-12 21:09:53 +00:00
Andreas Gustafsson
259d8f9420 style 2000-05-12 21:06:58 +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
David Lawrence
f675434978 return rather than exit from main() to shut up HP/UX 2000-05-08 20:12:46 +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
Andreas Gustafsson
2e6c976751 include severity level in log messages printed on stderr 2000-05-06 00:50:41 +00:00
Andreas Gustafsson
b4780360a4 log dns library warnings to stderr even when not verbose;
do not prefix stderr messages with time stamp
2000-05-06 00:48:53 +00:00
Andreas Gustafsson
01757e5311 added check for missing domain name argument 2000-05-05 19:55:56 +00:00
Michael Graff
c90f5e8d1e Split dns_log_init() into dns_log_init() which sets up module and category names, and dns_log_setcontext() which sets the logging context. Call isc_log_setcontext(), dns_log_init(), and dns_log_setcontext(). 2000-05-03 21:11:40 +00:00
Andreas Gustafsson
6ba0a8a5e7 eliminated compiler warnings on alpha 2000-05-03 18:25:52 +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
ebff64a8bd add a ; after a goto label, since it needs a statement after it.
Brian should look at this section of code, since I believe it will leak
a reference to 'keyset'
2000-05-01 21:59:05 +00:00
Brian Wellington
abce4875c3 Import the parent zone key signature, create null keys for unsigned children
or set the zone status bit for signed children.
2000-04-28 15:47:36 +00:00
Brian Wellington
38c60b442e dns_rdata_generic_sig_t -> dns_rdata_sig_t 2000-04-28 02:29:57 +00:00
Brian Wellington
7df0472d8a Added isc/util.h 2000-04-28 02:12:16 +00:00
Mark Andrews
b8dd48ecf8 119. [cleanup] structure definitions for generic rdata stuctures do
not have _generic_ in their names.
2000-04-28 02:08:37 +00:00
Bob Halley
364a82f7c2 include isc/util.h 2000-04-28 01:12:23 +00:00
Andreas Gustafsson
96eb58dd46 conform to buffer API changes 2000-04-27 22:09:59 +00:00
Bob Halley
dcb719f17d conform to buffer api changes 2000-04-27 20:29:26 +00:00
Brian Wellington
03f0e349d8 Added keysigner and keysettool 2000-04-27 19:15:16 +00:00
Brian Wellington
22e8a31981 Added verbose flag. Currently doesn't do anything, but it's consistent with
the other dnssec tools.
2000-04-27 18:24:26 +00:00
Brian Wellington
a15583c681 Conform to the dns_dnssec_verify api change 2000-04-27 18:17:27 +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
32eeec8559 Rewrite of keygen. 2000-04-25 17:57:10 +00:00
Michael Graff
4195904998 s/DNS_R_/ISC_R_/ change for some codes. 2000-04-06 22:03:35 +00:00
Brian Wellington
b930c125ca Fixed missing braces reported on bind9-workers. The rewritten keygen should
hopefully go in just after b2.
2000-03-23 19:03:32 +00:00
Andreas Gustafsson
2539896175 do not indent CVS ID comment 2000-03-17 17:49:37 +00:00
Brian Wellington
4124057bf5 dst_result_t -> isc_result_t 2000-03-06 20:04:15 +00:00
Brian Wellington
2b71493ae6 Add an option (-a) to attempt to verify generated signatures 2000-03-06 18:16:49 +00:00
Brian Wellington
2e9fe863e1 Print a warning if we see a wildcard in a zone we're signing. 2000-03-01 21:23:46 +00:00
David Lawrence
edcd1247ad isc_log_create now has three parameters, the additional one used to
return an isc_logconfig_t.  isc_log_cretechannel and isc_log_usechannel
now take an isc_logconfig_t instead of an isc_log_t; this is to address
reconfiguration in a multithreaded environment.

isc_logconfig_create, isc_logconfig_get, isc_logconfig_use and
isc_logconfig_destroy were added to work with the new isc_logconfig_t type.

isc_logregister_categories and dns_log_init are now both void rather than
returning isc_result_t.
2000-02-26 19:57:02 +00:00
Brian Wellington
2d478b7049 comments and logging changes 2000-02-14 23:38:31 +00:00
Brian Wellington
46374d51a6 print usage in more situations, make usage fit in 24 lines 2000-02-14 22:34:08 +00:00
Brian Wellington
75f8396869 Pass covers field to dns_db_deleterdataset 2000-02-08 19:27:36 +00:00
Brian Wellington
201b17e55f Determine the minimum ttl from the SOA and pass it into dns_buildnxt 2000-02-08 19:03:29 +00:00
Brian Wellington
3aa0851a58 more fixes relating to glue 2000-02-05 20:28:56 +00:00
Olafur Gudmundsson
f4e90d4323 Memory leak plugged for log context 2000-02-04 00:34:37 +00:00
Bob Halley
ca41b452ed update copyrights 2000-02-03 23:08:31 +00:00
Brian Wellington
14865492bc don't quit if dns_dnssec_findzonekeys returns ISC_R_NOTFOUND 2000-02-03 18:49:08 +00:00
Olafur Gudmundsson
85a932c4f4 enable logging from dns libraries 2000-02-03 17:50:08 +00:00
Brian Wellington
78524085b5 minor bugfixes 2000-02-03 16:58:54 +00:00
Brian Wellington
af9cc9f133 ignore glue when generating SIGs and NXTs 2000-02-01 21:12:11 +00:00
Brian Wellington
b8df3e551a minor cleanups 2000-02-01 19:37:57 +00:00
Brian Wellington
b72b07e79b rename variables to avoid linker errors on aa 2000-01-31 23:15:33 +00:00
Mark Andrews
d875b1151d dns_zone_dump() -> dns_zone_dumptostream() 2000-01-31 02:16:13 +00:00
Brian Wellington
587368b247 couple of bug fixes, missed a few cases of verbosity-izing 2000-01-28 21:40:24 +00:00
Brian Wellington
a67fc7e1ff verbose option (-v) actually does something, infinite loop fix 2000-01-28 20:33:41 +00:00
Brian Wellington
19a3e16a9d Use zone routines to load/dump instead of db routines 2000-01-28 16:36:41 +00:00
Bob Halley
08af8bf5ad conform to dns_db_addrdataset() API change 2000-01-25 19:30:51 +00:00
Michael Graff
58aaab3687 isc_stdtime_get() now returns void, not isc_result_t. 1999-12-16 23:29:07 +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
93a3bb12e0 Fix ctype macro args 1999-10-29 08:27:34 +00:00
Brian Wellington
a7d792804f dst error code cleanup 1999-10-20 22:14:15 +00:00
Brian Wellington
86ff74ccf6 remove unsigned warning in signer 1999-10-12 18:26:17 +00:00
Bob Halley
82e9817a18 lint 1999-10-10 17:13:29 +00:00
Mark Andrews
41a28deee4 Need to take address of signer. 1999-10-08 06:54:23 +00:00
David Lawrence
6a759e3869 use isc_commandline_parse instead of getopt 1999-10-06 20:07:25 +00:00
Brian Wellington
2637aa6ccd add trailing dot to origin, add missing allocation 1999-10-05 14:56:56 +00:00
Brian Wellington
2c02fd5316 parsing fixes, empty sig set fixes 1999-10-01 16:14:18 +00:00
Brian Wellington
9b9a2770b1 fix silly infinite loop bug 1999-09-30 02:44:49 +00:00
Brian Wellington
803e1f0c55 doc update, bug fixes 1999-09-28 15:20:45 +00:00
Brian Wellington
4d8edd30dc correcty handle sigs in the future 1999-09-27 18:48:23 +00:00
Brian Wellington
106b97eebd support for Diffie-Hellman keys 1999-09-27 17:11:41 +00:00
Brian Wellington
bf5582ad4b First cut at 'real' signer. Not tested too much yet. 1999-09-23 22:25:35 +00:00
Michael Graff
f690123c15 update copyright text 1999-09-15 23:53:18 +00:00
Brian Wellington
b18192fd96 more immaterial key fixes 1999-09-13 20:00:00 +00:00
Brian Wellington
3d452d4366 better handling of immaterial signatures 1999-09-13 17:30:18 +00:00
Brian Wellington
b87a704401 added key generator 1999-09-10 19:52:56 +00:00
Andreas Gustafsson
ae83dbc881 eliminate signed/unsigned warning on Alpha 1999-09-09 09:27:47 +00:00
Andreas Gustafsson
021de83ee3 build_nxt() and find_keys() are now library functions 1999-09-09 08:59:01 +00:00
Brian Wellington
49f7148b1e if set is signed, resign with the same keys 1999-09-08 18:28:39 +00:00
Bob Halley
0b157747b3 findrdataset can now return a sig 1999-09-08 01:10:08 +00:00
Brian Wellington
b20de477c2 multiple zone key support 1999-09-07 20:23:53 +00:00
Brian Wellington
f104fbbe4e toy signer 1999-09-03 19:11:55 +00:00