Squid Web Cache
master
Loading...
Searching...
No Matches
AclDenyInfoList.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 1996-2025 The Squid Software Foundation and contributors
3
*
4
* Squid software is distributed under GPLv2+ license and includes
5
* contributions from numerous individuals and organizations.
6
* Please see the COPYING and CONTRIBUTORS files for details.
7
*/
8
9
#ifndef SQUID_SRC_ACL_ACLDENYINFOLIST_H
10
#define SQUID_SRC_ACL_ACLDENYINFOLIST_H
11
12
#include "
acl/forward.h
"
13
#include "
error/forward.h
"
14
#include "
errorpage.h
"
15
#include "mem/forward.h"
16
#include "
sbuf/forward.h
"
17
19
class
AclDenyInfoList
20
{
21
MEMPROXY_CLASS
(
AclDenyInfoList
);
22
23
public
:
24
AclDenyInfoList
(
const
char
*t,
const
SBuf
&aCfgLocation) {
25
err_page_name
=
xstrdup
(t);
26
err_page_id
=
errorReservePageId
(t, aCfgLocation);
27
}
28
~AclDenyInfoList
() {
29
xfree
(
err_page_name
);
30
while
(
next
) {
31
auto
*a =
next
;
32
next
= a->
next
;
33
a->
next
=
nullptr
;
34
delete
a;
35
}
36
}
37
err_type
err_page_id
=
ERR_NONE
;
38
char
*
err_page_name
=
nullptr
;
39
SBufList
acl_list
;
40
AclDenyInfoList
*
next
=
nullptr
;
41
};
42
43
#endif
/* SQUID_SRC_ACL_ACLDENYINFOLIST_H */
44
forward.h
AclDenyInfoList
deny_info representation. Currently a POD.
Definition
AclDenyInfoList.h:20
AclDenyInfoList::AclDenyInfoList
AclDenyInfoList(const char *t, const SBuf &aCfgLocation)
Definition
AclDenyInfoList.h:24
AclDenyInfoList::acl_list
SBufList acl_list
ACL names in configured order.
Definition
AclDenyInfoList.h:39
AclDenyInfoList::MEMPROXY_CLASS
MEMPROXY_CLASS(AclDenyInfoList)
AclDenyInfoList::err_page_name
char * err_page_name
Definition
AclDenyInfoList.h:38
AclDenyInfoList::~AclDenyInfoList
~AclDenyInfoList()
Definition
AclDenyInfoList.h:28
AclDenyInfoList::next
AclDenyInfoList * next
Definition
AclDenyInfoList.h:40
AclDenyInfoList::err_page_id
err_type err_page_id
Definition
AclDenyInfoList.h:37
SBuf
Definition
SBuf.h:94
forward.h
err_type
err_type
Definition
forward.h:14
ERR_NONE
@ ERR_NONE
Definition
forward.h:15
errorReservePageId
err_type errorReservePageId(const char *page_name, const SBuf &cfgLocation)
allocates a new slot for the error page
Definition
errorpage.cc:654
errorpage.h
xfree
#define xfree
Definition
negotiate_wrapper.cc:50
xstrdup
#define xstrdup
Definition
negotiate_wrapper.cc:47
forward.h
SBufList
std::list< SBuf > SBufList
Definition
forward.h:23
squid
src
acl
AclDenyInfoList.h
Generated by
1.9.8