]> git.ipfire.org Git - thirdparty/squid.git/blob - src/acl/ServerCertificate.h
Amos requested changes
[thirdparty/squid.git] / src / acl / ServerCertificate.h
1 /*
2 */
3
4 #ifndef SQUID_ACLSERVERCERTIFICATE_H
5 #define SQUID_ACLSERVERCERTIFICATE_H
6
7 #include "acl/Acl.h"
8 #include "acl/Data.h"
9 #include "acl/Checklist.h"
10 #include "ssl/support.h"
11 #include "acl/Strategised.h"
12
13 /// \ingroup ACLAPI
14 class ACLServerCertificateStrategy : public ACLStrategy<X509 *>
15 {
16 public:
17 virtual int match (ACLData<MatchType> * &, ACLFilledChecklist *);
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 */