curl-library
RE: Reflection for Secure IT Server
Date: Tue, 4 May 2010 17:34:32 +0800
> -----Original Message-----
> From: curl-library-bounces_at_cool.haxx.se
> [mailto:curl-library-bounces_at_cool.haxx.se] On Behalf Of
> Daniel Stenberg
> Sent: Tuesday, May 04, 2010 5:03 PM
> To: libcurl development
> Subject: RE: Reflection for Secure IT Server
>
> What do you mean "no luck" with that? Surely it produced some
> kind of output?
> If not, did you really build libssh2 with debug tracing enabled?
Poor me! Previously I got no output because I added libssh2_trace() into a wrong place:
===================================================
/* wrong usage */
sshc->sftp_session = libssh2_sftp_init(sshc->ssh_session);
...
libssh2_trace(sshc->sftp_session, ~0); //xq
/* correct usage */
ssh->ssh_session = libssh2_session_init_ex(libssh2_malloc, libssh2_free,
libssh2_realloc, conn);
...
libssh2_trace(ssh->ssh_session, ~0); //xq
===================================================
You can see libssh2_sftp_init() was mistaken for libssh2_session_init(), :-(
I'll recompile it, and let you know the testing result.
Thanks,
Xu Qiang
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-05-04