]> git.ipfire.org Git - thirdparty/squid.git/blob - src/acl/Certificate.h
SourceFormat Enforcement
[thirdparty/squid.git] / src / acl / Certificate.h
1 /*
2 * Copyright (C) 1996-2015 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_ACLCERTIFICATE_H
10 #define SQUID_ACLCERTIFICATE_H
11
12 #include "acl/Acl.h"
13 #include "acl/Checklist.h"
14 #include "acl/Data.h"
15 #include "acl/Strategised.h"
16 #include "ssl/support.h"
17
18 /// \ingroup ACLAPI
19 class ACLCertificateStrategy : public ACLStrategy<X509 *>
20 {
21
22 public:
23 virtual int match (ACLData<MatchType> * &, ACLFilledChecklist *, ACLFlags &);
24 static ACLCertificateStrategy *Instance();
25 /* Not implemented to prevent copies of the instance. */
26 /* Not private to prevent brain dead g+++ warnings about
27 * private constructors with no friends */
28 ACLCertificateStrategy(ACLCertificateStrategy const &);
29
30 private:
31 static ACLCertificateStrategy Instance_;
32 ACLCertificateStrategy() {}
33
34 ACLCertificateStrategy&operator=(ACLCertificateStrategy const &);
35 };
36
37 /// \ingroup ACLAPI
38 class ACLCertificate
39 {
40
41 private:
42 static ACL::Prototype UserRegistryProtoype;
43 static ACLStrategised<X509*> UserRegistryEntry_;
44 static ACL::Prototype CARegistryProtoype;
45 static ACLStrategised<X509 *> CARegistryEntry_;
46 };
47
48 #endif /* SQUID_ACLCERTIFICATE_H */
49