]> git.ipfire.org Git - thirdparty/squid.git/blob - src/acl/ExtUser.h
Source Format Enforcement (#1234)
[thirdparty/squid.git] / src / acl / ExtUser.h
1 /*
2 * Copyright (C) 1996-2023 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() override;
25
26 /* ACL API */
27 char const *typeString() const override;
28 void parse() override;
29 int match(ACLChecklist *checklist) override;
30 SBufList dump() const override;
31 bool empty () const override;
32
33 private:
34 /* ACL API */
35 const Acl::Options &lineOptions() override;
36
37 ACLData<char const *> *data;
38 char const *type_;
39 };
40
41 #endif /* USE_AUTH */
42 #endif /* SQUID_EXTUSER_H */
43