Hey Background: http://daniel.haxx.se/blog/2009/05/04/adding-known-hosts-support/
I intend to bring some old work back to life. This is the last of the previous known hosts support patch I know of: http://libssh2.haxx.se/mail/libssh2-devel-archive-2007-12/att-0000/known_hosts-2.patch My idea is to write/offer functions for libssh2 that can: 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 That patch I link to above doesn't seem to offer D and E, but does at least parts of A, B and C. I'm open for feedback and comments on this. I've not yet figured out the (E) part so I'm perhaps most interested on that... How does libssh2_hostkey_hash() relate to all this? -- / 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@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libssh2-devel