Mercurial > dropbear
changeset 65:02e4a7f614f8
Oops, forgot to call the actual code.
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Thu, 12 Aug 2004 13:54:31 +0000 |
parents | efb5e0b335cf |
children | 38c3146aa23d |
files | Makefile.in cli-session.c options.h tcp-accept.c |
diffstat | 4 files changed, 10 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/Makefile.in Thu Aug 12 13:48:42 2004 +0000 +++ b/Makefile.in Thu Aug 12 13:54:31 2004 +0000 @@ -33,7 +33,7 @@ CLISVROBJS=common-session.o packet.o common-algo.o common-kex.o \ common-channel.o common-chansession.o termcodes.o loginrec.o \ - tcp-accept.o tcp-connect.o listener.o process-packet.o \ + tcp-accept.o listener.o process-packet.o \ common-runopts.o KEYOBJS=dropbearkey.o gendss.o genrsa.o
--- a/cli-session.c Thu Aug 12 13:48:42 2004 +0000 +++ b/cli-session.c Thu Aug 12 13:54:31 2004 +0000 @@ -179,9 +179,11 @@ case USERAUTH_SUCCESS_RCVD: #ifdef ENABLE_CLI_LOCALTCPFWD - TRACE(("recvd USERAUTH_SUCCESS_RCVD")); setup_localtcp(); #endif +#ifdef ENABLE_CLI_REMOTETCPFWD + setup_remotetcp(); +#endif cli_send_chansess_request(); TRACE(("leave cli_sessionloop: cli_send_chansess_request")); cli_ses.state = SESSION_RUNNING;
--- a/options.h Thu Aug 12 13:48:42 2004 +0000 +++ b/options.h Thu Aug 12 13:54:31 2004 +0000 @@ -306,6 +306,10 @@ #define ENABLE_CLI_ANYTCPFWD #endif +#if defined(ENABLE_CLI_LOCALTCPFWD) || defined(ENABLE_SVR_REMOTETCPFWD) +#define DROPBEAR_TCP_ACCEPT +#endif + #if defined(ENABLE_REMOTETCPFWD) || defined(ENABLE_LOCALTCPFWD) || \ defined(ENABLE_AGENTFWD) || defined(ENABLE_X11FWD) #define USING_LISTENERS
--- a/tcp-accept.c Thu Aug 12 13:48:42 2004 +0000 +++ b/tcp-accept.c Thu Aug 12 13:54:31 2004 +0000 @@ -8,8 +8,7 @@ #include "listener.h" #include "runopts.h" -#ifndef DISABLE_TCP_ACCEPT - +#ifdef DROPBEAR_TCP_ACCEPT static void cleanup_tcp(struct Listener *listener) { @@ -94,4 +93,4 @@ return DROPBEAR_SUCCESS; } -#endif /* DISABLE_REMOTETCPFWD */ +#endif /* DROPBEAR_TCP_ACCEPT */