summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--channels.c18
2 files changed, 21 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 04fa8c25a..9fd67c662 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -70,6 +70,9 @@
70 Make PermitOpen take a list of permitted ports and act more like most 70 Make PermitOpen take a list of permitted ports and act more like most
71 other keywords (ie the first match is the effective setting). This 71 other keywords (ie the first match is the effective setting). This
72 also makes it easier to override a previously set PermitOpen. ok djm@ 72 also makes it easier to override a previously set PermitOpen. ok djm@
73 - stevesk@cvs.openbsd.org 2006/07/21 21:13:30
74 [channels.c]
75 more ARGSUSED (lint) for dispatch table-driven functions; ok djm@
73 76
7420060713 7720060713
75 - (dtucker) [auth-krb5.c auth-pam.c] Still more errno.h 78 - (dtucker) [auth-krb5.c auth-pam.c] Still more errno.h
@@ -4988,4 +4991,4 @@
4988 - (djm) Trim deprecated options from INSTALL. Mention UsePAM 4991 - (djm) Trim deprecated options from INSTALL. Mention UsePAM
4989 - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu 4992 - (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu
4990 4993
4991$Id: ChangeLog,v 1.4424 2006/07/24 04:08:13 djm Exp $ 4994$Id: ChangeLog,v 1.4425 2006/07/24 04:08:32 djm Exp $
diff --git a/channels.c b/channels.c
index c6c5c8899..e44a2ab4f 100644
--- a/channels.c
+++ b/channels.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: channels.c,v 1.258 2006/07/21 12:43:36 dtucker Exp $ */ 1/* $OpenBSD: channels.c,v 1.259 2006/07/21 21:13:30 stevesk Exp $ */
2/* 2/*
3 * Author: Tatu Ylonen <ylo@cs.hut.fi> 3 * Author: Tatu Ylonen <ylo@cs.hut.fi>
4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -736,12 +736,14 @@ typedef void chan_fn(Channel *c, fd_set *readset, fd_set *writeset);
736chan_fn *channel_pre[SSH_CHANNEL_MAX_TYPE]; 736chan_fn *channel_pre[SSH_CHANNEL_MAX_TYPE];
737chan_fn *channel_post[SSH_CHANNEL_MAX_TYPE]; 737chan_fn *channel_post[SSH_CHANNEL_MAX_TYPE];
738 738
739/* ARGSUSED */
739static void 740static void
740channel_pre_listener(Channel *c, fd_set *readset, fd_set *writeset) 741channel_pre_listener(Channel *c, fd_set *readset, fd_set *writeset)
741{ 742{
742 FD_SET(c->sock, readset); 743 FD_SET(c->sock, readset);
743} 744}
744 745
746/* ARGSUSED */
745static void 747static void
746channel_pre_connecting(Channel *c, fd_set *readset, fd_set *writeset) 748channel_pre_connecting(Channel *c, fd_set *readset, fd_set *writeset)
747{ 749{
@@ -796,6 +798,7 @@ channel_pre_open(Channel *c, fd_set *readset, fd_set *writeset)
796 FD_SET(c->ctl_fd, readset); 798 FD_SET(c->ctl_fd, readset);
797} 799}
798 800
801/* ARGSUSED */
799static void 802static void
800channel_pre_input_draining(Channel *c, fd_set *readset, fd_set *writeset) 803channel_pre_input_draining(Channel *c, fd_set *readset, fd_set *writeset)
801{ 804{
@@ -808,6 +811,7 @@ channel_pre_input_draining(Channel *c, fd_set *readset, fd_set *writeset)
808 } 811 }
809} 812}
810 813
814/* ARGSUSED */
811static void 815static void
812channel_pre_output_draining(Channel *c, fd_set *readset, fd_set *writeset) 816channel_pre_output_draining(Channel *c, fd_set *readset, fd_set *writeset)
813{ 817{
@@ -937,6 +941,7 @@ channel_pre_x11_open(Channel *c, fd_set *readset, fd_set *writeset)
937} 941}
938 942
939/* try to decode a socks4 header */ 943/* try to decode a socks4 header */
944/* ARGSUSED */
940static int 945static int
941channel_decode_socks4(Channel *c, fd_set *readset, fd_set *writeset) 946channel_decode_socks4(Channel *c, fd_set *readset, fd_set *writeset)
942{ 947{
@@ -1015,6 +1020,7 @@ channel_decode_socks4(Channel *c, fd_set *readset, fd_set *writeset)
1015#define SSH_SOCKS5_CONNECT 0x01 1020#define SSH_SOCKS5_CONNECT 0x01
1016#define SSH_SOCKS5_SUCCESS 0x00 1021#define SSH_SOCKS5_SUCCESS 0x00
1017 1022
1023/* ARGSUSED */
1018static int 1024static int
1019channel_decode_socks5(Channel *c, fd_set *readset, fd_set *writeset) 1025channel_decode_socks5(Channel *c, fd_set *readset, fd_set *writeset)
1020{ 1026{
@@ -1165,6 +1171,7 @@ channel_pre_dynamic(Channel *c, fd_set *readset, fd_set *writeset)
1165} 1171}
1166 1172
1167/* This is our fake X11 server socket. */ 1173/* This is our fake X11 server socket. */
1174/* ARGSUSED */
1168static void 1175static void
1169channel_post_x11_listener(Channel *c, fd_set *readset, fd_set *writeset) 1176channel_post_x11_listener(Channel *c, fd_set *readset, fd_set *writeset)
1170{ 1177{
@@ -1290,6 +1297,7 @@ channel_set_reuseaddr(int fd)
1290/* 1297/*
1291 * This socket is listening for connections to a forwarded TCP/IP port. 1298 * This socket is listening for connections to a forwarded TCP/IP port.
1292 */ 1299 */
1300/* ARGSUSED */
1293static void 1301static void
1294channel_post_port_listener(Channel *c, fd_set *readset, fd_set *writeset) 1302channel_post_port_listener(Channel *c, fd_set *readset, fd_set *writeset)
1295{ 1303{
@@ -1347,6 +1355,7 @@ channel_post_port_listener(Channel *c, fd_set *readset, fd_set *writeset)
1347 * This is the authentication agent socket listening for connections from 1355 * This is the authentication agent socket listening for connections from
1348 * clients. 1356 * clients.
1349 */ 1357 */
1358/* ARGSUSED */
1350static void 1359static void
1351channel_post_auth_listener(Channel *c, fd_set *readset, fd_set *writeset) 1360channel_post_auth_listener(Channel *c, fd_set *readset, fd_set *writeset)
1352{ 1361{
@@ -1380,6 +1389,7 @@ channel_post_auth_listener(Channel *c, fd_set *readset, fd_set *writeset)
1380 } 1389 }
1381} 1390}
1382 1391
1392/* ARGSUSED */
1383static void 1393static void
1384channel_post_connecting(Channel *c, fd_set *readset, fd_set *writeset) 1394channel_post_connecting(Channel *c, fd_set *readset, fd_set *writeset)
1385{ 1395{
@@ -1426,6 +1436,7 @@ channel_post_connecting(Channel *c, fd_set *readset, fd_set *writeset)
1426 } 1436 }
1427} 1437}
1428 1438
1439/* ARGSUSED */
1429static int 1440static int
1430channel_handle_rfd(Channel *c, fd_set *readset, fd_set *writeset) 1441channel_handle_rfd(Channel *c, fd_set *readset, fd_set *writeset)
1431{ 1442{
@@ -1473,6 +1484,7 @@ channel_handle_rfd(Channel *c, fd_set *readset, fd_set *writeset)
1473 return 1; 1484 return 1;
1474} 1485}
1475 1486
1487/* ARGSUSED */
1476static int 1488static int
1477channel_handle_wfd(Channel *c, fd_set *readset, fd_set *writeset) 1489channel_handle_wfd(Channel *c, fd_set *readset, fd_set *writeset)
1478{ 1490{
@@ -1605,6 +1617,7 @@ channel_handle_efd(Channel *c, fd_set *readset, fd_set *writeset)
1605 return 1; 1617 return 1;
1606} 1618}
1607 1619
1620/* ARGSUSED */
1608static int 1621static int
1609channel_handle_ctl(Channel *c, fd_set *readset, fd_set *writeset) 1622channel_handle_ctl(Channel *c, fd_set *readset, fd_set *writeset)
1610{ 1623{
@@ -1667,6 +1680,7 @@ channel_post_open(Channel *c, fd_set *readset, fd_set *writeset)
1667 channel_check_window(c); 1680 channel_check_window(c);
1668} 1681}
1669 1682
1683/* ARGSUSED */
1670static void 1684static void
1671channel_post_output_drain_13(Channel *c, fd_set *readset, fd_set *writeset) 1685channel_post_output_drain_13(Channel *c, fd_set *readset, fd_set *writeset)
1672{ 1686{
@@ -3054,6 +3068,7 @@ x11_connect_display(void)
3054 * with either SSH_MSG_OPEN_CONFIRMATION or SSH_MSG_OPEN_FAILURE. 3068 * with either SSH_MSG_OPEN_CONFIRMATION or SSH_MSG_OPEN_FAILURE.
3055 */ 3069 */
3056 3070
3071/* ARGSUSED */
3057void 3072void
3058x11_input_open(int type, u_int32_t seq, void *ctxt) 3073x11_input_open(int type, u_int32_t seq, void *ctxt)
3059{ 3074{
@@ -3097,6 +3112,7 @@ x11_input_open(int type, u_int32_t seq, void *ctxt)
3097} 3112}
3098 3113
3099/* dummy protocol handler that denies SSH-1 requests (agent/x11) */ 3114/* dummy protocol handler that denies SSH-1 requests (agent/x11) */
3115/* ARGSUSED */
3100void 3116void
3101deny_input_open(int type, u_int32_t seq, void *ctxt) 3117deny_input_open(int type, u_int32_t seq, void *ctxt)
3102{ 3118{