]> git.ipfire.org Git - thirdparty/squid.git/blame - src/acl/UserData.h
Docs: Copyright updates for 2018 (#114)
[thirdparty/squid.git] / src / acl / UserData.h
CommitLineData
8000a965 1/*
5b74111a 2 * Copyright (C) 1996-2018 The Squid Software Foundation and contributors
8000a965 3 *
bbc27441
AJ
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.
8000a965 7 */
8
9#ifndef SQUID_ACLUSERDATA_H
10#define SQUID_ACLUSERDATA_H
741c2986 11
3ad63615
AR
12#include "acl/Acl.h"
13#include "acl/Data.h"
65e41a45 14#include "sbuf/SBuf.h"
8000a965 15
52669f3a
FC
16#include <set>
17
62e76326 18class ACLUserData : public ACLData<char const *>
19{
b001e822 20 MEMPROXY_CLASS(ACLUserData);
8000a965 21
741c2986 22public:
68acf08e 23 virtual ~ACLUserData() {}
796e7038 24 ACLUserData();
8000a965 25 bool match(char const *user);
2cb8d372 26 virtual SBufList dump() const;
8000a965 27 void parse();
65092baf 28 bool empty() const;
5dee515e 29 virtual ACLData<char const *> *clone() const;
62e76326 30
52669f3a
FC
31private:
32
33 typedef std::set<SBuf,bool(*)(const SBuf&, const SBuf&)> UserDataNames_t;
34 UserDataNames_t userDataNames;
62e76326 35
26ac0430 36 struct {
3dd52a0b
FC
37 bool case_insensitive;
38 bool required;
3d0ac046 39 } flags;
52669f3a 40
8000a965 41};
42
43#endif /* SQUID_ACLUSERDATA_H */
f53969cc 44