mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
g10: Fix keysize with --expert.
* g10/keygen.c (ask_keysize): It's 768 only for DSA. -- GnuPG-bug-id: 2238 Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
parent
39e32d375e
commit
ca1fc59626
@ -1582,8 +1582,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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user