diff options
author | Andreas Schneider <mail@cynapses.org> | 2010-03-13 14:18:32 +0100 |
---|---|---|
committer | Andreas Schneider <mail@cynapses.org> | 2010-03-13 14:21:01 +0100 |
commit | 74e23a7fa24be306e57c78ccfc5de0612daff383 (patch) | |
tree | f3db398500bfd248835dc3d6cf4e4995b8fdc182 /libssh | |
parent | 6372f671ed7424fe7fdf660362b2a79062ed1963 (diff) | |
download | libssh-74e23a7fa24be306e57c78ccfc5de0612daff383.tar.gz libssh-74e23a7fa24be306e57c78ccfc5de0612daff383.tar.xz libssh-74e23a7fa24be306e57c78ccfc5de0612daff383.zip |
Added missing SSH_OPTIONS_FD option.
Diffstat (limited to 'libssh')
-rw-r--r-- | libssh/options.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libssh/options.c b/libssh/options.c index a7d62415..3359253e 100644 --- a/libssh/options.c +++ b/libssh/options.c @@ -436,6 +436,15 @@ int ssh_options_set(ssh_session session, enum ssh_options_e type, session->port = i & 0xffff; } break; + case SSH_OPTIONS_FD: + if (value == NULL) { + session->fd = -1; + } else { + socket_t *x = (socket_t *) value; + + session->fd = *x & 0xffff; + } + break; case SSH_OPTIONS_USER: SAFE_FREE(session->username); if (value == NULL) { /* set default username */ |