diff options
author | Andreas Schneider <mail@cynapses.org> | 2009-07-27 23:17:35 +0200 |
---|---|---|
committer | Andreas Schneider <mail@cynapses.org> | 2009-07-27 23:17:35 +0200 |
commit | 1abdb28995fa5db61af7f385abf078c9b58fd843 (patch) | |
tree | 0a0bd658cd70d9cca461723ef71e486592a6c52c /libssh/channels.c | |
parent | 81dab99afcd0d9030aff9ab3f54a7a80101e36d2 (diff) | |
download | libssh-1abdb28995fa5db61af7f385abf078c9b58fd843.tar.gz libssh-1abdb28995fa5db61af7f385abf078c9b58fd843.tar.xz libssh-1abdb28995fa5db61af7f385abf078c9b58fd843.zip |
Fix SSH1 compilation.
Diffstat (limited to 'libssh/channels.c')
-rw-r--r-- | libssh/channels.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/libssh/channels.c b/libssh/channels.c index 88069bb..cf8bbf6 100644 --- a/libssh/channels.c +++ b/libssh/channels.c @@ -643,7 +643,7 @@ int channel_default_bufferize(ssh_channel channel, void *data, int len, * @see channel_request_exec() */ int channel_open_session(ssh_channel channel) { -#ifdef HAVE_SSH1 +#ifdef WITH_SSH1 if (channel->session->version == 1) { return channel_open_session1(channel); } @@ -887,7 +887,7 @@ int channel_write(ssh_channel channel, const void *data, uint32_t len) { return -1; } -#ifdef HAVE_SSH1 +#ifdef WITH_SSH1 if (channel->version == 1) { int rc = channel_write1(channel, data, len); leave_function(); @@ -1090,7 +1090,7 @@ int channel_request_pty_size(ssh_channel channel, const char *terminal, int rc = SSH_ERROR; enter_function(); -#ifdef HAVE_SSH1 +#ifdef WITH_SSH1 if (channel->version==1) { channel_request_pty_size1(channel,terminal, col, row); leave_function(); @@ -1159,7 +1159,7 @@ int channel_change_pty_size(ssh_channel channel, int cols, int rows) { enter_function(); -#ifdef HAVE_SSH1 +#ifdef WITH_SSH1 if (channel->version == 1) { rc = channel_change_pty_size1(channel,cols,rows); leave_function(); @@ -1195,7 +1195,7 @@ error: * @returns SSH_SUCCESS on success, SSH_ERROR on error. */ int channel_request_shell(ssh_channel channel) { -#ifdef HAVE_SSH1 +#ifdef WITH_SSH1 if (channel->version == 1) { return channel_request_shell1(channel); } @@ -1314,7 +1314,7 @@ int channel_request_exec(ssh_channel channel, const char *cmd) { ssh_string command = NULL; int rc = SSH_ERROR; -#ifdef HAVE_SSH1 +#ifdef WITH_SSH1 if (channel->version == 1) { return channel_request_exec1(channel, cmd); } |