/*
- * $Id: ExternalACL.h,v 1.6 2004/08/30 05:12:31 robertc Exp $
+ * $Id: ExternalACL.h,v 1.7 2005/03/30 23:08:19 hno Exp $
*
*
* SQUID Web Proxy Cache http://www.squid-cache.org/
/* when requiresRequest is made dynamic, review this too */
// virtual bool requiresReply() const {return true;}
- /* This may need to be extant, to cause 407's if %LOGIN% is used. */
- // virtual bool isProxyAuth() const {return true;}
+ virtual bool isProxyAuth() const;
virtual wordlist *dump() const;
virtual bool valid () const;
/*
- * $Id: external_acl.cc,v 1.61 2005/03/19 19:43:39 serassio Exp $
+ * $Id: external_acl.cc,v 1.62 2005/03/30 23:08:19 hno Exp $
*
* DEBUG: section 82 External ACL
* AUTHOR: Henrik Nordstrom, MARA Systems AB
dlink_list queue;
- int require_auth;
+ bool require_auth;
enum
{
}
} else if (strcmp(token, "%LOGIN") == 0) {
format->type = _external_acl_format::EXT_ACL_LOGIN;
- a->require_auth = 1;
+ a->require_auth = true;
}
#if USE_IDENT
ACLExternal::ExternalAclLookup(ACLChecklist * ch, ACLExternal * me, EAH * callback, void *callback_data)
{
MemBuf buf;
- external_acl_data *acl = static_cast<external_acl_data *>(me->data);
+ external_acl_data *acl = me->data;
external_acl *def = acl->def;
externalAclState *state;
dlink_node *node;
{
return data != NULL;
}
+
+bool
+ACLExternal::isProxyAuth() const
+{
+ return data->def->require_auth;
+}