GNOME Bugzilla – Bug 597813
[ssh-agent] Fix support for rsa1 keys
Last modified: 2009-10-09 00:19:45 UTC
The support for constraints created a bug: it's now impossible to make ssh-add work for rsa1 key. That's because we never read the comment for those keys, and so we assume the bytes are contraints, which they are really not. Attaching a first patch for this. However, you'll note that we can't save the comment since the CKA_LABEL field is (ab?)used to differentiate rsa1 keys from ssh2 keys. I don't know how to complete the fix because of this.
Created attachment 145054 [details] [review] [ssh-agent] Fix support for rsa1 keys Read the comment, instead of ignoring it and using the bytes as if they were constraints.
Downstream bug: https://bugzilla.novell.com/show_bug.cgi?id=540515
Thanks. Committed. Because we're replacing ssh-agent, we want rsa1 one keys added via ssh-add to work, but they aren't exactly first class citizens. Because of that, unless we find a better solution, I think it's fine to abuse the CKA_LABEL field as a way to differentiate them.