Commit c3f3987a authored by Niels Möller's avatar Niels Möller
Browse files

*** empty log message ***

Rev: ChangeLog:1.95
Rev: doc/TODO:1.55
Rev: src/lsh.c:1.70
Rev: src/tcpforward.c:1.29
Rev: src/tcpforward_commands.c:1.11
parent c68f31cf
1999-09-07 Niels Mller <nisse@cuckoo.localdomain>
* configure.in: Bumbed version to 0.1.9.
* src/server_session.c (do_spawn_shell): Use better exception
handlers.
* src/read_data.c (do_exc_read_eof_channel_handler): Bugfix: Don't
call channel_close() twice.
* src/io_commands.c (do_listen): Raise a better exception.
* src/io.h (close_callback): Changed return type to void.
* src/exception.h (EXC_IO_LISTEN): New constant.
* src/exception.c (make_report_exception_handler): New function.
* src/connection.c (packet_types): Made this table public.
* src/channel_commands.c (do_channel_open_command): Raise a more
sensible exception.
* src/channel.c (register_channel): Take a connections as
argument, in order to install the right exception handler.
(prepare_channel_open): -"-
* src/debug.c (do_debug): Display packet type. Don't display
USERAUTH_REQUEST messages.
* src/channel.h (ssh_channel): Added a connection argument to
CHANNEL_SEND.
* src/client.c (do_send_first): New function, to add stdin to the
connection's resources.
* src/userauth.h (authenticate): Added connection argument.
* src/userauth.c (format_userauth_failure): Moved here (from
......
......@@ -129,6 +129,9 @@ instance, a writing to a file associated with a channel may fail. In
that case, the channel should be closed, but the connection should not
die. Handle the LSH_CHANNEL_FINISHED code properly.
Should channels be resources, or get some other kind of notification
if the connection they are associated with disappears?
CHANNEL CLOSE
......@@ -299,4 +302,4 @@ Add const to arguments of type struct exception_handler *?
Do something reasonable in do_buffered_read() when self->handler is
NULL?
Figure out why -nt doesn't work.
......@@ -235,6 +235,7 @@ do_lsh_default_handler(struct exception_handler *s,
case EXC_IO_EOF:
close_fd_nicely(exc->fd, 0);
break;
#if 0
case EXC_IO_CONNECT:
case EXC_IO_READ:
case EXC_IO_WRITE:
......@@ -242,6 +243,7 @@ do_lsh_default_handler(struct exception_handler *s,
close_fd(exc->fd, 0);
*self->status = EXIT_FAILURE;
break;
#endif
default:
*self->status = EXIT_FAILURE;
EXCEPTION_RAISE(self->super.parent, e);
......
......@@ -134,11 +134,12 @@ do_tcpip_receive(struct ssh_channel *c,
}
static void
do_tcpip_send(struct ssh_channel *c)
do_tcpip_send(struct ssh_channel *s,
struct ssh_connection *c UNUSED)
{
CAST(tcpip_channel, closure, c);
CAST(tcpip_channel, self, s);
closure->socket->super.want_read = 1;
self->socket->super.want_read = 1;
}
static void
......
......@@ -164,7 +164,7 @@ new_tcpip_channel(struct channel_open_command *c,
channel = make_tcpip_channel(self->peer->fd, TCPIP_WINDOW_SIZE);
channel->write = connection->write;
*request = prepare_channel_open(connection->table, self->type,
*request = prepare_channel_open(connection, self->type,
channel,
"%S%i%S%i",
self->port->ip, self->port->port,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment