This will allow an application developer to be able to capture the libssh2 trace output to a log file, or into a diagnostic window. Note that as with libssh2_trace(), libssh2 must be configured with --enable- debug otherwise this does nothing. Also note that if you enable tracing for LIBSSH2_DBG_TRANS, then you're going to get a lot of output in the form of packet hex dumps.
Previously, trace output always went to stderr, which mean you had to use dup2() to coerce your log file handle into stderr if you wanted to capture the output.
I have so far tested this on Mac OS X, Windows, Windows x64 and Linux (32-bit).
Thanks!
0001-Implemented-libssh2_trace_sethandler-that-allows-tra.patch
Description: Binary data
_______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
