/*
- * $Id: client_side.cc,v 1.596 2002/09/27 11:21:09 robertc Exp $
+ * $Id: client_side.cc,v 1.597 2002/10/03 06:45:53 hno Exp $
*
* DEBUG: section 33 Client-side Routines
* AUTHOR: Duane Wessels
}
}
}
+
+aclCheck_t *
+clientAclChecklistCreate(const acl_access * acl, const clientHttpRequest * http)
+{
+ aclCheck_t *ch;
+ ConnStateData *conn = http->conn;
+ ch = aclChecklistCreate(acl, http->request, conn ? conn->rfc931 : dash_str);
+
+ /*
+ * hack for ident ACL. It needs to get full addresses, and a place to store
+ * the ident result on persistent connections...
+ */
+ /* connection oriented auth also needs these two lines for it's operation. */
+ /*
+ * Internal requests do not have a connection reference, because: A) their
+ * byte count may be transformed before being applied to an outbound
+ * connection B) they are internal - any limiting on them should be done on
+ * the server end.
+ */
+ if (conn)
+ ch->conn = cbdataReference(conn); /* unreferenced in acl.c */
+
+ return ch;
+}
+
/*
- * $Id: client_side_reply.cc,v 1.11 2002/09/29 11:29:41 robertc Exp $
+ * $Id: client_side_reply.cc,v 1.12 2002/10/03 06:45:53 hno Exp $
*
* DEBUG: section 88 Client-side Reply Routines
* AUTHOR: Robert Collins (Originally Duane Wessels in client_side.c)
3)
("clientSendMoreData: Appending %d bytes after %d bytes of headers\n",
(int) body_size, rep->hdr_sz);
- ch = aclChecklistCreate(Config.accessList.reply, http->request, NULL);
+ ch = clientAclChecklistCreate(Config.accessList.reply, http->request, NULL);
ch->reply = rep;
- if (http->conn)
- ch->conn = cbdataReference(http->conn); /* acl.c frees */
rv = aclCheckFast(Config.accessList.reply, ch);
aclChecklistFree(ch);
ch = NULL;
/*
- * $Id: client_side_request.cc,v 1.5 2002/09/24 10:46:43 robertc Exp $
+ * $Id: client_side_request.cc,v 1.6 2002/10/03 06:45:53 hno Exp $
*
* DEBUG: section 85 Client-side Request Routines AUTHOR: Robert Collins
* (Originally Duane Wessels in client_side.c)
/* other */
static int checkAccelOnly(clientHttpRequest *);
static void clientAccessCheckDone(int, void *);
- /* static */ aclCheck_t *
- clientAclChecklistCreate(const acl_access * acl,
- const clientHttpRequest * http);
static int clientCachable(clientHttpRequest * http);
static int clientHierarchical(clientHttpRequest * http);
static void clientInterpretRequestHeaders(clientHttpRequest * http);
return 1;
}
-aclCheck_t *
-clientAclChecklistCreate(const acl_access * acl, const clientHttpRequest * http)
-{
- aclCheck_t *ch;
- ConnStateData *conn = http->conn;
- ch = aclChecklistCreate(acl, http->request, conn ? conn->rfc931 : dash_str);
-
- /*
- * hack for ident ACL. It needs to get full addresses, and a place to store
- * the ident result on persistent connections...
- */
- /* connection oriented auth also needs these two lines for it's operation. */
- /*
- * Internal requests do not have a connection reference, because: A) their
- * byte count may be transformed before being applied to an outbound
- * connection B) they are internal - any limiting on them should be done on
- * the server end.
- */
- if (conn)
- ch->conn = cbdataReference(conn); /* unreferenced in acl.c */
-
- return ch;
-}
-
/* This is the entry point for external users of the client_side routines */
void
clientAccessCheck(void *data)
/*
- * $Id: protos.h,v 1.448 2002/09/26 13:33:08 robertc Exp $
+ * $Id: protos.h,v 1.449 2002/10/03 06:45:53 hno Exp $
*
*
* SQUID Web Proxy Cache http://www.squid-cache.org/
extern void clientdbFreeMemory(void);
extern int clientdbEstablished(struct in_addr, int);
-extern void clientAccessCheck(void *);
extern char *clientConstructTraceEcho(clientHttpRequest *);
extern void clientOpenListenSockets(void);
extern void clientHttpConnectionsClose(void);
extern int clientAbortBody(request_t * req);
extern void httpRequestFree(void *);
+extern void clientAccessCheck(void *);
+extern aclCheck_t * clientAclChecklistCreate(const acl_access * acl, const clientHttpRequest * http);
+
/* client_side_reply.c - client side reply related routines (pure logic, no comms) */
extern void *clientReplyNewContext(clientHttpRequest *);
extern int clientHttpRequestStatus(int fd, clientHttpRequest const *http);