cURL / Mailing Lists / curl-library / Single Mail

curl-library

RE: Reflection for Secure IT Server

From: Xu, Qiang (FXSGSC) <Qiang.Xu_at_fujixerox.com>
Date: Tue, 4 May 2010 11:51:01 +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: Monday, May 03, 2010 8:04 PM
> To: libcurl development
> Subject: RE: Reflection for Secure IT Server
>
> I would think you need to instrument how lissh2_sftp_write()
> that libcurl uses acts, and what libcurl then does after the
> working ones etc. Possibly in combination with enabling
> libssh2 debug tracing.

I added some debug function below, but it isn't useful:
=================================================
/* curl-7.20.1/lib/ssh.c */
static CURLcode ssh_statemach_act(struct connectdata *conn, bool *block)
{
  ...
    case SSH_SFTP_INIT:
      /*
       * Start the libssh2 sftp session
       */
      sshc->sftp_session = libssh2_sftp_init(sshc->ssh_session);
      if(!sshc->sftp_session) {
        ...
      }
      libssh2_trace(sshc->sftp_session, ~0); //xq
      state(conn, SSH_SFTP_REALPATH);
      break;
  ...
}
=================================================
But the libcurl output is the same as before, when the expression " libssh2_trace(sshc->sftp_session, ~0)" was not added. Any other thing to do to see detailed libssh2 trace here?

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