2 * Copyright (C) 1996-2017 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 virtual void checkForAsync(ACLChecklist
*)const;
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 *);
39 ACLIdent (ACLIdent
const &old
);
40 ACLIdent
& operator= (ACLIdent
const &rhs
);
43 virtual char const *typeString() const;
45 virtual bool isProxyAuth() const {return true;}
47 virtual int match(ACLChecklist
*checklist
);
48 virtual SBufList
dump() const;
49 virtual bool empty () const;
50 virtual ACL
*clone()const;
53 static Prototype UserRegistryProtoype
;
54 static ACLIdent UserRegistryEntry_
;
55 static Prototype RegexRegistryProtoype
;
56 static ACLIdent RegexRegistryEntry_
;
57 ACLData
<char const *> *data
;
61 #endif /* USE_IDENT */
62 #endif /* SQUID_IDENT_ACLIDENT_H */