[Pkg-gnupg-commit] [gnupg1] 13/35: g10: Fix keysize with --expert.
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Mon Aug 29 14:48:38 UTC 2016
This is an automated email from the git hooks/post-receive script.
dkg pushed a commit to branch master
in repository gnupg1.
commit ca1fc596267b42a894a3fc85c3733007c672ed1f
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.
--
GnuPG-bug-id: 2238
Signed-off-by: NIIBE Yutaka <gniibe at fsij.org>
---
g10/keygen.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/g10/keygen.c b/g10/keygen.c
index 76ee74e..268fce5 100644
--- a/g10/keygen.c
+++ b/g10/keygen.c
@@ -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;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gnupg1.git
More information about the Pkg-gnupg-commit
mailing list