]> git.ipfire.org Git - thirdparty/squid.git/blob - src/acl/UserData.h
SourceFormat Enforcement
[thirdparty/squid.git] / src / acl / UserData.h
1 /*
2 * Copyright (C) 1996-2015 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_ACLUSERDATA_H
10 #define SQUID_ACLUSERDATA_H
11
12 #include "acl/Acl.h"
13 #include "acl/Data.h"
14 #include "splay.h"
15
16 class ACLUserData : public ACLData<char const *>
17 {
18 MEMPROXY_CLASS(ACLUserData);
19
20 public:
21 virtual ~ACLUserData();
22 bool match(char const *user);
23 virtual SBufList dump() const;
24 void parse();
25 bool empty() const;
26 virtual ACLData<char const *> *clone() const;
27
28 Splay<char *> *names;
29
30 struct {
31 bool case_insensitive;
32 bool required;
33 } flags;
34 };
35
36 #endif /* SQUID_ACLUSERDATA_H */
37