// ********************************************************************** // // Copyright (c) 2001 // Mutable Realms, Inc. // Huntsville, AL, USA // // All Rights Reserved // // ********************************************************************** #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(std::string&, std::string&); protected: SslProtocol _sslVersion; int _verifyMode; int _verifyDepth; std::string _context; std::string _cipherList; std::string _randomBytesFiles; void parseVersion(std::string&); void parseVerifyMode(std::string&); }; template inline Stream& operator << (Stream& target, const GeneralConfig& generalConfig) { target << "Protocol: " << generalConfig.getProtocol() << std::endl; target << "Verify Mode: " << generalConfig.getVerifyMode() << std::endl; target << "Verify Depth: " << generalConfig.getVerifyDepth() << std::endl; target << "Context: " << generalConfig.getContext() << std::endl; target << "Cipher List: " << generalConfig.getCipherList() << std::endl; target << "Random Bytes: " << generalConfig.getRandomBytesFiles() << std::endl; return target; } } #endif