comparison dropbearkey.c @ 94:c85c88500ea6

DEBUG_TRACE now only triggers with -v on the cmdline
author Matt Johnston <matt@ucc.asn.au>
date Wed, 18 Aug 2004 15:48:25 +0000
parents 0bf5cebe622c
children 0cfba3034be5
comparison
equal deleted inserted replaced
93:5dda5a4d475c 94:c85c88500ea6
73 #ifdef DROPBEAR_DSS 73 #ifdef DROPBEAR_DSS
74 " dss\n" 74 " dss\n"
75 #endif 75 #endif
76 "-f filename Use filename for the secret key\n" 76 "-f filename Use filename for the secret key\n"
77 "-s bits Key size in bits, should be a multiple of 8 (optional)\n" 77 "-s bits Key size in bits, should be a multiple of 8 (optional)\n"
78 "-y Just print the publickey and fingerprint for the\n private key in <filename>.\n", 78 "-y Just print the publickey and fingerprint for the\n private key in <filename>.\n"
79 progname); 79 #ifdef DEBUG_TRACE
80 "-v verbose\n"
81 #endif
82 ,progname);
80 } 83 }
81 84
82 #if defined(DBMULTI_dropbearkey) || !defined(DROPBEAR_MULTI) 85 #if defined(DBMULTI_dropbearkey) || !defined(DROPBEAR_MULTI)
83 #if defined(DBMULTI_dropbearkey) && defined(DROPBEAR_MULTI) 86 #if defined(DBMULTI_dropbearkey) && defined(DROPBEAR_MULTI)
84 int dropbearkey_main(int argc, char ** argv) { 87 int dropbearkey_main(int argc, char ** argv) {
125 break; 128 break;
126 case 'h': 129 case 'h':
127 printhelp(argv[0]); 130 printhelp(argv[0]);
128 exit(EXIT_SUCCESS); 131 exit(EXIT_SUCCESS);
129 break; 132 break;
133 #ifdef DEBUG_TRACE
134 case 'v':
135 debug_trace = 1;
136 break;
137 #endif
130 default: 138 default:
131 fprintf(stderr, "Unknown argument %s\n", argv[i]); 139 fprintf(stderr, "Unknown argument %s\n", argv[i]);
132 printhelp(argv[0]); 140 printhelp(argv[0]);
133 exit(EXIT_FAILURE); 141 exit(EXIT_FAILURE);
134 break; 142 break;