2009/5/4 Daniel Stenberg <daniel_at_haxx.se>:
> On Mon, 4 May 2009, Mikhail Gusarov wrote:
>> You just need a function returning
>> session->{server_hostkey,server_hostkey_len} as a const char* / int
>> correspondingly.
>
> I have a lot of known_hosts entries that mention 'ssh-rsa'. Doesn't that
> require a different key to get reeturned?
Don't think so. The remote server will send either ssh-rsa, ssh-rsa2
or ssh-dss. The client only needs the contents of whichever key was
sent and some way to work out which format it is? (this might be
embedded in the key. I can't remember).
> Some other known_host entries mention 'ssh-dss', is that then the sha-1 key
> you mention?
The sha-1 key is just another type of hashed key and libssh2 allows
you to fetch MD5 or SHA1. I'm not sure I see the point of having two
hash formats.
Alex
------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations
Conference from O'Reilly Media. Velocity features a full day of
expert-led, hands-on workshops and two days of sessions from industry
leaders in dedicated Performance & Operations tracks. Use code vel09scf
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
libssh2-devel mailing list
libssh2-devel_at_lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libssh2-devel
Received on 2009-05-04