AclIdent.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_IDENT_ACLIDENT_H
10#define SQUID_IDENT_ACLIDENT_H
11
12#if USE_IDENT
13
14#include "acl/Checklist.h"
15
18{
19
20public:
21 static IdentLookup *Instance();
22 void checkForAsync(ACLChecklist *)const override;
23
24private:
26 static void LookupDone(const char *ident, void *data);
27};
28
29#include "acl/Acl.h"
30#include "acl/Data.h"
31
33class ACLIdent : public ACL
34{
36
37public:
38 ACLIdent(ACLData<char const *> *newData, char const *);
39 ~ACLIdent() override;
40
41 /* ACL API */
42 char const *typeString() const override;
43 void parse() override;
44 bool isProxyAuth() const override {return true;}
45 int match(ACLChecklist *checklist) override;
46 SBufList dump() const override;
47 bool empty () const override;
48
49private:
50 /* ACL API */
51 const Acl::Options &lineOptions() override;
52
54 char const *type_;
55};
56
57#endif /* USE_IDENT */
58#endif /* SQUID_IDENT_ACLIDENT_H */
59
bool empty() const override
Definition: AclIdent.cc:85
char const * type_
Definition: AclIdent.h:54
char const * typeString() const override
Definition: AclIdent.cc:33
~ACLIdent() override
Definition: AclIdent.cc:25
bool isProxyAuth() const override
Definition: AclIdent.h:44
SBufList dump() const override
Definition: AclIdent.cc:79
ACLData< char const * > * data
Definition: AclIdent.h:53
int match(ACLChecklist *checklist) override
Matches the actual data in checklist against this ACL.
Definition: AclIdent.cc:56
ACLIdent(ACLData< char const * > *newData, char const *)
Definition: AclIdent.cc:30
MEMPROXY_CLASS(ACLIdent)
const Acl::Options & lineOptions() override
Definition: AclIdent.cc:39
void parse() override
parses node representation in squid.conf; dies on failures
Definition: AclIdent.cc:45
Definition: Acl.h:40
static void LookupDone(const char *ident, void *data)
Definition: AclIdent.cc:110
static IdentLookup * Instance()
Definition: AclIdent.cc:93
static IdentLookup instance_
Definition: AclIdent.h:25
void checkForAsync(ACLChecklist *) const override
Definition: AclIdent.cc:99
std::vector< const Option * > Options
Definition: Options.h:214
std::list< SBuf > SBufList
Definition: forward.h:23

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors