Subject: [libssh2] libssh2_trace()

[libssh2] libssh2_trace()

From: sandeep patra <>
Date: Wed, 27 Jan 2010 13:24:13 +0530

I have downloaded the "libssh2-1.2.2" and configured it with
"--enable-debug" argument. Following are the steps i foolowed
1> ./configure --prefix=/usr --enable-debug
2> make
3> make install

then i have downloaded the "x11.c" file and modified it like below (changed
only a single line)
if (set_debug_on == 1)
        libssh2_trace(session, LIBSSH2_TRACE_CONN | LIBSSH2_TRACE_TRANS |

then compiled it using command
gcc -g -lssh2 -o x11 x11.c

now when i run this binary like
./x11 a.b.c.d user1 password1 DEBUG

it does not shows any debug output.

Am I missing somthing????

It would be a great help to me if anyone can help me in this regard and i
would be thankful.

Thanks and Regards,
Sandeep Kumar Patra

Received on 2010-01-27