]>
Commit | Line | Data |
---|---|---|
bbc27441 | 1 | /* |
ef57eb7b | 2 | * Copyright (C) 1996-2016 The Squid Software Foundation and contributors |
bbc27441 AJ |
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 | ||
1b26be8f | 9 | #ifndef SQUID_ACLSSL_ERROR_H |
10 | #define SQUID_ACLSSL_ERROR_H | |
127dce76 | 11 | #include "acl/Strategised.h" |
602d9612 | 12 | #include "acl/Strategy.h" |
fb2178bb | 13 | #include "ssl/support.h" |
1b26be8f | 14 | |
62a7607e | 15 | class ACLSslErrorStrategy : public ACLStrategy<const Ssl::CertErrors *> |
1b26be8f | 16 | { |
17 | ||
18 | public: | |
33810b1d | 19 | virtual int match (ACLData<MatchType> * &, ACLFilledChecklist *, ACLFlags &); |
1b26be8f | 20 | static ACLSslErrorStrategy *Instance(); |
21 | /* Not implemented to prevent copies of the instance. */ | |
22 | /* Not private to prevent brain dead g+++ warnings about | |
23 | * private constructors with no friends */ | |
24 | ACLSslErrorStrategy(ACLSslErrorStrategy const &); | |
25 | ||
26 | private: | |
27 | static ACLSslErrorStrategy Instance_; | |
26ac0430 | 28 | ACLSslErrorStrategy() {} |
1b26be8f | 29 | |
30 | ACLSslErrorStrategy&operator=(ACLSslErrorStrategy const &); | |
31 | }; | |
32 | ||
33 | class ACLSslError | |
34 | { | |
35 | ||
36 | private: | |
37 | static ACL::Prototype RegistryProtoype; | |
62a7607e | 38 | static ACLStrategised<const Ssl::CertErrors *> RegistryEntry_; |
1b26be8f | 39 | }; |
40 | ||
41 | #endif /* SQUID_ACLSSL_ERROR_H */ | |
f53969cc | 42 |