[git] GnuPG - branch, master, updated. gnupg-2.1.0-beta442-18-gf171fd2

by Werner Koch cvs at cvs.gnupg.org
Wed Jun 25 09:19:44 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  f171fd226e84311f92545ca0494771db07ba777d (commit)
      from  74c7ab5fa636c7721dd7529d5bbfce70a47e5550 (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 f171fd226e84311f92545ca0494771db07ba777d
Author: Werner Koch <wk at gnupg.org>
Date:   Tue Jun 24 09:13:38 2014 +0200

    gpg: Allow key-to-card upload for cert-only keys
    
    * g10/card-util.c (card_store_subkey): Allo CERT usage for key 0.
    --
    
    Suggested-by: Dominik Heidler <dominik at heidler.eu>

diff --git a/g10/card-util.c b/g10/card-util.c
index 411a4d4..84752eb 100644
--- a/g10/card-util.c
+++ b/g10/card-util.c
@@ -1570,7 +1570,7 @@ card_store_subkey (KBNODE node, int use)
       goto leave;
     }
 
-  allow_keyno[0] = (!use || (use & (PUBKEY_USAGE_SIG)));
+  allow_keyno[0] = (!use || (use & (PUBKEY_USAGE_SIG|PUBKEY_USAGE_CERT)));
   allow_keyno[1] = (!use || (use & (PUBKEY_USAGE_ENC)));
   allow_keyno[2] = (!use || (use & (PUBKEY_USAGE_SIG|PUBKEY_USAGE_AUTH)));
 

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

Summary of changes:
 g10/card-util.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


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




More information about the Gnupg-commits mailing list