Page MenuHome GnuPG

gpg-agent fails when adding a RSA ssh key
Closed, ResolvedPublic

Description

Release: svn:GNUPG-1-9-BRANCH rev:4135

Environment

FC3
svn:GNUPG-1-9-BRANCH rev:4135
automake-1.9.6
libassuan-0.6.10
libksba-0.9.13
pinentry-0.7.2
pth-2.0.6

Description

When trying to add a 4096 bit RSA ssh key to the gpg agent it fails with

"Error reading response length from authentication socket."

If there aren't keys already in the agent, this is a fatal error:

"Fatal error: Resource temporarily unavailable"

The error code (for both the fatal and the non-fatal error cases) is 141.

How To Repeat

eval gpg-agent --enable-ssh-support --daemon

ssh-add rsa_4096

Fix

Unknown

Event Timeline

werner added a project: ssh.
werner added a subscriber: gnupg-hackers.
werner added a subscriber: moritz.
werner added a subscriber: werner.

This was due to an out of secure memory condition.
To solve this I have increased the secure memmory poool to 32k, add better error
reporting as well as a simple check to detect keys greater that 4k.

Fixed in svn -r 4229