Fix to work with the latest CVS version of libssh2
authorJames Housley <jim@thehousleys.net>
Fri, 8 Jun 2007 16:02:57 +0000 (16:02 +0000)
committerJames Housley <jim@thehousleys.net>
Fri, 8 Jun 2007 16:02:57 +0000 (16:02 +0000)
commitcd4e6fbcacc41de714a8f485d64789f013f755d7
tree778a8703a72c4c460811c9442b714795acab474b
parent2fd2ca9dac58afb8663d8a1a3801aa254f855462
Fix to work with the latest CVS version of libssh2

* As of (LIBSSH2_APINO >= 200706012030) there are not *nb() functions
* As of (LIBSSH2_APINO >= 200706012030) most libssh2_*() functions
  can return LIBSSH2_ERROR_EAGAIN to indicate that the call would block.

To make the code work as previously, blocking, all the code has been
updated so that when (LIBSSH2_APINO >= 200706012030) it loops simulating
blocking.  This allows the existing code to function and not hold up
the upcoming release.
lib/ssh.c