enable debug level setting

This commit is contained in:
Andreas Steffen
2009-09-14 19:29:05 +02:00
parent af0dfe4987
commit 5a4dee6dc4
8 changed files with 61 additions and 1 deletions
+4
View File
@@ -32,6 +32,9 @@ static int gen(int argc, char *argv[])
{
case 'h':
return command_usage(NULL);
case 'v':
dbg_level = atoi(optarg);
continue;
case 't':
if (streq(optarg, "rsa"))
{
@@ -118,6 +121,7 @@ static void __attribute__ ((constructor))reg()
{"type", 't', 1, "type of key, default: rsa"},
{"size", 's', 1, "keylength in bits, default: rsa 2048, ecdsa 384"},
{"outform", 'f', 1, "encoding of generated private key"},
{"debug", 'v', 1, "set debug level, default: 1"},
}
});
}