summaryrefslogtreecommitdiff
path: root/dropbearkey.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2004-08-18 15:48:25 +0000
committerMatt Johnston <matt@ucc.asn.au>2004-08-18 15:48:25 +0000
commit110512220fa424ce0764737cc874c329ab0e3096 (patch)
treece00d6dc804db435eb8b942fa076927e5aef9682 /dropbearkey.c
parent24bae0f1e7cc14a0c4e095212c6844570c27a18d (diff)
downloaddropbear-110512220fa424ce0764737cc874c329ab0e3096.tar.gz
DEBUG_TRACE now only triggers with -v on the cmdline
Diffstat (limited to 'dropbearkey.c')
-rw-r--r--dropbearkey.c12
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]);