diff options
Diffstat (limited to 'channels.c')
-rw-r--r-- | channels.c | 27 |
1 files changed, 1 insertions, 26 deletions
diff --git a/channels.c b/channels.c index f015a049e..568779dff 100644 --- a/channels.c +++ b/channels.c | |||
@@ -39,7 +39,7 @@ | |||
39 | */ | 39 | */ |
40 | 40 | ||
41 | #include "includes.h" | 41 | #include "includes.h" |
42 | RCSID("$OpenBSD: channels.c,v 1.163 2002/01/27 14:57:46 stevesk Exp $"); | 42 | RCSID("$OpenBSD: channels.c,v 1.164 2002/02/03 17:55:55 markus Exp $"); |
43 | 43 | ||
44 | #include "ssh.h" | 44 | #include "ssh.h" |
45 | #include "ssh1.h" | 45 | #include "ssh1.h" |
@@ -1941,31 +1941,6 @@ channel_input_open_failure(int type, u_int32_t seq, void *ctxt) | |||
1941 | } | 1941 | } |
1942 | 1942 | ||
1943 | void | 1943 | void |
1944 | channel_input_channel_request(int type, u_int32_t seq, void *ctxt) | ||
1945 | { | ||
1946 | int id; | ||
1947 | Channel *c; | ||
1948 | |||
1949 | id = packet_get_int(); | ||
1950 | c = channel_lookup(id); | ||
1951 | |||
1952 | if (c == NULL || | ||
1953 | (c->type != SSH_CHANNEL_OPEN && c->type != SSH_CHANNEL_LARVAL)) | ||
1954 | packet_disconnect("Received request for " | ||
1955 | "non-open channel %d.", id); | ||
1956 | if (c->cb_fn != NULL && c->cb_event == type) { | ||
1957 | debug2("callback start"); | ||
1958 | c->cb_fn(c->self, c->cb_arg); | ||
1959 | debug2("callback done"); | ||
1960 | } else { | ||
1961 | char *service = packet_get_string(NULL); | ||
1962 | debug("channel %d: rcvd request for %s", c->self, service); | ||
1963 | debug("cb_fn %p cb_event %d", c->cb_fn , c->cb_event); | ||
1964 | xfree(service); | ||
1965 | } | ||
1966 | } | ||
1967 | |||
1968 | void | ||
1969 | channel_input_window_adjust(int type, u_int32_t seq, void *ctxt) | 1944 | channel_input_window_adjust(int type, u_int32_t seq, void *ctxt) |
1970 | { | 1945 | { |
1971 | Channel *c; | 1946 | Channel *c; |