]>
Commit | Line | Data |
---|---|---|
8578e64a | 1 | /* |
8578e64a AR |
2 | */ |
3 | ||
4 | #ifndef SQUID_ACLSERVERCERTIFICATE_H | |
5 | #define SQUID_ACLSERVERCERTIFICATE_H | |
6 | ||
7 | #include "acl/Acl.h" | |
8578e64a | 8 | #include "acl/Checklist.h" |
602d9612 | 9 | #include "acl/Data.h" |
8578e64a | 10 | #include "acl/Strategised.h" |
602d9612 | 11 | #include "ssl/support.h" |
8578e64a AR |
12 | |
13 | /// \ingroup ACLAPI | |
14 | class ACLServerCertificateStrategy : public ACLStrategy<X509 *> | |
15 | { | |
8578e64a | 16 | public: |
33810b1d | 17 | virtual int match (ACLData<MatchType> * &, ACLFilledChecklist *, ACLFlags &); |
8578e64a AR |
18 | static ACLServerCertificateStrategy *Instance(); |
19 | /* Not implemented to prevent copies of the instance. */ | |
20 | /* Not private to prevent brain dead g+++ warnings about | |
21 | * private constructors with no friends */ | |
22 | ACLServerCertificateStrategy(ACLServerCertificateStrategy const &); | |
23 | ||
24 | private: | |
25 | static ACLServerCertificateStrategy Instance_; | |
26 | ACLServerCertificateStrategy() {} | |
27 | ||
28 | ACLServerCertificateStrategy&operator=(ACLServerCertificateStrategy const &); | |
29 | }; | |
30 | ||
31 | /// \ingroup ACLAPI | |
32 | class ACLServerCertificate | |
33 | { | |
34 | private: | |
35 | static ACL::Prototype X509FingerprintRegistryProtoype; | |
36 | static ACLStrategised<X509*> X509FingerprintRegistryEntry_; | |
37 | }; | |
38 | ||
39 | #endif /* SQUID_ACLSERVERCERTIFICATE_H */ |