comparison runopts.h @ 258:306499676384

* add -g (dbclient) and -a (dropbear) options for allowing non-local hosts to connect to forwarded ports. Rearranged various some of the tcp listening code. * changed to /* */ style brackets in svr-authpam.c
author Matt Johnston <matt@ucc.asn.au>
date Sun, 04 Dec 2005 16:13:11 +0000
parents aad4b3f58556
children 79bf1023cf11 474c1a700b67 3bfbe95f9a14 0aaaf68e97dc
comparison
equal deleted inserted replaced
257:63601217f5ab 258:306499676384
31 #include "auth.h" 31 #include "auth.h"
32 #include "tcpfwd.h" 32 #include "tcpfwd.h"
33 33
34 typedef struct runopts { 34 typedef struct runopts {
35 35
36 int nolocaltcp; 36 #if defined(ENABLE_SVR_REMOTETCPFWD) || defined(ENABLE_CLI_LOCALTCPFWD)
37 int noremotetcp; 37 int listen_fwd_all;
38 #endif
38 39
39 } runopts; 40 } runopts;
40 41
41 extern runopts opts; 42 extern runopts opts;
42 43
71 int norootlogin; 72 int norootlogin;
72 73
73 int noauthpass; 74 int noauthpass;
74 int norootpass; 75 int norootpass;
75 76
77 #ifdef ENABLE_SVR_REMOTETCPFWD
78 int noremotetcp;
79 #endif
80 #ifdef ENABLE_SVR_LOCALTCPFWD
81 int nolocaltcp;
82 #endif
83
76 sign_key *hostkey; 84 sign_key *hostkey;
77 buffer * banner; 85 buffer * banner;
78 86
79 } svr_runopts; 87 } svr_runopts;
80 88
81 extern svr_runopts svr_opts; 89 extern svr_runopts svr_opts;
82 90
83 void svr_getopts(int argc, char ** argv); 91 void svr_getopts(int argc, char ** argv);
84 void loadhostkeys(); 92 void loadhostkeys();
85 93
86 /* Uncompleted XXX matt */
87 typedef struct cli_runopts { 94 typedef struct cli_runopts {
88 95
89 char *progname; 96 char *progname;
90 char *remotehost; 97 char *remotehost;
91 char *remoteport; 98 char *remoteport;
101 struct TCPFwdList * remotefwds; 108 struct TCPFwdList * remotefwds;
102 #endif 109 #endif
103 #ifdef ENABLE_CLI_LOCALTCPFWD 110 #ifdef ENABLE_CLI_LOCALTCPFWD
104 struct TCPFwdList * localfwds; 111 struct TCPFwdList * localfwds;
105 #endif 112 #endif
106 /* XXX TODO */
107 113
108 } cli_runopts; 114 } cli_runopts;
109 115
110 extern cli_runopts cli_opts; 116 extern cli_runopts cli_opts;
111 void cli_getopts(int argc, char ** argv); 117 void cli_getopts(int argc, char ** argv);