]> git.ipfire.org Git - thirdparty/squid.git/blob - src/acl/AtStep.h
SourceFormat Enforcement
[thirdparty/squid.git] / src / acl / AtStep.h
1 /*
2 * Copyright (C) 1996-2017 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_ACLATSTEP_H
10 #define SQUID_ACLATSTEP_H
11
12 #if USE_OPENSSL
13
14 #include "acl/Strategised.h"
15 #include "acl/Strategy.h"
16 #include "ssl/support.h"
17
18 /// \ingroup ACLAPI
19 class ACLAtStepStrategy : public ACLStrategy<Ssl::BumpStep>
20 {
21
22 public:
23 virtual int match (ACLData<MatchType> * &, ACLFilledChecklist *, ACLFlags &);
24 static ACLAtStepStrategy *Instance();
25
26 // Not implemented to prevent copies of the instance.
27 ACLAtStepStrategy(ACLAtStepStrategy const &);
28
29 private:
30 static ACLAtStepStrategy Instance_;
31 ACLAtStepStrategy() {}
32
33 ACLAtStepStrategy&operator=(ACLAtStepStrategy const &);
34 };
35
36 class ACLAtStep
37 {
38
39 private:
40 static ACL::Prototype RegistryProtoype;
41 static ACLStrategised<Ssl::BumpStep> RegistryEntry_;
42 };
43
44 #endif /* USE_OPENSSL */
45
46 #endif /* SQUID_ACLATSTEP_H */
47