]> git.ipfire.org Git - thirdparty/squid.git/blob - src/acl/SslError.h
SourceFormat Enforcement
[thirdparty/squid.git] / src / acl / SslError.h
1 #ifndef SQUID_ACLSSL_ERROR_H
2 #define SQUID_ACLSSL_ERROR_H
3 #include "acl/Strategised.h"
4 #include "acl/Strategy.h"
5 #include "ssl/support.h"
6
7 class ACLSslErrorStrategy : public ACLStrategy<const Ssl::CertErrors *>
8 {
9
10 public:
11 virtual int match (ACLData<MatchType> * &, ACLFilledChecklist *, ACLFlags &);
12 static ACLSslErrorStrategy *Instance();
13 /* Not implemented to prevent copies of the instance. */
14 /* Not private to prevent brain dead g+++ warnings about
15 * private constructors with no friends */
16 ACLSslErrorStrategy(ACLSslErrorStrategy const &);
17
18 private:
19 static ACLSslErrorStrategy Instance_;
20 ACLSslErrorStrategy() {}
21
22 ACLSslErrorStrategy&operator=(ACLSslErrorStrategy const &);
23 };
24
25 class ACLSslError
26 {
27
28 private:
29 static ACL::Prototype RegistryProtoype;
30 static ACLStrategised<const Ssl::CertErrors *> RegistryEntry_;
31 };
32
33 #endif /* SQUID_ACLSSL_ERROR_H */