ServerName.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_SERVERNAME_H
10 #define SQUID_SRC_ACL_SERVERNAME_H
11 
12 #include "acl/DomainData.h"
13 #include "acl/ParameterizedNode.h"
14 
17 public:
19  bool match(const char *) override;
20 };
21 
22 namespace Acl
23 {
24 
26 class ServerNameCheck: public ParameterizedNode< ACLData<const char *> >
27 {
28 public:
29  /* Acl::Node API */
30  int match(ACLChecklist *) override;
31  bool requiresRequest() const override {return true;}
32  const Acl::Options &options() override;
33  bool valid() const override;
34 
35 private:
39 };
40 
41 } // namespace Acl
42 
43 #endif /* SQUID_SRC_ACL_SERVERNAME_H */
44 
Acl::BooleanOptionValue useClientRequested
Ignore server-supplied names.
Definition: ServerName.h:36
MEMPROXY_CLASS(ACLServerNameData)
std::vector< const Option * > Options
Definition: Options.h:217
bool match(const char *) override
Definition: ServerName.cc:34
Acl::BooleanOptionValue useServerProvided
Ignore client-supplied names.
Definition: ServerName.h:37
Definition: Acl.cc:33
const Acl::Options & options() override
Definition: ServerName.cc:142
an "ssl::server_name" or "ssl::server_name_regex" ACL
Definition: ServerName.h:26
Acl::BooleanOptionValue useConsensus
Ignore mismatching names.
Definition: ServerName.h:38
bool valid() const override
Definition: ServerName.cc:155
bool requiresRequest() const override
whether our (i.e. shallow) match() requires checklist to have a request
Definition: ServerName.h:31
int match(ACLChecklist *) override
Matches the actual data in checklist against this Acl::Node.
Definition: ServerName.cc:97

 

Introduction

Documentation

Support

Miscellaneous