[svn] GnuPG - r3885 - trunk/g10

svn author wk cvs at cvs.gnupg.org
Wed Sep 7 17:53:04 CEST 2005


Author: wk
Date: 2005-09-07 17:53:03 +0200 (Wed, 07 Sep 2005)
New Revision: 3885

Modified:
   trunk/g10/ChangeLog
   trunk/g10/card-util.c
   trunk/g10/misc.c
   trunk/g10/passphrase.c
Log:
Add "help" sub option to --*-options.

Modified: trunk/g10/ChangeLog
===================================================================
--- trunk/g10/ChangeLog	2005-09-06 18:42:13 UTC (rev 3884)
+++ trunk/g10/ChangeLog	2005-09-07 15:53:03 UTC (rev 3885)
@@ -1,3 +1,8 @@
+2005-09-07  Werner Koch  <wk at g10code.com>
+
+	* misc.c (parse_options): Allow meta option "help" to list all
+	options and to exit the program.
+
 2005-09-02  David Shaw  <dshaw at jabberwocky.com>
 
 	* parse-packet.c (enum_sig_subpkt, parse_signature,
@@ -18,6 +23,11 @@
 	* photoid.c (generate_photo_id): Enable readline completion and
 	tilde expansion for the JPEG prompt.
 
+2005-08-30  Werner Koch  <wk at g10code.com>
+
+	* passphrase.c (agent_open): Print a warning and not an error in
+	case of a missing agent.  Should fix Debian bug #325578.
+
 2005-08-26  David Shaw  <dshaw at jabberwocky.com>
 
 	* misc.c (openpgp_pk_algo_usage): Default to allowing CERT for
@@ -79,6 +89,7 @@
 	--passphrase command line option.  Only useful in very special
 	circumstances.
 
+>>>>>>> .r3884
 2005-08-05  Werner Koch  <wk at g10code.com>
 
 	* gpgv.c (keyserver_import_fprint): New stub.

Modified: trunk/g10/card-util.c
===================================================================
--- trunk/g10/card-util.c	2005-09-06 18:42:13 UTC (rev 3884)
+++ trunk/g10/card-util.c	2005-09-07 15:53:03 UTC (rev 3885)
@@ -156,6 +156,7 @@
     case 0:
     case 0xffff: return "test card";
     case 0x0001: return "PPC Card Systems";
+    case 0x0002: return "Prism";
     default: return "unknown";
     }
 }

Modified: trunk/g10/misc.c
===================================================================
--- trunk/g10/misc.c	2005-09-06 18:42:13 UTC (rev 3884)
+++ trunk/g10/misc.c	2005-09-07 15:53:03 UTC (rev 3885)
@@ -966,6 +966,15 @@
 {
   char *tok;
 
+  if (str && !strcmp (str, "help"))
+    {
+      int i;
+
+      for(i=0;opts[i].name;i++)
+        printf ("%s\n", opts[i].name);
+      g10_exit (0);
+    }
+
   while((tok=optsep(&str)))
     {
       int i,rev=0;

Modified: trunk/g10/passphrase.c
===================================================================
--- trunk/g10/passphrase.c	2005-09-06 18:42:13 UTC (rev 3884)
+++ trunk/g10/passphrase.c	2005-09-07 15:53:03 UTC (rev 3885)
@@ -314,7 +314,7 @@
               if (orig_codeset)
                 bind_textdomain_codeset (PACKAGE, orig_codeset);
 #endif /*ENABLE_NLS*/
-              log_error (_("gpg-agent is not available in this session\n"));
+              log_info (_("gpg-agent is not available in this session\n"));
               opt.use_agent = 0;
             }
           return NULL;




More information about the Gnupg-commits mailing list