comparison runopts.h @ 24:469950e86d0f

switching to global vars
author Matt Johnston <matt@ucc.asn.au>
date Tue, 20 Jul 2004 12:05:00 +0000
parents fe6bca95afa7
children f789045062e6
comparison
equal deleted inserted replaced
23:c896a4dd65da 24:469950e86d0f
27 27
28 #include "includes.h" 28 #include "includes.h"
29 #include "signkey.h" 29 #include "signkey.h"
30 #include "buffer.h" 30 #include "buffer.h"
31 31
32 struct SvrRunOpts { 32 typedef struct runopts {
33
34 int nolocaltcp;
35 int noremotetcp;
36
37 } runopts;
38
39 extern runopts opts;
40
41 typedef struct svr_runopts {
33 42
34 char * rsakeyfile; 43 char * rsakeyfile;
35 char * dsskeyfile; 44 char * dsskeyfile;
36 char * bannerfile; 45 char * bannerfile;
46
37 int forkbg; 47 int forkbg;
48 int usingsyslog;
38 49
39 /* ports is an array of the portcount listening ports */ 50 /* ports is an array of the portcount listening ports */
40 uint16_t *ports; 51 uint16_t *ports;
41 unsigned int portcount; 52 unsigned int portcount;
42 53
54 int norootlogin; 65 int norootlogin;
55 66
56 int noauthpass; 67 int noauthpass;
57 int norootpass; 68 int norootpass;
58 69
59 int nolocaltcp;
60 int noremotetcp;
61
62 sign_key *hostkey; 70 sign_key *hostkey;
63 buffer * banner; 71 buffer * banner;
64 72
65 }; 73 } svr_runopts;
66 74
67 typedef struct SvrRunOpts runopts; 75 extern svr_runopts svr_opts;
68 76
69 runopts * getrunopts(int argc, char ** argv); 77 void svr_getopts(int argc, char ** argv);
70 void freerunopts(runopts* opts); 78
79 /* Uncompleted XXX matt */
80 typedef struct cli_runopts {
81
82 int todo;
83
84 } cli_runopts;
85
86 extern cli_runopts cli_opts;
87 void cli_getopts(int argc, char ** argv);
71 88
72 #endif /* _RUNOPTS_H_ */ 89 #endif /* _RUNOPTS_H_ */