On Monday 14 of September 2009 19:21:29 Marek Zizlavsky wrote: > The problem is, I can't find any banner_receive() or banner_get() > function in libssh2 API.
You can't. banner_receive() is called internally from libssh2_session_startup(). > I found tutorial for using libssh library (I know, it is different > project from libssh2) at http://dev.libssh.org/wiki/Tutorial. Libssh > has function, which solves exactly what I'm missing (or just can't > find) in libssh2: > > char *ssh_get_banner(SSH_SESSION *session); > > I hope, It will be no problem to implement equivalent function in > libssh2 and name it libssh2_banner_get(). I think banner_receive() is the replacement for ssh_get_banner(). It just reads the banner from server. > I hope you can to add to session.c a similar function like: > > char *libssh2_banner_get(LIBSSH2_SESSION * session) { > if (session->remote.banner) > return strdup(session->remote.banner); > else > return NULL; > } Adding a public function to access it might be a good idea. Kamil _______________________________________________ libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel