Displaying 2 results from an estimated 2 matches for "ssh2_remote_fwd".
2000 Aug 23
1
Protocol 2 remote forwarding patch
...+ case SSH2_CHANNEL_PORT_LISTENER: /* Jarno */
case SSH_CHANNEL_CLOSED:
case SSH_CHANNEL_AUTH_SOCKET:
continue;
@@ -1412,10 +1546,14 @@
* Initiate forwarding of connections to local port "port" through the secure
* channel to host:port from remote side.
*/
-
+/* Jarno: If ssh2_remote_fwd is true then protocol 2 server called this
+ * and we need to use channel type SSH2_CHANNEL_PORT_LISTENER (when someone
+ * connects to the listening socket we know to send "forwarded-tcpip" message
+ * instead of "direct-tcpip").
+ */
void
channel_request_local_forwarding(u_s...
2001 Feb 10
3
Protocol 2 remote forwarding patch
...et_send_debug("Requested forwarding of port %d but user is not root.", port_to_bind);
+ success = 0;
+ }
+ else {
+ /* Start listening on the port */
+ channel_request_local_forwarding( port_to_bind, address_to_bind,
+ port_to_bind, 1,
+ 1 /* ssh2_remote_fwd*/);
+ /* NOT REACHED if error (disconnects).
+ * Note: if error xfree not called
+ * for address_to_bind
+ */
+ success = 1;
+ }
+
+ xfree( address_to_bind );
+ }
+
+ /* TODO: This is untested !!! create some test code !!!*/
+ if ( strcmp(rtype, "cancel-tcpip-forward") ==...