]> git.ipfire.org Git - thirdparty/squid.git/blame - src/acl/ExtUser.h
SourceFormat Enforcement
[thirdparty/squid.git] / src / acl / ExtUser.h
CommitLineData
abb929f0 1/*
2cd0bda2 2 * Copyright (C) 1996-2017 The Squid Software Foundation and contributors
abb929f0 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.
abb929f0 7 */
8
a260430e
CT
9#ifndef SQUID_EXTUSER_H
10#define SQUID_EXTUSER_H
63be0a78 11
2f1431ea
AJ
12#if USE_AUTH
13
3ad63615
AR
14#include "acl/Acl.h"
15#include "acl/Checklist.h"
16#include "acl/Data.h"
abb929f0 17
18class ACLExtUser : public ACL
19{
b001e822 20 MEMPROXY_CLASS(ACLExtUser);
abb929f0 21
741c2986 22public:
abb929f0 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();
abb929f0 30
31 virtual int match(ACLChecklist *checklist);
8966008b 32 virtual SBufList dump() const;
4b0f5de8 33 virtual bool empty () const;
abb929f0 34 virtual ACL *clone()const;
35
36private:
abb929f0 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
2f1431ea 45#endif /* USE_AUTH */
a260430e 46#endif /* SQUID_EXTUSER_H */
f53969cc 47