Hi Marek,

On Monday 14 of September 2009 01:34:45 Marek Zizlavsky wrote:
> I'm writing a simple SSH client console application using libssh2
> library. I would like to display banner send by remote SSH server, so
> user can read it. When I try to access session->remote.banner
> structure item, I receive "error: dereferencing pointer to incomplete
> type" compiler error (using gcc 4.3.3). What is proper way to obtain
> banner text using libssh2?

what are you trying to compile? Please attach a minimal example.

> P.S. Maybe it will be nice to have libssh2_banner_get equivalent to
> function libssh2_banner_set.

It would be a bit overkill. Moreover libssh2_banner_set() sets the *local* 
banner. You want to use banner_receive() to set the remote one.

Kamil
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel

Reply via email to