aboutsummaryrefslogtreecommitdiff
path: root/include/libssh
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cynapses.org>2010-07-07 12:40:49 +0200
committerAndreas Schneider <asn@cynapses.org>2010-07-07 12:43:50 +0200
commit82beeea61927ad789ac9a728b09c32bb8d9a9a42 (patch)
tree10ab22bb5a68ad4e9c794030ea95f9fc6ab61ef2 /include/libssh
parenta18a3813fbf5454b9d52af05dd8118a054baf021 (diff)
downloadlibssh-82beeea61927ad789ac9a728b09c32bb8d9a9a42.tar.gz
libssh-82beeea61927ad789ac9a728b09c32bb8d9a9a42.tar.xz
libssh-82beeea61927ad789ac9a728b09c32bb8d9a9a42.zip
options: Added option to bind a client to an ip address.
Thanks to Donatello Boccaforno <donatello.boccaforno@gmail.com>.
Diffstat (limited to 'include/libssh')
-rw-r--r--include/libssh/libssh.h3
-rw-r--r--include/libssh/session.h2
2 files changed, 3 insertions, 2 deletions
diff --git a/include/libssh/libssh.h b/include/libssh/libssh.h
index ed64eca..11cd7ee 100644
--- a/include/libssh/libssh.h
+++ b/include/libssh/libssh.h
@@ -289,7 +289,8 @@ enum ssh_options_e {
SSH_OPTIONS_COMPRESSION_C_S,
SSH_OPTIONS_COMPRESSION_S_C,
SSH_OPTIONS_HOSTKEYCHECK,
- SSH_OPTIONS_PROXYCOMMAND
+ SSH_OPTIONS_PROXYCOMMAND,
+ SSH_OPTIONS_BINDADDR
};
enum {
diff --git a/include/libssh/session.h b/include/libssh/session.h
index f4810e2..4de71b1 100644
--- a/include/libssh/session.h
+++ b/include/libssh/session.h
@@ -129,7 +129,7 @@ struct ssh_session_struct {
#endif
char *username;
char *host;
- char *bindaddr; /* TODO: check if needed */
+ char *bindaddr; /* bind the client to an ip addr */
char *xbanner; /* TODO: looks like it is not needed */
struct ssh_list *identity;
char *sshdir;