Asn.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 1996-2023 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_ASN_H
10 #define SQUID_SRC_ACL_ASN_H
11 
12 #include "acl/Data.h"
13 #include "base/CbDataList.h"
14 #include "ip/Address.h"
15 
17 
19 void asnInit(void);
20 
22 void asnFreeMemory(void);
23 
25 class ACLASN : public ACLData<Ip::Address>
26 {
28 
29 public:
30  ACLASN() : data(nullptr) {}
31  ~ACLASN() override;
32 
33  bool match(Ip::Address) override;
34  SBufList dump() const override;
35  void parse() override;
36  bool empty() const override;
37  void prepareForUse() override;
38 
39 private:
41 };
42 
43 #endif /* SQUID_SRC_ACL_ASN_H */
44 
SBufList dump() const override
Definition: Asn.cc:479
~ACLASN() override
Definition: Asn.cc:465
MEMPROXY_CLASS(ACLASN)
std::list< SBuf > SBufList
Definition: forward.h:22
Configured ACL parameter(s) (e.g., domain names in dstdomain ACL).
Definition: Data.h:17
int asnMatchIp(CbDataList< int > *, Ip::Address &)
Definition: Asn.cc:126
Definition: Asn.h:25
bool match(Ip::Address) override
Definition: Asn.cc:473
void asnFreeMemory(void)
Definition: Asn.cc:204
CbDataList< int > * data
Definition: Asn.h:40
void parse() override
Definition: Asn.cc:502
ACLASN()
Definition: Asn.h:30
void prepareForUse() override
Definition: Asn.cc:170
void asnInit(void)
Definition: Asn.cc:188
bool empty() const override
Definition: Asn.cc:496

 

Introduction

Documentation

Support

Miscellaneous