1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00
Justus Winter 02cf1357dd g10: Fix exporting secret keys of certain sizes.
* g10/build-packet.c (do_key): Do not use the header length specified
by the public key packet from the keyring, but let 'write_header2'
compute the required length.
--
Specifically exporting RSA keys of length 1024 failed, as the encoded
public key packet requires 141 bytes a length that fits into one byte,
but the secret key is significantly larger, making the export fail.

GnuPG-bug-id: 2307
Signed-off-by: Justus Winter <justus@g10code.com>
2016-04-07 13:55:42 +02:00
..
2016-03-14 17:51:43 +01:00
2016-02-14 14:46:30 +01:00
2014-10-31 14:21:34 +01:00
2015-08-06 17:00:41 +09:00
2016-03-02 20:36:19 +01:00
2007-07-04 19:49:40 +00:00
2014-11-13 12:01:42 +01:00
2015-05-01 13:58:18 +09:00
2015-02-04 09:15:34 +01:00
2015-02-04 09:15:34 +01:00
2016-01-18 11:20:15 +01:00
2016-01-19 16:25:31 +01:00
2015-10-05 19:48:47 +02:00
2015-12-21 20:56:29 +09:00
2016-01-22 10:54:10 +01:00
2016-04-07 13:51:26 +02:00
2016-01-18 12:15:09 +01:00
2015-11-17 12:50:22 +01:00
2015-11-17 12:50:22 +01:00
2008-12-12 08:54:50 +00:00
2016-01-18 11:20:15 +01:00
2015-12-22 15:03:56 +01:00
2015-11-17 12:50:22 +01:00
2016-03-08 14:08:49 +01:00
2016-01-06 08:49:45 +01:00
2015-11-19 15:48:01 +01:00
2014-01-29 17:45:05 +01:00