[pkg-gnupg-maint] Bug#834447: Bug#834447: Importing secret keys: Too much data for IPC layer

Werner Koch wk at gnupg.org
Tue Aug 16 08:51:46 UTC 2016


On Mon, 15 Aug 2016 21:46, rak at debian.org said:

> This may be because my key is "stupidly long" (cf. [0]). I admit, it is
> stupidly long, but I generated it years ago and am stuck with it. So
> could we please maintain support for it?

Should be easier to allow than expected.  I had in mind that we are using
status lines causing the limit but in reality this is a sanity limit
which you can change in the source:

--8<---------------cut here---------------start------------->8---
diff --git a/agent/command.c b/agent/command.c
index 7fc28ad..9522f89 100644
--- a/agent/command.c
+++ b/agent/command.c
@@ -49,7 +49,7 @@
 /* Maximum allowed size of the key parameters.  */
 #define MAXLEN_KEYPARAM 1024
 /* Maximum allowed size of key data as used in inquiries (bytes). */
-#define MAXLEN_KEYDATA 4096
+#define MAXLEN_KEYDATA 8192
 /* The size of the import/export KEK key (in bytes).  */
 #define KEYWRAP_KEYSIZE (128/8)
--8<---------------cut here---------------end--------------->8---

If this works for you I'll commit that upstream.


Salam-Shalom,

   Werner

-- 
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.
 /* Join us at OpenPGP.conf  <https://openpgp-conf.org> */



More information about the pkg-gnupg-maint mailing list