/*
- * $Id: acl.cc,v 1.106 1997/08/25 23:45:22 wessels Exp $
+ * $Id: acl.cc,v 1.107 1997/08/26 04:21:17 wessels Exp $
*
* DEBUG: section 28 Access Control
* AUTHOR: Duane Wessels
int
aclMatchAcl(struct _acl *acl, aclCheck_t * checklist)
{
- const request_t *r = checklist->request;
+ request_t *r = checklist->request;
const ipcache_addrs *ia = NULL;
const char *fqdn = NULL;
int k;
} else {
/* register that we used the proxy authentication header */
checklist->state[ACL_PROXY_AUTH] = ACL_LOOKUP_DONE;
+ BIT_SET(r->flags, REQ_USED_PROXY_AUTH);
return 1;
}
/* NOTREACHED */
#define MAX_URL 4096
#define MAX_LOGIN_SZ 128
-/* bitfields for the flags member */
+/* bitfields for request_t->flags */
#define REQ_RANGE 0x01
#define REQ_NOCACHE 0x02
#define REQ_IMS 0x04
#define REQ_PROXY_KEEPALIVE 0x100
#define REQ_PROXYING 0x200
#define REQ_REFRESH 0x400
+#define REQ_USED_PROXY_AUTH 0x800
#define PEER_MAX_ADDRESSES 10
#define RTT_AV_FACTOR 1000
/*
- * $Id: http.cc,v 1.186 1997/08/25 23:45:27 wessels Exp $
+ * $Id: http.cc,v 1.187 1997/08/26 04:21:19 wessels Exp $
*
* DEBUG: section 11 Hypertext Transfer Protocol (HTTP)
* AUTHOR: Harvest Derived
continue;
if (strncasecmp(xbuf, "Proxy-authorization:", 20) == 0)
/* If we're not going to do proxy auth, then it must be passed on */
- if (Config.proxyAuth.File)
+ if (BIT_TEST(request->flags, REQ_USED_PROXY_AUTH))
continue;
if (strncasecmp(xbuf, "Connection:", 11) == 0)
continue;