diff options
author | Matt Johnston <matt@ucc.asn.au> | 2004-08-18 15:48:25 +0000 |
---|---|---|
committer | Matt Johnston <matt@ucc.asn.au> | 2004-08-18 15:48:25 +0000 |
commit | 1e94425015464ee52dc50030dc7d87d1c8375f05 (patch) | |
tree | ce00d6dc804db435eb8b942fa076927e5aef9682 /dropbearkey.c | |
parent | a69e355a0630c1fe99f06e163f8260974758c193 (diff) |
DEBUG_TRACE now only triggers with -v on the cmdline
--HG--
extra : convert_revision : 91ef4ca657cd116dba148a50a90c8bcc5d206d4b
Diffstat (limited to 'dropbearkey.c')
-rw-r--r-- | dropbearkey.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/dropbearkey.c b/dropbearkey.c index 6a10eab..364b765 100644 --- a/dropbearkey.c +++ b/dropbearkey.c @@ -75,8 +75,11 @@ static void printhelp(char * progname) { #endif "-f filename Use filename for the secret key\n" "-s bits Key size in bits, should be a multiple of 8 (optional)\n" - "-y Just print the publickey and fingerprint for the\n private key in <filename>.\n", - progname); + "-y Just print the publickey and fingerprint for the\n private key in <filename>.\n" +#ifdef DEBUG_TRACE + "-v verbose\n" +#endif + ,progname); } #if defined(DBMULTI_dropbearkey) || !defined(DROPBEAR_MULTI) @@ -127,6 +130,11 @@ int main(int argc, char ** argv) { printhelp(argv[0]); exit(EXIT_SUCCESS); break; +#ifdef DEBUG_TRACE + case 'v': + debug_trace = 1; + break; +#endif default: fprintf(stderr, "Unknown argument %s\n", argv[i]); printhelp(argv[0]); |