dnssec-keygen.c revision 81ab85fd39c3f6c781ecac725d830364a311479d
3b922eeb6294d579edfd720ac162287e6736e07aTinderbox User * Portions Copyright (c) 1995-2000 by Network Associates, Inc.
bf8267aa453e5d2a735ed732a043b77a0b355b20Mark Andrews * Permission to use, copy modify, and distribute this software for any
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * purpose with or without fee is hereby granted, provided that the above
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews * copyright notice and this permission notice appear in all copies.
47798e626d8804dab2a003e21b55b633511fc8b1Mark Andrews * THE SOFTWARE IS PROVIDED "AS IS" AND NETWORK ASSOCIATES
af9dbf1ccdd53933aaae9300d13ce0965d39b067Evan Hunt * DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
af9dbf1ccdd53933aaae9300d13ce0965d39b067Evan Hunt * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL
af9dbf1ccdd53933aaae9300d13ce0965d39b067Evan Hunt * TRUSTED INFORMATION SYSTEMS BE LIABLE FOR ANY SPECIAL, DIRECT,
af9dbf1ccdd53933aaae9300d13ce0965d39b067Evan Hunt * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING
af9dbf1ccdd53933aaae9300d13ce0965d39b067Evan Hunt * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
af9dbf1ccdd53933aaae9300d13ce0965d39b067Evan Hunt * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
8d59536d7c24e137f2bb1796b962bbafd8cac701Evan Hunt * WITH THE USE OR PERFORMANCE OF THE SOFTWARE.
af9dbf1ccdd53933aaae9300d13ce0965d39b067Evan Hunt/* $Id: dnssec-keygen.c,v 1.20 2000/05/17 22:47:56 bwelling Exp $ */
#include <stdlib.h>
static int verbose;
isc_buffer_t b;
isc_region_t r;
isc_buffer_usedregion(&b, &r);
return (char *) r.base;
static isc_boolean_t
switch (ch) {
if (size < 0)
size = 0;
if (size < 0)
switch (alg) {
case DNS_KEYALG_RSA:
case DNS_KEYALG_DH:
case DNS_KEYALG_DSA:
case DST_ALG_HMACMD5:
if (size > 0)
switch(alg) {
case DNS_KEYALG_RSA:
case DNS_KEYALG_DH:
case DNS_KEYALG_DSA:
case DST_ALG_HMACMD5:
param = 0;
if (null_key)
if (conflict)