]> git.ipfire.org Git - thirdparty/squid.git/blame - src/acl/UserData.h
Source Format Enforcement (#532)
[thirdparty/squid.git] / src / acl / UserData.h
CommitLineData
8000a965 1/*
77b1029d 2 * Copyright (C) 1996-2020 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();
d4c6acac 28 virtual const Acl::ParameterFlags &supportedFlags() const;
65092baf 29 bool empty() const;
5dee515e 30 virtual ACLData<char const *> *clone() const;
62e76326 31
52669f3a
FC
32private:
33
34 typedef std::set<SBuf,bool(*)(const SBuf&, const SBuf&)> UserDataNames_t;
35 UserDataNames_t userDataNames;
62e76326 36
26ac0430 37 struct {
3dd52a0b
FC
38 bool case_insensitive;
39 bool required;
3d0ac046 40 } flags;
52669f3a 41
8000a965 42};
43
44#endif /* SQUID_ACLUSERDATA_H */
f53969cc 45