Renamed ACL source files from ACLFoo.{cc,cci,h} to Foo.{cc,cci,h}.
Many targets in src/Makefile.am depended on selected ACL ACL*cc and related
sources. These targets depend on acl/* libraries now. As a part of this
cleanup and reorganization, the number of ufsdump sources went from about 160
to about 20.
Context: SourceLayout: acl/, take 1
#include "StoreClient.h"
#include "MemObject.h"
#include "client_side_request.h"
-#include "ACLChecklist.h"
-#include "ACL.h"
+#include "acl/Checklist.h"
+#include "acl/Acl.h"
#include "ConfigParser.h"
#include "DelayId.h"
#include "Array.h"
#include "DelayPools.h"
#include "DelayPool.h"
#include "Store.h"
-#include "ACL.h"
+#include "acl/Acl.h"
+#include "acl/Gadgets.h"
void
DelayConfig::parsePoolCount()
#if DELAY_POOLS
#include "DelayPool.h"
#include "CommonPool.h"
-#include "ACL.h"
+#include "acl/Acl.h"
+#include "acl/Gadgets.h"
#include "Store.h"
DelayPool::DelayPool() : pool (NULL), access (NULL)
#if DELAY_POOLS
#include "squid.h"
-#include "authenticate.h"
+#include "auth/Gadgets.h"
#include "CompositePoolNode.h"
#include "DelayIdComposite.h"
#include "DelayBucket.h"
#if DELAY_POOLS
#include "squid.h"
-#include "authenticate.h"
+#include "auth/Gadgets.h"
#include "CompositePoolNode.h"
#include "DelayIdComposite.h"
#include "DelayBucket.h"
#ifndef SQUID_EXTERNALACL_H
#define SQUID_EXTERNALACL_H
-#include "ACLChecklist.h"
+#include "acl/Checklist.h"
class external_acl;
/** \todo CLEANUP: kill this typedef. */
typedef struct _external_acl_data external_acl_data;
-#include "ACL.h"
+#include "acl/Acl.h"
class ACLExternal : public ACL
{
TESTS=$(check_PROGRAMS)
check_PROGRAMS=
-SUBDIRS = base fs repl auth ip icmp
+SUBDIRS = base acl fs repl auth ip icmp
if USE_ADAPTATION
SUBDIRS += adaptation
endif
SSL_ALL_SOURCE = \
- ACLCertificateData.cc \
- ACLCertificateData.h \
- ACLCertificate.cc \
- ACLCertificate.h \
- ACLSslError.cc \
- ACLSslError.h \
- ACLSslErrorData.cc \
- ACLSslErrorData.h \
ssl_support.cc \
ssl_support.h
AIOPS_SOURCE = DiskIO/DiskThreads/aiops.cc
endif
-IDENT_ALL_SOURCE = ACLIdent.cc ACLIdent.h ident.cc ident.h
+IDENT_ALL_SOURCE = ident.cc ident.h
if ENABLE_IDENT
IDENT_SOURCE = $(IDENT_ALL_SOURCE)
else
IDENT_SOURCE =
endif
-ARP_ACL_ALL_SOURCE = ACLARP.cc ACLARP.h
-if ENABLE_ARP_ACL
-ARP_ACL_SOURCE = $(ARP_ACL_ALL_SOURCE)
-else
-ARP_ACL_SOURCE =
-endif
-
AM_CFLAGS = @SQUID_CFLAGS@
AM_CXXFLAGS = @SQUID_CXXFLAGS@
# libraries used by many targets
COMMON_LIBS = \
libsquid.la \
- auth/libauth.a \
+ auth/libacls.la \
+ acl/libacls.la \
+ acl/libstate.la \
+ auth/libauth.la \
+ acl/libapi.la \
base/libbase.la \
ip/libip.la
EXTRA_squid_SOURCES = \
$(AIO_WIN32_ALL_SOURCES) \
$(all_AUTHMODULES) \
- $(ARP_ACL_ALL_SOURCE) \
ConfigOption.h \
$(DELAY_POOL_ALL_SOURCE) \
dns.cc \
DiskIO/DiskThreads/aiops.cc \
DiskIO/DiskThreads/aiops_win32.cc
-squid_ACLSOURCES = \
- $(ARP_ACL_SOURCE) \
- ACLASN.cc \
- ACLASN.h \
- ACLDestinationASN.h \
- ACLSourceASN.h \
- ACLBrowser.cc \
- ACLBrowser.h \
- ACLData.h \
- ACLDestinationDomain.cc \
- ACLDestinationDomain.h \
- ACLDestinationIP.cc \
- ACLDestinationIP.h \
- ACLDomainData.h \
- ACLDomainData.cc \
- ACLExtUser.h \
- ACLExtUser.cc \
- ACLHTTPHeaderData.h \
- ACLHTTPHeaderData.cc \
- ACLHTTPStatus.h \
- ACLHTTPStatus.cc \
- ACLIntRange.cc \
- ACLIntRange.h \
- ACLIP.cc \
- ACLIP.h \
- ACLMaxConnection.cc \
- ACLMaxConnection.h \
- ACLMaxUserIP.cc \
- ACLMaxUserIP.h \
- ACLMethod.cc \
- ACLMethod.h \
- ACLMethodData.cc \
- ACLMethodData.h \
- ACLMyIP.cc \
- ACLMyIP.h \
- ACLMyPort.cc \
- ACLMyPort.h \
- ACLMyPortName.cc \
- ACLMyPortName.h \
- ACLPeerName.cc \
- ACLPeerName.h \
- ACLProtocol.cc \
- ACLProtocol.h \
- ACLProtocolData.cc \
- ACLProtocolData.h \
- ACLProxyAuth.cc \
- ACLProxyAuth.h \
- ACLReferer.cc \
- ACLReferer.h \
- ACLRegexData.cc \
- ACLRegexData.h \
- ACLReplyHeaderStrategy.h \
- ACLReplyMIMEType.cc \
- ACLReplyMIMEType.h \
- ACLHTTPRepHeader.cc \
- ACLHTTPRepHeader.h \
- ACLHTTPReqHeader.cc \
- ACLHTTPReqHeader.h \
- ACLRequestHeaderStrategy.h \
- ACLRequestMIMEType.cc \
- ACLRequestMIMEType.h \
- ACLSourceDomain.cc \
- ACLSourceDomain.h \
- ACLSourceIP.cc \
- ACLSourceIP.h \
- ACLStrategised.cc \
- ACLStrategised.h \
- ACLStrategy.h \
- ACLStringData.cc \
- ACLStringData.h \
- ACLTime.cc \
- ACLTime.h \
- ACLTimeData.cc \
- ACLTimeData.h \
- ACLUrl.cc \
- ACLUrl.h \
- ACLUrlPath.cc \
- ACLUrlPath.h \
- ACLUrlPort.cc \
- ACLUrlPort.h \
- ACLUserData.cc \
- ACLUserData.h
-
squid_COMMSOURCES = \
comm_select.cc \
comm_select.h \
squid_SOURCES = \
access_log.cc \
AccessLogEntry.h \
- acl.cc \
- acl_noncore.cc \
- ACL.h \
- ACLChecklist.cc \
- ACLChecklist.h \
- $(squid_ACLSOURCES) \
asn.cc \
AsyncCallQueue.cc \
AsyncCallQueue.h \
AsyncJobCalls.h \
AsyncEngine.cc \
AsyncEngine.h \
- authenticate.cc \
- authenticate.h \
cache_cf.cc \
ProtoPort.cc \
ProtoPort.h \
$(DNSSOURCE) \
enums.h \
errorpage.cc \
+ errorpage.h \
$(ESI_SOURCE) \
ETag.cc \
event.cc \
$(WIN32_SOURCE) \
$(WINSVC_SOURCE)
-noinst_HEADERS = ACLChecklist.cci \
+noinst_HEADERS = \
client_side_request.cci \
MemBuf.cci \
MemBuf.h \
@REPL_OBJS@ \
@STORE_LIBS_TO_ADD@ \
@DISK_LIBS@ \
- @AUTH_LIBS_TO_ADD@ \
@CRYPTLIB@ \
@REGEXLIB@ \
@SNMPLIB@ \
@STORE_LIBS_TO_ADD@ \
@DISK_LIBS@ \
@DISK_LINKOBJS@ \
- @REPL_OBJS@ \
- @AUTH_LIBS_TO_ADD@
+ @REPL_OBJS@
if USE_LOADABLE_MODULES
squid_SOURCES += $(LOADABLE_MODULES_SOURCES)
String.cc \
time.cc \
ufsdump.cc \
- url.cc \
- AsyncCallQueue.cc \
- AsyncCallQueue.h \
- AsyncCall.cc \
- AsyncCall.h \
- BodyPipe.cc \
- BodyPipe.h \
- ConfigParser.cc \
- store.cc \
- StoreFileSystem.cc \
- StoreSwapLogData.cc \
- StoreSwapLogData.h \
- access_log.cc \
- acl.cc \
- acl_noncore.cc \
- ACLChecklist.cc \
- ACLProxyAuth.cc \
- ACLUserData.cc \
- ACLRegexData.cc \
- ACLStringData.cc \
- authenticate.cc \
- cache_cf.cc \
- ProtoPort.cc \
- ProtoPort.h \
- cache_manager.cc \
- CacheDigest.cc \
- carp.cc \
- cbdata.cc \
- ChunkedCodingParser.cc \
- ChunkedCodingParser.h \
- client_db.cc \
- client_side.cc \
- client_side_reply.cc \
- client_side_request.cc \
- client_side_request.h \
- clientStream.cc \
- clientStream.h \
- CommIO.h \
- $(squid_COMMSOURCES) \
- ConfigOption.cc \
- defines.h \
- $(DELAY_POOL_SOURCE) \
- disk.cc \
dlink.h \
dlink.cc \
- $(DNSSOURCE) \
- enums.h \
- errorpage.cc \
- errorpage.h \
- $(ESI_SOURCE) \
- ETag.cc \
- event.cc \
- external_acl.cc \
- ExternalACLEntry.cc \
- fd.cc \
- fde.cc \
- fde.h \
- filemap.cc \
- forward.cc \
- forward.h \
- fqdncache.cc \
- ftp.cc \
- gopher.cc \
- helper.cc \
- $(HTCPSOURCE) \
- http.cc \
- HttpStatusLine.cc \
- HttpHdrCc.cc \
- HttpHdrRange.cc \
- HttpHdrSc.cc \
- HttpHdrScTarget.cc \
- HttpHdrContRange.cc \
- HttpHeader.cc \
- HttpHeaderTools.cc \
- HttpBody.cc \
- HttpMsg.cc \
- HttpReply.cc \
- HttpRequest.cc \
HttpRequestMethod.cc \
- icp_v2.cc \
- icp_v3.cc \
- $(IDENT_SOURCE) \
- internal.cc \
- $(IPC_SOURCE) \
- ipcache.cc \
- $(LEAKFINDERSOURCE) \
- list.cc \
- logfile.cc \
- mem_node.cc \
- mem_node.h \
- Mem.h \
- MemBuf.cc \
- MemObject.cc \
- MemObject.h \
- mime.cc \
- multicast.cc \
- neighbors.cc \
- Packer.cc \
- Parsing.cc \
- $(XPROF_STATS_SOURCE) \
- pconn.cc \
- peer_digest.cc \
- peer_select.cc \
- peer_sourcehash.cc \
- peer_userhash.cc \
- protos.h \
- redirect.cc \
- referer.cc \
- refresh.cc \
RemovalPolicy.cc \
- send-announce.cc \
- $(SNMP_SOURCE) \
squid.h \
- $(SSL_SOURCE) \
- tunnel.cc \
- Server.cc \
- SquidNew.cc \
- stat.cc \
- StatHist.cc \
- stmem.cc \
- store_io.cc \
- StoreIOBuffer.h \
- StoreIOState.cc \
- store_client.cc \
- StoreClient.h \
- store_digest.cc \
- store_dir.cc \
- store_log.cc \
- store_rebuild.cc \
- store_swapin.cc \
- store_swapmeta.cc \
- store_swapout.cc \
- structs.h \
- SwapDir.cc \
- tools.cc \
- typedefs.h \
- $(UNLINKDSOURCE) \
- URLScheme.cc \
- urn.cc \
- useragent.cc \
- wccp.cc \
- wccp2.cc \
- whois.cc \
- wordlist.cc \
$(WIN32_SOURCE)
ufsdump_LDADD = \
$(COMMON_LIBS) \
- icmp/libicmp.la icmp/libicmp-core.la \
@XTRA_OBJS@ \
@REPL_OBJS@ \
@STORE_LIBS_TO_ADD@ \
- @AUTH_LIBS_TO_ADD@ \
@CRYPTLIB@ \
@REGEXLIB@ \
@SNMPLIB@ \
- ${ADAPTATION_LIBS} \
@SSLLIB@ \
-L$(top_builddir)/lib -lmiscutil \
@XTRA_LIBS@ \
@STORE_LIBS_TO_ADD@ \
@DISK_LIBS@ \
@DISK_LINKOBJS@ \
- @REPL_OBJS@ \
- @AUTH_LIBS_TO_ADD@
+ @REPL_OBJS@
nodist_ufsdump_SOURCES = \
- repl_modules.cc \
- cf_parser.h \
- globals.cc \
- string_arrays.c
+ globals.cc
BUILT_SOURCES = \
cf_gen_defines.h \
tests_testAuth_SOURCES = \
tests/testAuth.cc tests/testMain.cc tests/testAuth.h \
- authenticate.cc \
ConfigParser.cc \
tests/stub_acl.cc tests/stub_cache_cf.cc \
tests/stub_helper.cc cbdata.cc String.cc \
- tests/stub_store.cc HttpHeaderTools.cc HttpHeader.cc acl.cc mem.cc \
- MemBuf.cc HttpHdrContRange.cc Packer.cc ACLChecklist.cc HttpHdrCc.cc HttpHdrSc.cc \
- HttpHdrScTarget.cc url.cc ACLProxyAuth.cc ACLRegexData.cc ACLUserData.cc \
+ tests/stub_store.cc HttpHeaderTools.cc HttpHeader.cc mem.cc \
+ MemBuf.cc HttpHdrContRange.cc Packer.cc HttpHdrCc.cc HttpHdrSc.cc \
+ HttpHdrScTarget.cc url.cc \
StatHist.cc HttpHdrRange.cc ETag.cc tests/stub_errorpage.cc \
tests/stub_HttpRequest.cc tests/stub_DelayId.cc \
tests/stub_MemObject.cc mem_node.cc \
tests_testAuth_LDADD= \
$(COMMON_LIBS) \
- @AUTH_LIBS_TO_ADD@ \
-L../lib -lmiscutil \
@REGEXLIB@ \
@SQUID_CPPUNIT_LIBS@ \
@SSLLIB@
tests_testAuth_LDFLAGS = $(LIBADD_DL)
tests_testAuth_DEPENDENCIES = $(top_builddir)/lib/libmiscutil.a \
- @AUTH_LIBS_TO_ADD@ \
@SQUID_CPPUNIT_LA@
## Tests for the ACLMaxUserIP class
## acl needs wordlist. wordlist needs MemBug
## MemBuf needs mem, MemBuf needs event,
## event needs cbdata.
-## ACLMaxUserUP needs authenticate.cc
-## authenticate.cc needs libauth.la
+## ACLMaxUserUP needs libauth.la
## ACLMaxUserIP needs ACLChecklist
## AuthUser request needs HttpHeader, which brings in
## ETag.cc \
## StatHist.cc \
## String.cc \
tests_testACLMaxUserIP_SOURCES= \
- acl.cc \
- ACLChecklist.cc \
- ACLMaxUserIP.cc \
- ACLProxyAuth.cc \
- ACLRegexData.cc \
- ACLUserData.cc \
- authenticate.cc \
cbdata.cc \
ConfigParser.cc \
ETag.cc \
tests/testMain.cc \
time.cc \
access_log.cc \
- acl.cc \
- acl_noncore.cc \
- ACLChecklist.cc \
- ACLProxyAuth.cc \
- ACLStringData.cc \
- ACLRegexData.cc \
- ACLUserData.cc \
- authenticate.cc \
BodyPipe.cc \
cache_manager.cc \
cache_cf.cc \
nodist_tests_testDiskIO_SOURCES= \
$(SWAP_TEST_GEN_SOURCES)
tests_testDiskIO_LDADD = \
- $(COMMON_LIBS) \
- @DISK_LIBS@ \
$(SWAP_TEST_LDADD) \
+ @DISK_LIBS@ \
+ $(COMMON_LIBS) \
SquidConfig.o
+
tests_testDiskIO_LDFLAGS = $(LIBADD_DL)
tests_testDiskIO_DEPENDENCIES = $(top_builddir)/lib/libmiscutil.a \
@DISK_LIBS@ \
tests/testMain.cc \
time.cc \
access_log.cc \
- acl.cc \
- acl_noncore.cc \
- ACLChecklist.cc \
- ACLProxyAuth.cc \
- ACLStringData.cc \
- ACLRegexData.cc \
- ACLUserData.cc \
- authenticate.cc \
BodyPipe.cc \
cache_manager.cc \
cache_cf.cc \
tests/testMain.cc \
time.cc \
access_log.cc \
- acl.cc \
- acl_noncore.cc \
- ACLChecklist.cc \
- ACLProxyAuth.cc \
- ACLStringData.cc \
- ACLRegexData.cc \
- ACLUserData.cc \
- authenticate.cc \
BodyPipe.cc \
cache_manager.cc \
cache_cf.cc \
tests_test_http_range_SOURCES = \
tests/test_http_range.cc \
access_log.cc \
- acl.cc \
- acl_noncore.cc \
- ACLChecklist.cc \
- ACLProxyAuth.cc \
- ACLStringData.cc \
- ACLRegexData.cc \
- ACLUserData.cc \
- authenticate.cc \
BodyPipe.cc \
cache_cf.cc \
ProtoPort.cc \
tests/testMain.cc \
time.cc \
access_log.cc \
- acl.cc \
- acl_noncore.cc \
- ACLChecklist.cc \
- ACLProxyAuth.cc \
- ACLStringData.cc \
- ACLRegexData.cc \
- ACLUserData.cc \
- authenticate.cc \
BodyPipe.cc \
cache_manager.cc \
cache_cf.cc \
Parsing.cc \
ConfigOption.cc \
SwapDir.cc \
- authenticate.cc \
tests/stub_acl.cc tests/stub_cache_cf.cc \
tests/stub_helper.cc cbdata.cc String.cc \
tests/stub_comm.cc \
mem_node.cc \
stmem.cc \
tests/stub_mime.cc \
- HttpHeaderTools.cc HttpHeader.cc acl.cc mem.cc \
- acl_noncore.cc \
- MemBuf.cc HttpHdrContRange.cc Packer.cc ACLChecklist.cc HttpHdrCc.cc HttpHdrSc.cc \
- HttpHdrScTarget.cc url.cc ACLProxyAuth.cc ACLRegexData.cc ACLUserData.cc \
+ HttpHeaderTools.cc HttpHeader.cc mem.cc \
+ MemBuf.cc HttpHdrContRange.cc Packer.cc HttpHdrCc.cc HttpHdrSc.cc \
+ HttpHdrScTarget.cc url.cc \
StatHist.cc HttpHdrRange.cc ETag.cc tests/stub_errorpage.cc \
tests/stub_HttpRequest.cc tests/stub_access_log.cc \
refresh.cc \
@REPL_OBJS@ \
@DISK_LIBS@ \
-L../lib -lmiscutil \
+ acl/libapi.la \
@SQUID_CPPUNIT_LIBS@
SWAP_TEST_DS =\
$(top_builddir)/lib/libmiscutil.a \
nodist_tests_testUfs_SOURCES = \
$(SWAP_TEST_GEN_SOURCES)
tests_testUfs_LDADD = \
- $(COMMON_LIBS) \
$(SWAP_TEST_LDADD) \
+ $(COMMON_LIBS) \
@SSLLIB@
tests_testUfs_LDFLAGS = $(LIBADD_DL)
tests_testUfs_DEPENDENCIES = \
tests/testMain.cc \
time.cc \
access_log.cc \
- acl.cc \
- acl_noncore.cc \
- ACLChecklist.cc \
- ACLProxyAuth.cc \
- ACLStringData.cc \
- ACLRegexData.cc \
- ACLUserData.cc \
- authenticate.cc \
BodyPipe.cc \
cache_manager.cc \
cache_cf.cc \
// Store.h Required by configuration directives parsing/dumping only
#include "Store.h"
-#include "ACLChecklist.h"
+#include "acl/Checklist.h"
#include "HttpReply.h"
#include "HttpRequest.h"
#ifndef SQUID_ACLARP_H
#define SQUID_ACLARP_H
-#include "ACL.h"
-#include "ACLChecklist.h"
+#include "acl/Acl.h"
+#include "acl/Checklist.h"
#include "splay.h"
/// \ingroup ACLAPI
*/
#include "squid.h"
-#include "ACLASN.h"
-#include "ACLChecklist.h"
+#include "acl/Asn.h"
+#include "acl/Checklist.h"
#ifndef SQUID_ACLASN_H
#define SQUID_ACLASN_H
-#include "ACLData.h"
+#include "acl/Data.h"
#include "CbDataList.h"
-#include "ACLStrategised.h"
-#include "ACLChecklist.h"
+#include "acl/Strategised.h"
+#include "acl/Checklist.h"
#include "ip/IpAddress.h"
SQUIDCEXTERN int asnMatchIp(CbDataList<int> *, IpAddress &);
*/
#include "squid.h"
-#include "ACLChecklist.h"
-#include "ACLBrowser.h"
-#include "ACLRegexData.h"
+#include "acl/Checklist.h"
+#include "acl/Browser.h"
+#include "acl/RegexData.h"
/* explicit template instantiation required for some systems */
#ifndef SQUID_ACLBROWSER_H
#define SQUID_ACLBROWSER_H
-#include "ACL.h"
-#include "ACLData.h"
-#include "ACLRequestHeaderStrategy.h"
-#include "ACLStrategised.h"
+#include "acl/Acl.h"
+#include "acl/Data.h"
+#include "acl/RequestHeaderStrategy.h"
+#include "acl/Strategised.h"
/// \ingroup ACLAPI
class ACLBrowser
*/
#include "squid.h"
-#include "ACLCertificateData.h"
-#include "authenticate.h"
-#include "ACLChecklist.h"
+#include "acl/CertificateData.h"
+#include "acl/Checklist.h"
#include "wordlist.h"
ACLCertificateData::ACLCertificateData(SSLGETATTRIBUTE *sslStrategy) : attribute (NULL), values (), sslAttributeCall (sslStrategy)
#define SQUID_ACLCERTIFICATEDATA_H
#include "splay.h"
-#include "ACL.h"
-#include "ACLData.h"
+#include "acl/Acl.h"
+#include "acl/Data.h"
#include "ssl_support.h"
-#include "ACLStringData.h"
+#include "acl/StringData.h"
/// \ingroup ACLAPI
class ACLCertificateData : public ACLData<SSL *>
#ifndef SQUID_ACLDESTINATIONIP_H
#define SQUID_ACLDESTINATIONIP_H
-#include "ACLChecklist.h"
-#include "ACLIP.h"
+#include "acl/Checklist.h"
+#include "acl/Ip.h"
class DestinationIPLookup : public ACLChecklist::AsyncState
{
*/
#include "squid.h"
-#include "ACLDomainData.h"
-#include "authenticate.h"
-#include "ACLChecklist.h"
+#include "acl/DomainData.h"
+#include "acl/Checklist.h"
#include "wordlist.h"
template<class T>
#define SQUID_ACLDOMAINDATA_H
#include "splay.h"
-#include "ACL.h"
-#include "ACLData.h"
+#include "acl/Acl.h"
+#include "acl/Data.h"
/// \ingroup ACLAPI
class ACLDomainData : public ACLData<char const *>
#ifndef SQUID_ACLIDENT_H
#define SQUID_ACLIDENT_H
-#include "ACL.h"
-#include "ACLChecklist.h"
-#include "ACLData.h"
+#include "acl/Acl.h"
+#include "acl/Checklist.h"
+#include "acl/Data.h"
/// \ingroup ACLAPI
class ACLExtUser : public ACL
*/
#include "squid.h"
-#include "ACLHTTPHeaderData.h"
-#include "authenticate.h"
-#include "ACLChecklist.h"
-#include "ACL.h"
-#include "ACLRegexData.h"
+#include "acl/HttpHeaderData.h"
+#include "acl/Checklist.h"
+#include "acl/Acl.h"
+#include "acl/RegexData.h"
#include "wordlist.h"
#include "ConfigParser.h"
class wordlist;
/* becaue we inherit from it */
-#include "ACLData.h"
+#include "acl/Data.h"
/* for String field */
#include "SquidString.h"
/* for http_hdr_type field */
#ifndef SQUID_ACLHTTPSTATUS_H
#define SQUID_ACLHTTPSTATUS_H
-#include "ACL.h"
-#include "ACLChecklist.h"
+#include "acl/Acl.h"
+#include "acl/Checklist.h"
#include "splay.h"
/// \ingroup ACLAPI
#ifndef SQUID_ACLIDENT_H
#define SQUID_ACLIDENT_H
-#include "ACLChecklist.h"
+#include "acl/Checklist.h"
/// \ingroup ACLAPI
class IdentLookup : public ACLChecklist::AsyncState
};
-#include "ACL.h"
-#include "ACLData.h"
+#include "acl/Acl.h"
+#include "acl/Data.h"
/// \ingroup ACLAPI
class ACLIdent : public ACL
*/
#include "squid.h"
-#include "ACLIntRange.h"
+#include "acl/IntRange.h"
#include "wordlist.h"
#include "Parsing.h"
#ifndef SQUID_ACLINTRANGE_H
#define SQUID_ACLINTRANGE_H
-#include "ACLData.h"
+#include "acl/Data.h"
#include "CbDataList.h"
#include "Range.h"
*/
#include "squid.h"
-#include "ACLIP.h"
-#include "ACLChecklist.h"
+#include "acl/Ip.h"
+#include "acl/Checklist.h"
#include "MemBuf.h"
#include "wordlist.h"
#ifndef SQUID_ACLIP_H
#define SQUID_ACLIP_H
-#include "ACL.h"
+#include "acl/Acl.h"
#include "splay.h"
#include "ip/IpAddress.h"
--- /dev/null
+include $(top_srcdir)/src/Common.am
+include $(top_srcdir)/src/TestHeaders.am
+
+noinst_LTLIBRARIES = libapi.la libstate.la libacls.la
+
+## General data-independent ACL API
+libapi_la_SOURCES = \
+ Acl.cc \
+ Acl.h \
+ Checklist.cc \
+ Checklist.h
+
+## Data-dependent Squid/transaction state used by specific ACLs.
+## Does not refer to specific ACLs to avoid circular dependencies.
+libstate_la_SOURCES = \
+ Data.h \
+ Strategy.h \
+ Strategised.cc \
+ Strategised.h \
+ \
+ FilledChecklist.cc \
+ FilledChecklist.h
+
+## data-specific ACLs
+libacls_la_SOURCES = \
+ IntRange.cc \
+ IntRange.h \
+ RegexData.cc \
+ RegexData.h \
+ StringData.cc \
+ StringData.h \
+ Time.cc \
+ Time.h \
+ TimeData.cc \
+ TimeData.h \
+ \
+ Asn.cc \
+ Asn.h \
+ Browser.cc \
+ Browser.h \
+ DestinationAsn.h \
+ DestinationDomain.cc \
+ DestinationDomain.h \
+ DestinationIp.cc \
+ DestinationIp.h \
+ DomainData.cc \
+ DomainData.h \
+ ExtUser.cc \
+ ExtUser.h \
+ HttpHeaderData.cc \
+ HttpHeaderData.h \
+ HttpRepHeader.cc \
+ HttpRepHeader.h \
+ HttpReqHeader.cc \
+ HttpReqHeader.h \
+ HttpStatus.cc \
+ HttpStatus.h \
+ Ip.cc \
+ Ip.h \
+ MaxConnection.cc \
+ MaxConnection.h \
+ Method.cc \
+ MethodData.cc \
+ MethodData.h \
+ Method.h \
+ MyIp.cc \
+ MyIp.h \
+ MyPort.cc \
+ MyPort.h \
+ MyPortName.cc \
+ MyPortName.h \
+ PeerName.cc \
+ PeerName.h \
+ Protocol.cc \
+ ProtocolData.cc \
+ ProtocolData.h \
+ Protocol.h \
+ Referer.cc \
+ Referer.h \
+ ReplyHeaderStrategy.h \
+ ReplyMimeType.cc \
+ ReplyMimeType.h \
+ RequestHeaderStrategy.h \
+ RequestMimeType.cc \
+ RequestMimeType.h \
+ SourceAsn.h \
+ SourceDomain.cc \
+ SourceDomain.h \
+ SourceIp.cc \
+ SourceIp.h \
+ Url.cc \
+ Url.h \
+ UrlPath.cc \
+ UrlPath.h \
+ UrlPort.cc \
+ UrlPort.h \
+ UserData.cc \
+ UserData.h \
+ \
+ Gadgets.cc \
+ Gadgets.h
+
+## Add conditional sources
+## TODO: move these to their respectful dirs when those dirs are created
+
+EXTRA_libacls_la_SOURCES =
+
+SSL_ACLS = \
+ CertificateData.cc \
+ CertificateData.h \
+ Certificate.cc \
+ Certificate.h \
+ SslError.cc \
+ SslError.h \
+ SslErrorData.cc \
+ SslErrorData.h
+
+if ENABLE_SSL
+libacls_la_SOURCES += $(SSL_ACLS)
+endif
+
+EXTRA_libacls_la_SOURCES += $(SSL_ACLS)
+
+
+ARP_ACLS = Arp.cc Arp.h
+
+if ENABLE_ARP_ACL
+libacls_la_SOURCES += $(ARP_ACLS)
+endif
+
+EXTRA_libacls_la_SOURCES += $(ARP_ACLS)
+
+
+IDENT_ACLS = Ident.cc Ident.h
+
+if ENABLE_IDENT
+libacls_la_SOURCES += $(IDENT_ACLS)
+endif
+
+EXTRA_libacls_la_SOURCES += $(IDENT_ACLS)
+
+
#ifndef SQUID_ACLMAXCONNECTION_H
#define SQUID_ACLMAXCONNECTION_H
-#include "ACL.h"
-#include "ACLChecklist.h"
+#include "acl/Acl.h"
+#include "acl/Checklist.h"
/// \ingroup ACLAPI
class ACLMaxConnection : public ACL
*/
#include "squid.h"
-#include "ACLMethodData.h"
-#include "ACLChecklist.h"
+#include "acl/MethodData.h"
+#include "acl/Checklist.h"
#include "HttpRequestMethod.h"
#include "wordlist.h"
#ifndef SQUID_ACLMETHODDATA_H
#define SQUID_ACLMETHODDATA_H
-#include "ACL.h"
-#include "ACLData.h"
+#include "acl/Acl.h"
+#include "acl/Data.h"
#include "CbDataList.h"
/// \ingroup ACLAPI
#ifndef SQUID_ACLMYIP_H
#define SQUID_ACLMYIP_H
-#include "ACLIP.h"
+#include "acl/Ip.h"
/// \ingroup ACLAPI
class ACLMyIP : public ACLIP
*/
#include "squid.h"
-#include "ACLProtocolData.h"
-#include "ACLChecklist.h"
+#include "acl/ProtocolData.h"
+#include "acl/Checklist.h"
#include "URLScheme.h"
#include "wordlist.h"
#ifndef SQUID_ACLPROTOCOLDATA_H
#define SQUID_ACLPROTOCOLDATA_H
-#include "ACL.h"
-#include "ACLData.h"
+#include "acl/Acl.h"
+#include "acl/Data.h"
#include "CbDataList.h"
class ACLProtocolData : public ACLData<protocol_t>
*/
#include "squid.h"
-#include "ACLReferer.h"
-#include "ACLChecklist.h"
-#include "ACLRegexData.h"
+#include "acl/Referer.h"
+#include "acl/Checklist.h"
+#include "acl/RegexData.h"
/* explicit template instantiation required for some systems */
#ifndef SQUID_ACLREFERER_H
#define SQUID_ACLREFERER_H
-#include "ACL.h"
-#include "ACLData.h"
-#include "ACLRequestHeaderStrategy.h"
-#include "ACLStrategised.h"
+#include "acl/Acl.h"
+#include "acl/Data.h"
+#include "acl/RequestHeaderStrategy.h"
+#include "acl/Strategised.h"
class ACLReferer
{
*/
#include "squid.h"
-#include "ACLRegexData.h"
-#include "authenticate.h"
-#include "ACLChecklist.h"
-#include "ACL.h"
+#include "acl/RegexData.h"
+#include "acl/Checklist.h"
+#include "acl/Acl.h"
#include "wordlist.h"
#include "ConfigParser.h"
#ifndef SQUID_ACLREGEXDATA_H
#define SQUID_ACLREGEXDATA_H
-#include "ACLData.h"
+#include "acl/Data.h"
#include "MemPool.h"
/** \todo CLEANUP: break out relist, we don't need the rest. */
*/
#include "squid.h"
-#include "ACLReplyMIMEType.h"
-#include "ACLChecklist.h"
-#include "ACLRegexData.h"
+#include "acl/ReplyMimeType.h"
+#include "acl/Checklist.h"
+#include "acl/RegexData.h"
/* explicit template instantiation required for some systems */
*/
#include "squid.h"
-#include "ACLRequestMIMEType.h"
-#include "ACLChecklist.h"
-#include "ACLRegexData.h"
+#include "acl/RequestMimeType.h"
+#include "acl/Checklist.h"
+#include "acl/RegexData.h"
/* explicit template instantiation required for some systems */
#ifndef SQUID_ACLSOURCEIP_H
#define SQUID_ACLSOURCEIP_H
-#include "ACLIP.h"
+#include "acl/Ip.h"
class ACLSourceIP : public ACLIP
{
*/
#include "squid.h"
-#include "ACLSslErrorData.h"
-#include "ACLChecklist.h"
+#include "acl/SslErrorData.h"
+#include "acl/Checklist.h"
#include "wordlist.h"
ACLSslErrorData::ACLSslErrorData() : values (NULL)
#ifndef SQUID_ACLSSL_ERRORDATA_H
#define SQUID_ACLSSL_ERRORDATA_H
-#include "ACL.h"
-#include "ACLData.h"
+#include "acl/Acl.h"
+#include "acl/Data.h"
#include "CbDataList.h"
#include "ssl_support.h"
*/
#include "squid.h"
-#include "ACLStringData.h"
-#include "ACLChecklist.h"
+#include "acl/StringData.h"
+#include "acl/Checklist.h"
#include "wordlist.h"
#ifndef SQUID_ACLSTRINGDATA_H
#define SQUID_ACLSTRINGDATA_H
#include "splay.h"
-#include "ACL.h"
-#include "ACLData.h"
+#include "acl/Acl.h"
+#include "acl/Data.h"
class ACLStringData : public ACLData<char const *>
*/
#include "squid.h"
-#include "ACLTimeData.h"
-#include "authenticate.h"
-#include "ACLChecklist.h"
+#include "acl/TimeData.h"
+#include "acl/Checklist.h"
#include "wordlist.h"
ACLTimeData::ACLTimeData () : weekbits (0), start (0), stop (0), next (NULL) {}
#ifndef SQUID_ACLTIMEDATA_H
#define SQUID_ACLTIMEDATA_H
#include "splay.h"
-#include "ACL.h"
-#include "ACLData.h"
+#include "acl/Acl.h"
+#include "acl/Data.h"
class ACLTimeData : public ACLData<time_t>
{
*/
#include "squid.h"
-#include "ACLUserData.h"
-#include "authenticate.h"
-#include "ACLChecklist.h"
+#include "acl/UserData.h"
+#include "acl/Checklist.h"
#include "wordlist.h"
#include "ConfigParser.h"
#ifndef SQUID_ACLUSERDATA_H
#define SQUID_ACLUSERDATA_H
#include "splay.h"
-#include "ACL.h"
-#include "ACLData.h"
+#include "acl/Acl.h"
+#include "acl/Data.h"
class ACLUserData : public ACLData<char const *>
{
#include "structs.h"
#include "ConfigParser.h"
-#include "ACL.h"
+#include "acl/Gadgets.h"
#include "adaptation/AccessRule.h"
#include "adaptation/Service.h"
#include "adaptation/ServiceGroups.h"
#include "structs.h"
#include "ConfigParser.h"
-#include "ACL.h"
+#include "acl/Gadgets.h"
#include "Store.h"
#include "Array.h" // really Vector
#include "adaptation/Config.h"
* See acl.c for access control and client_side.c for auditing */
#include "squid.h"
-#include "authenticate.h"
-#include "ACL.h"
+#include "acl/Acl.h"
+#include "acl/FilledChecklist.h"
#include "client_side.h"
#include "auth/Config.h"
#include "auth/Scheme.h"
+#include "auth/Gadgets.h"
#include "auth/User.h"
+#include "auth/UserRequest.h"
+#include "auth/AclProxyAuth.h"
#include "HttpReply.h"
#include "HttpRequest.h"
#include "squid.h"
#include "auth/Scheme.h"
-#include "authenticate.h"
+#include "auth/Gadgets.h"
#include "auth/Config.h"
Vector<AuthScheme*> *AuthScheme::_Schemes = NULL;
#include "auth/User.h"
#include "auth/UserRequest.h"
#include "auth/Config.h"
-#include "authenticate.h"
-#include "ACL.h"
+#include "auth/Gadgets.h"
+#include "acl/Acl.h"
+#include "acl/Gadgets.h"
#include "event.h"
#include "SquidTime.h"
#include "squid.h"
#include "auth/UserRequest.h"
#include "auth/User.h"
-/*#include "authenticate.h"
-#include "ACL.h"
+/*#include "auth/Gadgets.h"
+#include "acl/Acl.h"
#include "client_side.h"
*/
#include "auth/Config.h"
#include "squid.h"
#include "auth_basic.h"
-#include "authenticate.h"
+#include "auth/Gadgets.h"
#include "CacheManager.h"
#include "Store.h"
#include "HttpReply.h"
#ifndef __AUTH_BASIC_H__
#define __AUTH_BASIC_H__
-#include "authenticate.h"
+#include "auth/Gadgets.h"
#include "auth/User.h"
#include "auth/UserRequest.h"
#include "auth/Config.h"
#include "squid.h"
#include "rfc2617.h"
#include "auth_digest.h"
-#include "authenticate.h"
+#include "auth/Gadgets.h"
#include "event.h"
#include "CacheManager.h"
#include "Store.h"
#ifndef __AUTH_DIGEST_H__
#define __AUTH_DIGEST_H__
#include "rfc2617.h"
-#include "authenticate.h"
+#include "auth/Gadgets.h"
#include "auth/User.h"
#include "auth/UserRequest.h"
#include "auth/Config.h"
#include "squid.h"
#include "auth_negotiate.h"
-#include "authenticate.h"
+#include "auth/Gadgets.h"
#include "CacheManager.h"
#include "Store.h"
#include "client_side.h"
#ifndef __AUTH_NEGOTIATE_H__
#define __AUTH_NEGOTIATE_H__
-#include "authenticate.h"
+#include "auth/Gadgets.h"
#include "auth/User.h"
#include "auth/UserRequest.h"
#include "auth/Config.h"
#include "squid.h"
#include "auth_ntlm.h"
-#include "authenticate.h"
+#include "auth/Gadgets.h"
#include "CacheManager.h"
#include "Store.h"
#include "client_side.h"
#ifndef __AUTH_NTLM_H__
#define __AUTH_NTLM_H__
-#include "authenticate.h"
+#include "auth/Gadgets.h"
#include "auth/User.h"
#include "auth/UserRequest.h"
#include "auth/Config.h"
*/
#include "squid.h"
-#include "authenticate.h"
#include "ProtoPort.h"
#include "HttpRequestMethod.h"
#include "auth/Config.h"
#include "Store.h"
#include "SwapDir.h"
#include "ConfigParser.h"
-#include "ACL.h"
+#include "acl/Acl.h"
+#include "acl/Gadgets.h"
#include "StoreFileSystem.h"
#include "Parsing.h"
#include "MemBuf.h"
#include "squid.h"
#include "AccessLogEntry.h"
-#include "authenticate.h"
+#include "auth/Gadgets.h"
#include "ConfigParser.h"
#include "errorpage.h"
#include "event.h"
#include "HttpReply.h"
#include "pconn.h"
#include "Mem.h"
-#include "ACLASN.h"
-#include "ACL.h"
+#include "acl/Asn.h"
+#include "acl/Acl.h"
#include "htcp.h"
#include "StoreFileSystem.h"
#include "DiskIO/DiskIOModule.h"
#include "Store.h"
#include "fde.h"
#include "client_side_request.h"
-#include "ACLChecklist.h"
+#include "acl/Checklist.h"
#include "HttpRequest.h"
#include "client_side.h"
#include "helper.h"
#include <stdexcept>
#include "testACLMaxUserIP.h"
-#include "ACLMaxUserIP.h"
+#include "auth/AclMaxUserIp.h"
CPPUNIT_TEST_SUITE_REGISTRATION( testACLMaxUserIP );
#include "squid.h"
#include "testAuth.h"
-#include "authenticate.h"
+#include "auth/Gadgets.h"
#include "auth/UserRequest.h"
#include "auth/Scheme.h"
#include "auth/Config.h"
#include "Mem.h"
#if 0
-#include "ACLChecklist.h"
+#include "acl/Checklist.h"
#endif
/* Stub routines */