g10: Fix keysize with --expert.

* g10/keygen.c (ask_keysize): It's 768 only for DSA.

--

(forwardport of
1.4 commit ca1fc59626)

GnuPG-bug-id: 2238
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
NIIBE Yutaka 2016-07-06 11:45:05 +09:00
parent 4f336ed780
commit 1c15136895
1 changed files with 2 additions and 2 deletions

View File

@ -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;