From fc6e95c57f8f7f0acc083daf15dbac828e627e20 Mon Sep 17 00:00:00 2001 From: deva Date: Mon, 4 Jan 2010 11:01:30 +0000 Subject: Added config, cli and compiletime check for ssl usage. Still needs to check is microhttpd has ssl support. --- server/src/configurationparser.cc | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) (limited to 'server/src/configurationparser.cc') diff --git a/server/src/configurationparser.cc b/server/src/configurationparser.cc index 8247a45..551e8da 100644 --- a/server/src/configurationparser.cc +++ b/server/src/configurationparser.cc @@ -133,6 +133,36 @@ void ConfigurationParser::reload() Conf::xml_basedir = p; } catch( ... ) { } + + try { + bool b = lookup("use_ssl"); + Conf::use_ssl = b; + } catch( ... ) { + } + + try { + std::string s = lookup("ssl_key"); + Conf::ssl_key = s; + } catch( ... ) { + } + + try { + std::string s = lookup("ssl_cert"); + Conf::ssl_cert = s; + } catch( ... ) { + } + + try { + int i = lookup("connection_limit"); + Conf::connection_limit = i; + } catch( ... ) { + } + + try { + int i = lookup("connection_timeout"); + Conf::connection_timeout = i; + } catch( ... ) { + } } #ifdef TEST_CONFIGURATIONPARSER -- cgit v1.2.3