diff options
author | Justus Winter <[email protected]> | 2016-04-07 11:55:42 +0000 |
---|---|---|
committer | Justus Winter <[email protected]> | 2016-04-07 11:55:42 +0000 |
commit | 02cf1357dd5ee34a57371f55b9d312b8b9e3a7e8 (patch) | |
tree | 9ff1a83d19b02f7066eabbae1c8bcc47f257068e /agent/command-ssh.c | |
parent | g10: Fix typo. (diff) | |
download | gnupg-02cf1357dd5ee34a57371f55b9d312b8b9e3a7e8.tar.gz gnupg-02cf1357dd5ee34a57371f55b9d312b8b9e3a7e8.zip |
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 <[email protected]>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions