[git] GnuPG - branch, master, updated. gnupg-2.1.0-beta834-28-gbc8583f

by Werner Koch cvs at cvs.gnupg.org
Fri Oct 3 15:07:37 CEST 2014


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "The GNU Privacy Guard".

The branch, master has been updated
       via  bc8583f247898a1fa45f6de834d34b335ab1952c (commit)
      from  ade531acac5041b8346581fe323f36b9dcfee502 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit bc8583f247898a1fa45f6de834d34b335ab1952c
Author: Werner Koch <wk at gnupg.org>
Date:   Fri Oct 3 15:05:47 2014 +0200

    gpg: Allow creating a cert-only primary key.
    
    * g10/keygen.c (ask_key_flags): Allow a 'c' in direct entry.
    --
    
    GnuPG-bug-id: 1726

diff --git a/g10/keygen.c b/g10/keygen.c
index 17d7ce1..229f2bf 100644
--- a/g10/keygen.c
+++ b/g10/keygen.c
@@ -1718,6 +1718,13 @@ ask_key_flags(int algo,int subkey)
                 current |= PUBKEY_USAGE_ENC;
               else if ((*s == 'a' || *s == 'A') && (possible&PUBKEY_USAGE_AUTH))
                 current |= PUBKEY_USAGE_AUTH;
+              else if (!subkey && *s == 'c')
+                {
+                  /* Accept 'c' for the primary key because USAGE_CERT
+                     will will be set anyway.  This is for folks who
+                     want to experiment with a cert-only primary key.  */
+                  current |= PUBKEY_USAGE_CERT;
+                }
             }
           break;
         }

-----------------------------------------------------------------------

Summary of changes:
 g10/keygen.c |    7 +++++++
 1 file changed, 7 insertions(+)


hooks/post-receive
-- 
The GNU Privacy Guard
http://git.gnupg.org




More information about the Gnupg-commits mailing list