comparison runopts.h @ 297:79bf1023cf11 agent-client

propagate from branch 'au.asn.ucc.matt.dropbear' (head 0501e6f661b5415eb76f3b312d183c3adfbfb712) to branch 'au.asn.ucc.matt.dropbear.cli-agent' (head 01038174ec27245b51bd43a66c01ad930880f67b)
author Matt Johnston <matt@ucc.asn.au>
date Tue, 21 Mar 2006 16:20:59 +0000
parents ca7e76d981d9 306499676384
children c1e9c81d1d27
comparison
equal deleted inserted replaced
225:ca7e76d981d9 297:79bf1023cf11
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;
106 #ifdef ENABLE_CLI_AGENTFWD 113 #ifdef ENABLE_CLI_AGENTFWD
107 int agent_fwd; 114 int agent_fwd;
108 int agent_keys_loaded; /* whether pubkeys has been populated with a 115 int agent_keys_loaded; /* whether pubkeys has been populated with a
109 list of keys held by the agent */ 116 list of keys held by the agent */
110 #endif 117 #endif
111 /* XXX TODO */
112 118
113 } cli_runopts; 119 } cli_runopts;
114 120
115 extern cli_runopts cli_opts; 121 extern cli_runopts cli_opts;
116 void cli_getopts(int argc, char ** argv); 122 void cli_getopts(int argc, char ** argv);