// ********************************************************************** // // Copyright (c) 2003-2009 ZeroC, Inc. All rights reserved. // // This copy of Ice is licensed to you under the terms described in the // ICE_LICENSE file included in this distribution. // // ********************************************************************** #ifndef ICE_SSL_TRUST_MANAGER_H #define ICE_SSL_TRUST_MANAGER_H #include #include #include #include #include namespace IceSSL { class TrustManager : public IceUtil::Shared { public: TrustManager(const Ice::CommunicatorPtr&); bool verify(const ConnectionInfo&); private: bool match(const std::list< DistinguishedName> &, const DistinguishedName&) const; std::list parse(const std::string&) const; const Ice::CommunicatorPtr _communicator; int _traceLevel; std::list _all; std::list _client; std::list _allServer; std::map > _server; }; } #endif