// ********************************************************************** // // Copyright (c) 2003-2005 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_GENERAL_CONFIG_H #define ICE_SSL_GENERAL_CONFIG_H #include namespace IceSSL { class GeneralConfig { public: GeneralConfig(); SslProtocol getProtocol() const; int getVerifyMode() const; int getVerifyDepth() const; std::string getContext() const; std::string getCipherList() const; std::string getRandomBytesFiles() const; // General method - it will figure out how to properly parse the data. void set(const std::string&, const std::string&); protected: SslProtocol _sslVersion; int _verifyMode; int _verifyDepth; std::string _context; std::string _cipherList; std::string _randomBytesFiles; void parseVersion(const std::string&); void parseVerifyMode(const std::string&); }; template inline Stream& operator << (Stream& target, const GeneralConfig& generalConfig) { target << "Protocol: " << generalConfig.getProtocol() << "\n"; target << "Verify Mode: " << generalConfig.getVerifyMode() << "\n"; target << "Verify Depth: " << generalConfig.getVerifyDepth() << "\n"; target << "Context: " << generalConfig.getContext() << "\n"; target << "Cipher List: " << generalConfig.getCipherList() << "\n"; target << "Random Bytes: " << generalConfig.getRandomBytesFiles() << "\n"; return target; } } #endif