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 22:44:46 +0200 (CEST)

On Mon, 4 May 2009, J.T. Conklin wrote:

>> A read the known_hosts file(s) and keep a set of hosts/key pair in memory
>> B compare a host/key with the known set to see if it exists and if so if it
>> matches the key
>> C add/replace a host key/key in the in-memory set
>> D write the in-memory set to a file
>> E extract an (OpenSSH-compatible) key for key checking - from a connected
>> session

> But it seems to me, a general purpose library like libssh2 should
> support fetching and storing known host entries, keys, etc. with a
> layer of indirection, with replaceable function pointer hooks.

While I don't think we need to do any of that now, as this approach of mine
doesn't shut the doors for this kind of flexible import/export features, we
can just as well provide a function for the addition of keys, and have an
access-function for reading them and that should be pretty much what's needed
to offer all that functionality.

The functions for reading and writing OpenSSH functions could then use those
functions.

-- 
  / 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