fixed compilation with libssh4

git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5-gxs-b1@5436 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2012-08-17 14:22:53 +00:00
parent 2c4a1bf6e4
commit 34ffb229e4
2 changed files with 7 additions and 2 deletions

View File

@ -142,8 +142,9 @@ sshserver {
#
INCLUDEPATH += ../../../lib/libssh-0.5.2/include/
LIBS += ../../../lib/libssh-0.5.2/build/src/libssh.a
LIBS += ../../../lib/libssh-0.5.2/build/src/threads/libssh_threads.a
# LIBS += ../../../lib/libssh-0.5.2/build/src/libssh.a
# LIBS += ../../../lib/libssh-0.5.2/build/src/threads/libssh_threads.a
LIBS *= -lssh
HEADERS += ssh/rssshd.h
SOURCES += ssh/rssshd.cc

View File

@ -146,7 +146,11 @@ int RsSshd::listenConnect()
return 0;
}
#if LIBSSH_VERSION_INT >= SSH_VERSION_INT(0,5,0)
if (ssh_handle_key_exchange(mSession))
#else
if (ssh_accept(mSession))
#endif
{
printf("ssh_handle_key_exchange: %s\n", ssh_get_error(mSession));
return 0;