summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--channels.c27
-rw-r--r--channels.h3
3 files changed, 6 insertions, 29 deletions
diff --git a/ChangeLog b/ChangeLog
index bcdce1860..898159d14 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -61,6 +61,9 @@
61 server_input_channel_req does generic request parsing on server side 61 server_input_channel_req does generic request parsing on server side
62 session_input_channel_req handles just session specific things now 62 session_input_channel_req handles just session specific things now
63 ok djm@ 63 ok djm@
64 - markus@cvs.openbsd.org 2002/02/03 17:55:55
65 [channels.c channels.h]
66 remove unused channel_input_channel_request
64 67
6520020130 6820020130
66 - (djm) Delay PRNG seeding until we need it in ssh-keygen, from markus@ 69 - (djm) Delay PRNG seeding until we need it in ssh-keygen, from markus@
@@ -7463,4 +7466,4 @@
7463 - Wrote replacements for strlcpy and mkdtemp 7466 - Wrote replacements for strlcpy and mkdtemp
7464 - Released 1.0pre1 7467 - Released 1.0pre1
7465 7468
7466$Id: ChangeLog,v 1.1815 2002/02/05 01:21:42 djm Exp $ 7469$Id: ChangeLog,v 1.1816 2002/02/05 01:22:08 djm Exp $
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"
42RCSID("$OpenBSD: channels.c,v 1.163 2002/01/27 14:57:46 stevesk Exp $"); 42RCSID("$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
1943void 1943void
1944channel_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
1968void
1969channel_input_window_adjust(int type, u_int32_t seq, void *ctxt) 1944channel_input_window_adjust(int type, u_int32_t seq, void *ctxt)
1970{ 1945{
1971 Channel *c; 1946 Channel *c;
diff --git a/channels.h b/channels.h
index 6c6008f91..fa43b8ea6 100644
--- a/channels.h
+++ b/channels.h
@@ -32,7 +32,7 @@
32 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 32 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
33 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 33 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34 */ 34 */
35/* RCSID("$OpenBSD: channels.h,v 1.60 2002/01/16 13:17:51 markus Exp $"); */ 35/* RCSID("$OpenBSD: channels.h,v 1.61 2002/02/03 17:55:55 markus Exp $"); */
36 36
37#ifndef CHANNEL_H 37#ifndef CHANNEL_H
38#define CHANNEL_H 38#define CHANNEL_H
@@ -157,7 +157,6 @@ int channel_close_fd(int *);
157 157
158/* protocol handler */ 158/* protocol handler */
159 159
160void channel_input_channel_request(int, u_int32_t, void *);
161void channel_input_close(int, u_int32_t, void *); 160void channel_input_close(int, u_int32_t, void *);
162void channel_input_close_confirmation(int, u_int32_t, void *); 161void channel_input_close_confirmation(int, u_int32_t, void *);
163void channel_input_data(int, u_int32_t, void *); 162void channel_input_data(int, u_int32_t, void *);