[git] GnuPG - branch, STABLE-BRANCH-2-0, updated. gnupg-2.0.30-8-g1c15136

by NIIBE Yutaka cvs at cvs.gnupg.org
Wed Jul 6 05:09:09 CEST 2016


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, STABLE-BRANCH-2-0 has been updated
       via  1c151368956e4558946d29d1698d9ae5028e62a7 (commit)
      from  4f336ed780cc2783395f3ff2b12b3ebb8e097f7b (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 1c151368956e4558946d29d1698d9ae5028e62a7
Author: NIIBE Yutaka <gniibe at fsij.org>
Date:   Wed Jul 6 11:45:05 2016 +0900

    g10: Fix keysize with --expert.
    
    * g10/keygen.c (ask_keysize): It's 768 only for DSA.
    
    --
    
    (forwardport of
    1.4 commit ca1fc596267b42a894a3fc85c3733007c672ed1f)
    
    GnuPG-bug-id: 2238
    Signed-off-by: NIIBE Yutaka <gniibe at fsij.org>

diff --git a/g10/keygen.c b/g10/keygen.c
index 560480d..1ad39bf 100644
--- a/g10/keygen.c
+++ b/g10/keygen.c
@@ -1802,8 +1802,8 @@ ask_keysize (int algo, unsigned int primary_keysize)
   int for_subkey = !!primary_keysize;
   int autocomp = 0;
 
-  if(opt.expert)
-    min=512;
+  if(opt.expert && algo == PUBKEY_ALGO_DSA)
+    min=768;
   else
     min=1024;
 

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

Summary of changes:
 g10/keygen.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)


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




More information about the Gnupg-commits mailing list