Re: known hosts API, updated

2009-06-05 Thread Daniel Stenberg
On Thu, 4 Jun 2009, Ben Kibbey wrote: > What about generating a new known_hosts entry based on the current > connection? something like libssh2_knownhosts_current() which can be > processed before host validation? I'm not sure I follow the logic for such a use case. If you connect to a host ri

Re: known hosts API, updated

2009-06-04 Thread Ben Kibbey
On Fri, May 29, 2009 at 10:22:00AM +0200, Daniel Stenberg wrote: > Hey again, > > Thanks to all the feedback from yday, I've now remodeled the file-based parts > of the API somewhat and the changes are: > > Two new functions: > > libssh2_knownhost_readline() > >- tells libssh2 to read a

known hosts API, updated

2009-05-29 Thread Daniel Stenberg
Hey again, Thanks to all the feedback from yday, I've now remodeled the file-based parts of the API somewhat and the changes are: Two new functions: libssh2_knownhost_readline() - tells libssh2 to read a given line, as it if it was from a known hosts file. You pass it a pointer to a