channels.c (57429) | channels.c (58582) |
---|---|
1/* 2 * 3 * channels.c 4 * 5 * Author: Tatu Ylonen <ylo@cs.hut.fi> 6 * 7 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 8 * All rights reserved 9 * 10 * Created: Fri Mar 24 16:35:24 1995 ylo 11 * 12 * This file contains functions for generic socket connection forwarding. 13 * There is also code for initiating connection forwarding for X11 connections, 14 * arbitrary tcp/ip connections, and the authentication agent connection. 15 * 16 */ 17 18#include "includes.h" | 1/* 2 * 3 * channels.c 4 * 5 * Author: Tatu Ylonen <ylo@cs.hut.fi> 6 * 7 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 8 * All rights reserved 9 * 10 * Created: Fri Mar 24 16:35:24 1995 ylo 11 * 12 * This file contains functions for generic socket connection forwarding. 13 * There is also code for initiating connection forwarding for X11 connections, 14 * arbitrary tcp/ip connections, and the authentication agent connection. 15 * 16 */ 17 18#include "includes.h" |
19RCSID("$Id: channels.c,v 1.38 2000/01/24 20:37:29 markus Exp $"); | 19RCSID("$Id: channels.c,v 1.39 2000/03/16 20:56:14 markus Exp $"); |
20 21#include "ssh.h" 22#include "packet.h" 23#include "xmalloc.h" 24#include "buffer.h" 25#include "authfd.h" 26#include "uidswap.h" 27#include "readconf.h" --- 1004 unchanged lines hidden (view full) --- 1032 */ 1033 1034void 1035channel_input_port_open(int payload_len) 1036{ 1037 int remote_channel, sock = 0, newch, i; 1038 u_short host_port; 1039 char *host, *originator_string; | 20 21#include "ssh.h" 22#include "packet.h" 23#include "xmalloc.h" 24#include "buffer.h" 25#include "authfd.h" 26#include "uidswap.h" 27#include "readconf.h" --- 1004 unchanged lines hidden (view full) --- 1032 */ 1033 1034void 1035channel_input_port_open(int payload_len) 1036{ 1037 int remote_channel, sock = 0, newch, i; 1038 u_short host_port; 1039 char *host, *originator_string; |
1040 int host_len, originator_len; | 1040 unsigned int host_len, originator_len; |
1041 struct addrinfo hints, *ai, *aitop; 1042 char ntop[NI_MAXHOST], strport[NI_MAXSERV]; 1043 int gaierr; 1044 1045 /* Get remote channel number. */ 1046 remote_channel = packet_get_int(); 1047 1048 /* Get host name to connect to. */ --- 230 unchanged lines hidden (view full) --- 1279 */ 1280 1281void 1282x11_input_open(int payload_len) 1283{ 1284 int remote_channel, display_number, sock = 0, newch; 1285 const char *display; 1286 char buf[1024], *cp, *remote_host; | 1041 struct addrinfo hints, *ai, *aitop; 1042 char ntop[NI_MAXHOST], strport[NI_MAXSERV]; 1043 int gaierr; 1044 1045 /* Get remote channel number. */ 1046 remote_channel = packet_get_int(); 1047 1048 /* Get host name to connect to. */ --- 230 unchanged lines hidden (view full) --- 1279 */ 1280 1281void 1282x11_input_open(int payload_len) 1283{ 1284 int remote_channel, display_number, sock = 0, newch; 1285 const char *display; 1286 char buf[1024], *cp, *remote_host; |
1287 int remote_len; | 1287 unsigned int remote_len; |
1288 struct addrinfo hints, *ai, *aitop; 1289 char strport[NI_MAXSERV]; 1290 int gaierr; 1291 1292 /* Get remote channel number. */ 1293 remote_channel = packet_get_int(); 1294 1295 /* Get remote originator name. */ --- 319 unchanged lines hidden --- | 1288 struct addrinfo hints, *ai, *aitop; 1289 char strport[NI_MAXSERV]; 1290 int gaierr; 1291 1292 /* Get remote channel number. */ 1293 remote_channel = packet_get_int(); 1294 1295 /* Get remote originator name. */ --- 319 unchanged lines hidden --- |