aboutsummaryrefslogtreecommitdiffstats
path: root/src/pki/commands/pub.c
diff options
context:
space:
mode:
authorAndreas Steffen <andreas@strongswan.org>2009-09-14 19:28:25 +0200
committerAndreas Steffen <andreas@strongswan.org>2009-09-14 19:29:05 +0200
commit5a4dee6dc4899cbcfd7eb0da927c4491633da34a (patch)
treecf54aea98625df2530b212fc152da613ec200816 /src/pki/commands/pub.c
parentaf0dfe49878cedde523b9f6db7c6e08c5e1ac405 (diff)
downloadstrongswan-5a4dee6dc4899cbcfd7eb0da927c4491633da34a.tar.bz2
strongswan-5a4dee6dc4899cbcfd7eb0da927c4491633da34a.tar.xz
enable debug level setting
Diffstat (limited to 'src/pki/commands/pub.c')
-rw-r--r--src/pki/commands/pub.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/pki/commands/pub.c b/src/pki/commands/pub.c
index 16bd0b049..9e4897b2a 100644
--- a/src/pki/commands/pub.c
+++ b/src/pki/commands/pub.c
@@ -39,6 +39,9 @@ static int pub(int argc, char *argv[])
{
case 'h':
return command_usage(NULL);
+ case 'v':
+ dbg_level = atoi(optarg);
+ continue;
case 't':
if (streq(optarg, "rsa"))
{
@@ -145,6 +148,7 @@ static void __attribute__ ((constructor))reg()
{"in", 'i', 1, "input file, default: stdin"},
{"type", 't', 1, "type of credential, default: rsa"},
{"outform", 'f', 1, "encoding of extracted public key"},
+ {"debug", 'v', 1, "set debug level, default: 1"},
}
});
}