aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorrofl0r <retnyg@gmx.net>2011-12-31 02:15:16 +0100
committerAndreas Schneider <asn@cryptomilk.org>2012-01-02 12:39:43 +0100
commit4305da29a19446ccd2ab83c6b42cbd037fe377a3 (patch)
tree1d642f1930c42faeb89734234bf2c1e32b18e464 /include
parent2f861a858be9f2fe1f55a0fbfc47d732e3b3b31b (diff)
downloadlibssh-4305da29a19446ccd2ab83c6b42cbd037fe377a3.tar.gz
libssh-4305da29a19446ccd2ab83c6b42cbd037fe377a3.tar.xz
libssh-4305da29a19446ccd2ab83c6b42cbd037fe377a3.zip
session: Cleanup timeout functions.
It is possible that we get unrelated packets while waiting for termination, thus waiting indefinitely. As a workaround we have to check the user-supplied timeout.
Diffstat (limited to 'include')
-rw-r--r--include/libssh/misc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/libssh/misc.h b/include/libssh/misc.h
index c05a5870..eb6c1afa 100644
--- a/include/libssh/misc.h
+++ b/include/libssh/misc.h
@@ -78,6 +78,7 @@ const void *_ssh_list_pop_head(struct ssh_list *list);
#define ssh_list_pop_head(type, ssh_list)\
((type)_ssh_list_pop_head(ssh_list))
+int ssh_make_milliseconds(long sec, long usec);
void ssh_timestamp_init(struct ssh_timestamp *ts);
int ssh_timeout_elapsed(struct ssh_timestamp *ts, int timeout);
int ssh_timeout_update(struct ssh_timestamp *ts, int timeout);