* @param facility The log facility.
* @param message The message.
*/
-void Application::Log(LogSeverity severity, string facility, string message)
+void Application::Log(LogSeverity severity, const string& facility, const string& message)
{
char timestamp[100];
static void Shutdown(void);
- static void Log(LogSeverity severity, string facility, string message);
+ static void Log(LogSeverity severity, const string& facility, const string& message);
shared_ptr<Component> LoadComponent(const string& path,
const ConfigObject::Ptr& componentConfig);
return m_Data.size();
}
+/**
+ * Checks whether the dictionary contains the specified key.
+ *
+ * @param key The key.
+ * @returns true if the dictionary contains the key, false otherwise.
+ */
bool Dictionary::Contains(const string& key) const
{
return (m_Data.find(key) != m_Data.end());
{
InitializeOpenSSL();
- SSL_METHOD *sslMethod = (SSL_METHOD *)TLSv1_method();
-
- shared_ptr<SSL_CTX> sslContext = shared_ptr<SSL_CTX>(SSL_CTX_new(sslMethod), SSL_CTX_free);
+ shared_ptr<SSL_CTX> sslContext = shared_ptr<SSL_CTX>(SSL_CTX_new(TLSv1_method()), SSL_CTX_free);
SSL_CTX_set_mode(sslContext.get(), SSL_MODE_ENABLE_PARTIAL_WRITE | SSL_MODE_ACCEPT_MOVING_WRITE_BUFFER);