Subject: Re: known_hosts support (first take)

Re: known_hosts support (first take)

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 4 May 2009 14:12:20 +0200 (CEST)

On Mon, 4 May 2009, Mikhail Gusarov wrote:

> Erm... What?
>
> LIBSSH2_API const char *
> libssh2_hostkey_hash(LIBSSH2_SESSION * session, int hash_type)

...

> You just need a function returning
> session->{server_hostkey,server_hostkey_len} as a const char* / int
> correspondingly.

Do I really?

I have a lot of known_hosts entries that mention 'ssh-rsa'. Doesn't that
require a different key to get reeturned?

Some other known_host entries mention 'ssh-dss', is that then the sha-1 key
you mention?

-- 
  / daniel.haxx.se
------------------------------------------------------------------------------
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