comparison x11fwd.c @ 11:f76c9389e9e0

Mostly done with the listener changeover
author Matt Johnston <matt@ucc.asn.au>
date Thu, 03 Jun 2004 17:22:48 +0000
parents 7f77962de998
children
comparison
equal deleted inserted replaced
9:7f77962de998 11:f76c9389e9e0
36 36
37 #define X11BASEPORT 6000 37 #define X11BASEPORT 6000
38 #define X11BINDBASE 6010 38 #define X11BINDBASE 6010
39 39
40 static void x11accept(struct Listener* listener); 40 static void x11accept(struct Listener* listener);
41 static void x11cleanup(struct Listener *listener);
42 static int bindport(int fd); 41 static int bindport(int fd);
43 static int send_msg_channel_open_x11(int fd, struct sockaddr_in* addr); 42 static int send_msg_channel_open_x11(int fd, struct sockaddr_in* addr);
44 43
45 /* called as a request for a session channel, sets up listening X11 */ 44 /* called as a request for a session channel, sets up listening X11 */
46 /* returns DROPBEAR_SUCCESS or DROPBEAR_FAILURE */ 45 /* returns DROPBEAR_SUCCESS or DROPBEAR_FAILURE */
165 } else { 164 } else {
166 fprintf(stderr, "Failed to run %s\n", XAUTH_COMMAND); 165 fprintf(stderr, "Failed to run %s\n", XAUTH_COMMAND);
167 } 166 }
168 } 167 }
169 168
170 static void x11cleanup(struct Listener *listener) { 169 void x11cleanup(struct Listener *listener) {
171 170
172 struct ChanSess *chansess = (struct ChanSess*)listener->typedata; 171 struct ChanSess *chansess = (struct ChanSess*)listener->typedata;
173 172
174 m_free(chansess->x11authprot); 173 m_free(chansess->x11authprot);
175 m_free(chansess->x11authcookie); 174 m_free(chansess->x11authcookie);