aboutsummaryrefslogtreecommitdiff
path: root/include/libssh/session.h
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2011-01-10 17:39:47 +0100
committerAris Adamantiadis <aris@0xbadc0de.be>2011-01-10 17:39:47 +0100
commitbcea8921ba279712efc79dc46bbe427bc70d8def (patch)
treef82cfa6c506b250d4da81d4638290a39b0133fbb /include/libssh/session.h
parent076dfb82942384d9839f779a986b95932a754c9e (diff)
downloadlibssh-bcea8921ba279712efc79dc46bbe427bc70d8def.tar.gz
libssh-bcea8921ba279712efc79dc46bbe427bc70d8def.tar.xz
libssh-bcea8921ba279712efc79dc46bbe427bc70d8def.zip
Change blocking parameter to a flag
Diffstat (limited to 'include/libssh/session.h')
-rw-r--r--include/libssh/session.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/libssh/session.h b/include/libssh/session.h
index a2cdfa07..406ba139 100644
--- a/include/libssh/session.h
+++ b/include/libssh/session.h
@@ -51,6 +51,10 @@ enum ssh_dh_state_e {
DH_STATE_FINISHED
};
+
+/* libssh calls may block an undefined amount of time */
+#define SSH_SESSION_FLAG_BLOCKING 1
+
struct ssh_session_struct {
struct error_struct error;
struct ssh_socket_struct *socket;
@@ -72,8 +76,8 @@ struct ssh_session_struct {
/* two previous are deprecated */
/* int auth_service_asked; */
-/* socket status */
- int blocking; /* functions should block */
+ /* session flags (SSH_SESSION_FLAG_*) */
+ int flags;
ssh_string banner; /* that's the issue banner from
the server */