Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
LSH
lsh
Commits
05a49c76
Commit
05a49c76
authored
Mar 26, 2000
by
Niels Möller
Browse files
Marked as obsolete.
Rev: src/proxy_channel.c:1.3 Rev: src/proxy_channel.h:1.3
parent
d7409aa4
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/proxy_channel.c
View file @
05a49c76
...
...
@@ -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
;
...
...
src/proxy_channel.h
View file @
05a49c76
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment