aboutsummaryrefslogtreecommitdiffstats
path: root/agent/command-ssh.c
diff options
context:
space:
mode:
authorJustus Winter <[email protected]>2016-04-07 11:55:42 +0000
committerJustus Winter <[email protected]>2016-04-07 11:55:42 +0000
commit02cf1357dd5ee34a57371f55b9d312b8b9e3a7e8 (patch)
tree9ff1a83d19b02f7066eabbae1c8bcc47f257068e /agent/command-ssh.c
parentg10: Fix typo. (diff)
downloadgnupg-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