]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/ident/AclIdent.h
2 * Copyright (C) 1996-2023 The Squid Software Foundation and contributors
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.
9 #ifndef SQUID_IDENT_ACLIDENT_H
10 #define SQUID_IDENT_ACLIDENT_H
14 #include "acl/Checklist.h"
17 class IdentLookup
: public ACLChecklist::AsyncState
21 static IdentLookup
*Instance();
22 void checkForAsync(ACLChecklist
*)const override
;
25 static IdentLookup instance_
;
26 static void LookupDone(const char *ident
, void *data
);
33 class ACLIdent
: public ACL
35 MEMPROXY_CLASS(ACLIdent
);
38 ACLIdent(ACLData
<char const *> *newData
, char const *);
42 char const *typeString() const override
;
43 void parse() override
;
44 bool isProxyAuth() const override
{return true;}
45 int match(ACLChecklist
*checklist
) override
;
46 SBufList
dump() const override
;
47 bool empty () const override
;
51 const Acl::Options
&lineOptions() override
;
53 ACLData
<char const *> *data
;
57 #endif /* USE_IDENT */
58 #endif /* SQUID_IDENT_ACLIDENT_H */