dnssec-makekeyset.c revision 1f8f904ad612e372bf34d88fce28c59ac5e54574
bd334e0366c0f21bf15de9282b02f1bed4ccde14Michael Sawyer * Portions Copyright (C) 2000 Internet Software Consortium.
bd334e0366c0f21bf15de9282b02f1bed4ccde14Michael Sawyer * Portions Copyright (C) 1995-2000 by Network Associates, Inc.
bd334e0366c0f21bf15de9282b02f1bed4ccde14Michael Sawyer * Permission to use, copy, modify, and distribute this software for any
bd334e0366c0f21bf15de9282b02f1bed4ccde14Michael Sawyer * purpose with or without fee is hereby granted, provided that the above
bd334e0366c0f21bf15de9282b02f1bed4ccde14Michael Sawyer * copyright notice and this permission notice appear in all copies.
bd334e0366c0f21bf15de9282b02f1bed4ccde14Michael Sawyer * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM AND
bd334e0366c0f21bf15de9282b02f1bed4ccde14Michael Sawyer * NETWORK ASSOCIATES DISCLAIM ALL WARRANTIES WITH REGARD TO THIS
bd334e0366c0f21bf15de9282b02f1bed4ccde14Michael Sawyer * SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
bd334e0366c0f21bf15de9282b02f1bed4ccde14Michael Sawyer * FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE CONSORTIUM OR NETWORK
bd334e0366c0f21bf15de9282b02f1bed4ccde14Michael Sawyer * ASSOCIATES BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR
bd334e0366c0f21bf15de9282b02f1bed4ccde14Michael Sawyer * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
bd334e0366c0f21bf15de9282b02f1bed4ccde14Michael Sawyer * USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
bd334e0366c0f21bf15de9282b02f1bed4ccde14Michael Sawyer * OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
bd334e0366c0f21bf15de9282b02f1bed4ccde14Michael Sawyer * PERFORMANCE OF THIS SOFTWARE.
bd334e0366c0f21bf15de9282b02f1bed4ccde14Michael Sawyer/* $Id: dnssec-makekeyset.c,v 1.39 2000/09/12 10:07:47 bwelling Exp $ */
bd334e0366c0f21bf15de9282b02f1bed4ccde14Michael Sawyerstatic isc_stdtime_t starttime = 0, endtime = 0, now;
bd334e0366c0f21bf15de9282b02f1bed4ccde14Michael Sawyer fprintf(stderr, "\t%s [options] keys\n", program);
bd334e0366c0f21bf15de9282b02f1bed4ccde14Michael Sawyer fprintf(stderr, "Options: (default value in parenthesis) \n");
bd334e0366c0f21bf15de9282b02f1bed4ccde14Michael Sawyer fprintf(stderr, "\t-s YYYYMMDDHHMMSS|+offset:\n");
bd334e0366c0f21bf15de9282b02f1bed4ccde14Michael Sawyer fprintf(stderr, "\t\tSIG start time - absolute|offset (now)\n");
bd334e0366c0f21bf15de9282b02f1bed4ccde14Michael Sawyer fprintf(stderr, "\t-e YYYYMMDDHHMMSS|+offset|\"now\"+offset]:\n");
bd334e0366c0f21bf15de9282b02f1bed4ccde14Michael Sawyer "absolute|from start|from now (now + 30 days)\n");
bd334e0366c0f21bf15de9282b02f1bed4ccde14Michael Sawyer fprintf(stderr, "\t\tuse pseudorandom data (faster but less secure)\n");
bd334e0366c0f21bf15de9282b02f1bed4ccde14Michael Sawyer fprintf(stderr, "\t\ta file containing random data\n");
bd334e0366c0f21bf15de9282b02f1bed4ccde14Michael Sawyer fprintf(stderr, "\tkeyfile (Kname+alg+tag)\n");
int i, ch;
char *endp;
unsigned char *data;
isc_buffer_t b;
isc_region_t r;
unsigned int eflags;
switch (ch) {
usage();
usage();
if (!pseudorandom)
program);
for (i = 0; i < argc; i++) {
&namebuf);
sizeof savednamestr);
isc_buffer_usedregion(&b, &r);
dns_rdatatype_key, &r);
program);
rdata);
NULL);