]> git.ipfire.org Git - thirdparty/squid.git/blob - src/acl/ExtUser.h
SourceFormat Enforcement
[thirdparty/squid.git] / src / acl / ExtUser.h
1 /*
2 * Copyright (C) 1996-2017 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_EXTUSER_H
10 #define SQUID_EXTUSER_H
11
12 #if USE_AUTH
13
14 #include "acl/Acl.h"
15 #include "acl/Checklist.h"
16 #include "acl/Data.h"
17
18 class ACLExtUser : public ACL
19 {
20 MEMPROXY_CLASS(ACLExtUser);
21
22 public:
23 ACLExtUser(ACLData<char const *> *newData, char const *);
24 ACLExtUser (ACLExtUser const &old);
25 ACLExtUser & operator= (ACLExtUser const &rhs);
26 ~ACLExtUser();
27
28 virtual char const *typeString() const;
29 virtual void parse();
30
31 virtual int match(ACLChecklist *checklist);
32 virtual SBufList dump() const;
33 virtual bool empty () const;
34 virtual ACL *clone()const;
35
36 private:
37 static Prototype UserRegistryProtoype;
38 static ACLExtUser UserRegistryEntry_;
39 static Prototype RegexRegistryProtoype;
40 static ACLExtUser RegexRegistryEntry_;
41 ACLData<char const *> *data;
42 char const *type_;
43 };
44
45 #endif /* USE_AUTH */
46 #endif /* SQUID_EXTUSER_H */
47