2009/10/15 Peter Stuge <[email protected]> > Steven Van Ingelgem wrote: > > I have been looking on how to encrypt an existing TCP stream > > through libssh2, but I seem not to be able to find one? > > I don't know what you mean by "existing" - that implies trying to > splice an established TCP connection in some way, and there isn't > really any library for that anywhere, except maybe in Dan Kaminsky's > home directory. > > Check what libssh2_channel_direct_tcpip() does. Maybe it works for > you. > > There is more that can be done with TCP in SSH2 than what is > implemented in libssh2 so please send patches if you improve the > library. >
What I want to say is that if I have an established TCP connection (as in an integral "socket"), that I want to drop an encryption layer on top of it. direct_tcp would be good wouldn't it be that you need an established session, for which you do need to be authenticated... Also direct_tcp requests a host/port combination... And I would layer it on top of an existing socket. Maybe though I'll have a look at it. Thx, Steven
_______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
