/* * Copyright (C) 1996-2015 The Squid Software Foundation and contributors * * Squid software is distributed under GPLv2+ license and includes * contributions from numerous individuals and organizations. * Please see the COPYING and CONTRIBUTORS files for details. */ #ifndef SQUID_ACLSERVERCERTIFICATE_H #define SQUID_ACLSERVERCERTIFICATE_H #include "acl/Acl.h" #include "acl/Checklist.h" #include "acl/Data.h" #include "acl/Strategised.h" #include "ssl/support.h" /// \ingroup ACLAPI class ACLServerCertificateStrategy : public ACLStrategy { public: virtual int match (ACLData * &, ACLFilledChecklist *, ACLFlags &); static ACLServerCertificateStrategy *Instance(); /* Not implemented to prevent copies of the instance. */ /* Not private to prevent brain dead g+++ warnings about * private constructors with no friends */ ACLServerCertificateStrategy(ACLServerCertificateStrategy const &); private: static ACLServerCertificateStrategy Instance_; ACLServerCertificateStrategy() {} ACLServerCertificateStrategy&operator=(ACLServerCertificateStrategy const &); }; /// \ingroup ACLAPI class ACLServerCertificate { private: static ACL::Prototype X509FingerprintRegistryProtoype; static ACLStrategised X509FingerprintRegistryEntry_; }; #endif /* SQUID_ACLSERVERCERTIFICATE_H */