[PATCH] Make --enable-large-rsa work

Carsten Leonhardt leo at carotec.de
Wed Feb 4 11:57:17 CET 2015


Hi,

This patch makes --enable-large-rsa actually work for me, otherwise the
dialogue doesn't allow a 8192 bit keysize to be entered.

Carsten

(re-sent as my first try seems to be stuck in the moderation queue)

--- g10/keygen.c~	Fri Jan 30 17:55:11 2015
+++ g10/keygen.c	Fri Jan 30 17:55:11 2015
@@ -1995,7 +1995,7 @@
 static unsigned
 ask_keysize (int algo, unsigned int primary_keysize)
 {
-  unsigned int nbits, min, def = DEFAULT_STD_KEYSIZE, max=4096;
+  unsigned int nbits, min, def = DEFAULT_STD_KEYSIZE, max= (opt.flags.large_rsa ? 8192 : 4096);
   int for_subkey = !!primary_keysize;
   int autocomp = 0;
 



More information about the Gnupg-devel mailing list