/* forward decls */
class HttpReply;
class HttpRequest;
+class CustomLog;
class AccessLogEntry: public RefCountable
{
*/
class HttpRequest;
-class CacheMgrPasswd;
+namespace Mgr {
+class ActionPasswordList;
+} //namespace Mgr
/**
\ingroup CacheManagerAPI
* a CacheManager - the menu system for interacting with squid.
Mgr::CommandPointer ParseUrl(const char *url);
void ParseHeaders(const HttpRequest * request, Mgr::ActionParams ¶ms);
int CheckPassword(const Mgr::Command &cmd);
- char *PasswdGet(CacheMgrPasswd *, const char *);
+ char *PasswdGet(Mgr::ActionPasswordList *, const char *);
void registerProfile(const Mgr::ActionProfilePointer &profile);
#include "acl/Checklist.h"
+class external_acl;
+
/** \todo CLEANUP: kill this typedef. */
typedef struct _external_acl_data external_acl_data;
#include "acl/Acl.h"
#include "cbdata.h"
+class external_acl;
/******************************************************************
* ExternalACLEntryData
* Core data that ExternalACLEntry manages.
YesNoNone.h \
YesNoNone.cc \
RefreshPattern.h \
- CacheMgrPasswd.h \
- CacheMgrPasswd.cc \
cache_cf.cc \
CacheDigest.h \
CacheDigest.cc \
YesNoNone.h \
YesNoNone.cc \
RefreshPattern.h \
- CacheMgrPasswd.h \
- CacheMgrPasswd.cc \
cache_cf.cc \
CacheDigest.h \
CacheDigest.cc \
YesNoNone.h \
YesNoNone.cc \
RefreshPattern.h \
- CacheMgrPasswd.h \
- CacheMgrPasswd.cc \
cache_cf.cc \
cache_manager.cc \
carp.h \
YesNoNone.h \
YesNoNone.cc \
RefreshPattern.h \
- CacheMgrPasswd.h \
- CacheMgrPasswd.cc \
cache_cf.cc \
carp.h \
carp.cc \
YesNoNone.h \
YesNoNone.cc \
RefreshPattern.h \
- CacheMgrPasswd.h \
- CacheMgrPasswd.cc \
cache_cf.cc \
cache_manager.cc \
CacheDigest.h \
YesNoNone.h \
YesNoNone.cc \
RefreshPattern.h \
- CacheMgrPasswd.h \
- CacheMgrPasswd.cc \
cache_cf.cc \
debug.cc \
CacheDigest.h \
YesNoNone.h \
YesNoNone.cc \
RefreshPattern.h \
- CacheMgrPasswd.h \
- CacheMgrPasswd.cc \
cache_cf.cc \
cache_manager.cc \
CacheDigest.h \
class acl_access;
class acl_size_t;
class AclDenyInfoList;
-class CacheMgrPasswd;
+namespace Mgr {
+class ActionPasswordList;
+} // namespace Mgr
+class CustomLog;
+class external_acl;
class HeaderManglers;
class RefreshPattern;
class RemovalPolicySettings;
} fqdncache;
int minDirectHops;
int minDirectRtt;
- CacheMgrPasswd *passwd_list;
+ Mgr::ActionPasswordList *passwd_list;
struct {
int objectsPerBucket;
#include "anyp/PortCfg.h"
#include "AuthReg.h"
#include "base/RunnersRegistry.h"
-#include "CacheMgrPasswd.h"
+#include "mgr/ActionPasswordList.h"
#include "CachePeer.h"
#include "cache_cf.h"
#include "ConfigParser.h"
}
static void
-dump_cachemgrpasswd(StoreEntry * entry, const char *name, CacheMgrPasswd * list)
+dump_cachemgrpasswd(StoreEntry * entry, const char *name, Mgr::ActionPasswordList * list)
{
wordlist *w;
}
static void
-parse_cachemgrpasswd(CacheMgrPasswd ** head)
+parse_cachemgrpasswd(Mgr::ActionPasswordList ** head)
{
char *passwd = NULL;
wordlist *actions = NULL;
- CacheMgrPasswd *p;
- CacheMgrPasswd **P;
+ Mgr::ActionPasswordList *p;
+ Mgr::ActionPasswordList **P;
parse_string(&passwd);
parse_wordlist(&actions);
- p = new CacheMgrPasswd;
+ p = new Mgr::ActionPasswordList;
p->passwd = passwd;
p->actions = actions;
* See if any of the actions from this line already have a
* password from previous lines. The password checking
* routines in cache_manager.c take the the password from
- * the first CacheMgrPasswd struct that contains the
+ * the first Mgr::ActionPasswordList that contains the
* requested action. Thus, we should warn users who might
* think they can have two passwords for the same action.
*/
}
static void
-free_cachemgrpasswd(CacheMgrPasswd ** head)
+free_cachemgrpasswd(Mgr::ActionPasswordList ** head)
{
- CacheMgrPasswd *p;
+ Mgr::ActionPasswordList *p;
while ((p = *head) != NULL) {
*head = p->next;
#include "squid.h"
#include "base/TextException.h"
-#include "CacheMgrPasswd.h"
+#include "mgr/ActionPasswordList.h"
#include "CacheManager.h"
#include "comm/Connection.h"
#include "Debug.h"
* for the action she queried
*/
char *
-CacheManager::PasswdGet(CacheMgrPasswd * a, const char *action)
+CacheManager::PasswdGet(Mgr::ActionPasswordList * a, const char *action)
{
wordlist *w;
*/
#include "squid.h"
-#include "CacheMgrPasswd.h"
+#include "mgr/ActionPasswordList.h"
-#ifndef SQUID_CACHEMGRPASSWD_H_
-#define SQUID_CACHEMGRPASSWD_H_
+#ifndef SQUID_MGR_CACHEMGRPASSWD_H_
+#define SQUID_MGR_CACHEMGRPASSWD_H_
/*
* SQUID Web Proxy Cache http://www.squid-cache.org/
* ----------------------------------------------------------
class wordlist;
-//TODO: this class is misnamed and C-ish. Split into CacheMgrPasswd and
-// CacheMgrPasswdList (std::list-derived)
-class CacheMgrPasswd
+namespace Mgr {
+//TODO: refactor into a std::list-backed proper list.
+class ActionPasswordList
{
public:
char *passwd;
wordlist *actions;
- CacheMgrPasswd *next;
+ ActionPasswordList *next;
};
-#endif /* SQUID_CACHEMGRPASSWD_H_ */
+} //namespace Mgr
+
+#endif /* SQUID_MGR_CACHEMGRPASSWD_H_ */
Action.h \
ActionParams.cc \
ActionParams.h \
+ ActionPasswordList.h \
+ ActionPasswordList.cc \
ActionProfile.h \
ActionWriter.cc \
ActionWriter.h \
/* forward decl for SquidConfig, see RemovalPolicy.h */
class CpuAffinityMap;
-class RemovalPolicySettings;
-class external_acl;
-class Store;
-class CustomLog;
-class CacheMgrPasswd;
-namespace AnyP
-{
-struct PortCfg;
-}
-class SwapDir;
class close_handler
{