Commit a3184c85 authored by Balázs Scheidler's avatar Balázs Scheidler Committed by Niels Möller
Browse files

* src/lshd.c (main): Added tcpforward support (Bazsi).

Rev: src/lshd.c:1.50
parent c49666af
......@@ -46,6 +46,7 @@
#include "xalloc.h"
#include "compress.h"
#include "server_pty.h"
#include "tcpforward.h"
#include "getopt.h"
......@@ -65,6 +66,9 @@
#include <unistd.h>
#endif
/* FIXME: Add configure and runtime options instead */
#define WITH_TCPFORWARD_SUPPORT 1
/* Block size for stdout and stderr buffers */
#define BLOCK_SIZE 32768
......@@ -460,7 +464,14 @@ int main(int argc, char **argv)
&unix_userauth.super, -1),
make_alist(1, ATOM_SSH_CONNECTION,
make_server_connection_service
(make_alist(0, -1),
(make_alist
(0
#if WITH_TCPFORWARD_SUPPORT
+2,
ATOM_TCPIP_FORWARD, make_tcpip_forward_request(backend),
ATOM_CANCEL_TCPIP_FORWARD, make_cancel_tcpip_forward_request()
#endif /* WITH_TCPFORWARD_SUPPORT */
,-1),
make_alist
(1
#if WITH_PTY_SUPPORT
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment