]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
updated p11tool def.
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Sat, 21 Jan 2012 19:52:45 +0000 (20:52 +0100)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Sat, 21 Jan 2012 19:52:45 +0000 (20:52 +0100)
src/p11tool-args.def.in
src/p11tool.c

index 2bfda10aa7d7becbe8cb04b2fb6df2e33c3b4f72..66ceffd090150e310cce5bbde91408795a6ec085 100644 (file)
@@ -172,7 +172,7 @@ flag = {
     name      = detailed-url;
     descrip   = "Print detailed URLs";
     disabled;
-    enable    = "no";
+    disable   = "no";
     doc   = "";
 };
 
@@ -275,15 +275,15 @@ To view all tokens in your system use:
 $ p11tool --list-tokens
 @end example
 
-To store a private key and a certificate in a token run:
+To view all objects in a token use:
 @example
-$ p11tool --login --write --url "pkcs11:URL" --load-privkey key.pem --label "Mykey"
-$ p11tool --login --write --url "pkcs11:URL" --load-certificate cert.pem --label "MyCert"
+$ p11tool --login --list-all --url "pkcs11:TOKEN-URL"
 @end example
 
-To view all objects in a token use:
+To store a private key and a certificate in a token run:
 @example
-$ p11tool --login --list-all --url "pkcs11:TOKEN-URL"
+$ p11tool --login --write --url "pkcs11:URL" --load-privkey key.pem --label "Mykey"
+$ p11tool --login --write --url "pkcs11:URL" --load-certificate cert.pem --label "MyCert"
 @end example
 _EOT_;
 };
index 265b292ae57699fd7285fdaa2b3c235ebb4fecb6..d9f1af9ce423ee86610119e7dbed5038b6bf2df2 100644 (file)
@@ -229,6 +229,15 @@ cmd_parser (int argc, char **argv)
       sec_param = OPT_ARG(SEC_PARAM);
     }
 
+  if (debug > 0)
+    {
+      fprintf(stderr, "Private: %s\n", ENABLED_OPT(PRIVATE)?"yes":"no");
+      fprintf(stderr, "Trusted: %s\n", ENABLED_OPT(TRUSTED)?"yes":"no");
+      fprintf(stderr, "Login: %s\n", ENABLED_OPT(LOGIN)?"yes":"no");
+      fprintf(stderr, "Detailed URLs: %s\n", ENABLED_OPT(DETAILED_URL)?"yes":"no");
+      fprintf(stderr, "\n");
+    }
+
   switch (action)
     {
     case ACTION_PKCS11_LIST: