10
11
static const int RESERVED_DEFVAL = -4223;
16
bool operator()(const mstring &s1, const mstring &s2) const
18
return strcasecmp(s1.c_str(), s2.c_str()) < 0;
22
typedef MYMAP<mstring, mstring, ltstring> NoCaseStringMap;
15
extern mstring cachedir, logdir, confdir, fifopath, user, group, pidfile,
27
extern mstring cachedir, logdir, confdir, fifopath, user, group, pidfile, suppdir,
16
28
reportpage, vfilepat, pfilepat, wfilepat, agentname, remoteport, adminauth, bindaddr, port, sUmask,
17
dontcacherq, dontcachetgt, dontcache, mirrorsrcs, requestapx;
29
tmpDontcacherq, tmpDontcachetgt, tmpDontcache, mirrorsrcs, requestapx;
19
extern int debug, offlinemode, foreground, verbose, stupidfs, forcemanaged,
20
verboselog, extreshhold, exfailabort, tpstandbymax, tpthreadmax, dnscachetime, dlbufsize,
21
exporigin, logxff, oldupdate, recompbz2, nettimeout, updinterval, forwardsoap, dirperms, fileperms;
31
extern int debug, numcores, offlinemode, foreground, verbose, stupidfs, forcemanaged, keepnver,
32
verboselog, extreshhold, exfailabort, tpstandbymax, tpthreadmax, dnscachetime, dlbufsize, usewrap,
33
exporigin, logxff, oldupdate, recompbz2, nettimeout, updinterval, forwardsoap, dirperms, fileperms,
23
36
// processed config settings
24
37
extern tHttpUrl proxy_info;
25
38
extern mstring agentheader;
40
extern int conprotos[2];
27
42
bool SetOption(const mstring &line, bool bQuiet=false);
28
43
void ReadConfigDirectory(const char*);
64
64
IHookHandler *m_pHooks;
65
65
tStrVec m_keyfiles;
66
67
tRepoData() : m_pHooks(NULL) {};
67
68
virtual ~tRepoData();
70
const tRepoData * GetBackendVec(const mstring * vname);
71
const tRepoData * GetBackendVec(cmstring &vname);
72
73
time_t ExecutePostponed();
74
75
extern tStrMap localdirs;
75
76
extern NoCaseStringMap mimemap;
77
#define TCP_PORT_MAX 65536
78
extern MYSTD::bitset<TCP_PORT_MAX> *pUserPorts;
77
80
extern mstring cacheDirSlash; // guaranteed to have a trailing path separator
82
mstring EncodeBase64Auth(const cmstring & s);
79
83
} // namespace acfg
88
eFileKind GetFiletype(const mstring &);
89
#define FILE_INVALID 2
90
unsigned int GetFiletype(const mstring &);
89
91
bool MatchWhitelist(const mstring &);
90
92
bool MatchUncacheableRequest(const mstring &);
91
93
bool MatchUncacheableTarget(const mstring &);
95
bool CompileExpressions();