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

Marked as obsolete.

Rev: src/proxy_channel.c:1.3
Rev: src/proxy_channel.h:1.3
parent d7409aa4
......@@ -2,6 +2,8 @@
*
* $Id$ */
#warning proxy_channel.c is obsolete; replaced by gateway_channel.c
/* lsh, an implementation of the ssh protocol
*
* Copyright (C) 1999 Balzs Scheidler
......@@ -37,35 +39,6 @@
#define WINDOW_SIZE 10000
#if 0
/* ;;GABA:
(class
(name proxy_flow_control)
(super flow_controlled)
(vars
(channel object proxy_channel)))
*/
static void
do_proxy_flow_control(struct flow_controlled *c,
UINT32 res UNUSED)
{
CAST(proxy_flow_control, closure, c);
CHANNEL_SEND(&closure->channel->super, NULL);
}
static struct flow_controlled *
make_proxy_flow_control(struct proxy_channel *channel)
{
NEW(proxy_flow_control, self);
self->super.report = do_proxy_flow_control;
self->channel = channel;
return &self->super;
}
#endif
static void
do_receive(struct ssh_channel *c,
int type,
......@@ -136,6 +109,8 @@ make_proxy_channel(UINT32 window_size,
self->super.request_types = request_types;
self->init_io = do_init_io;
/* FIXME: Why this? I would think it is up to each end point when
* they want to close the channel. /nisse */
if (client_side)
self->super.flags |= CHANNEL_CLOSE_AT_EOF;
......@@ -241,8 +216,8 @@ do_proxy_global_request(struct global_request *s UNUSED,
struct exception_handler *e)
{
struct lsh_string *request =
ssh_format("%c%a%c%ls", SSH_MSG_GLOBAL_REQUEST, type,
want_reply, args->capacity - args->pos, &args->data[args->pos]);
format_global_request(type, want_reply, "%ls",
args->capacity - args->pos, &args->data[args->pos]);
struct command *send;
......
......@@ -2,6 +2,8 @@
*
* $Id$ */
#warning proxy_channel.h is obsolete; replaced by gateway_channel.h
/* lsh, an implementation of the ssh protocol
*
* Copyright (C) 1999, 2000 Balzs Scheidler
......
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