On Thu, 11 Aug 2011, Henrik Nordström wrote:

I think a simpler way is to make all SSH send/recv go via session->send/recv set by default to _libssh2_send/recv

Additionally agent.c is also using _libssh2_send/recv with a slightly different usage pattern, doing I/O on the agent fd and not the libssh2 session fd.

Reworked patch attached. Can also be found in my github repository where various other small changes also resides while I am reading the code.

I think it looks really good. Is there anyone around with (different) opinions on Henrik's approach?

--

 / daniel.haxx.se
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

Reply via email to