1 #include "wvdbusserver.h"
2 #include "wvstreamsdaemon.h"
3 #include "wvautoconf.h"
5 #include "wvsslstream.h"
7 #include "uniconfroot.h"
18 wv::bind(&WvDBusDaemon::cb,
this)),
19 log(
"WvDBusDaemon", WvLog::Debug), configfile(
"wvdbus.ini")
21 args.
add_option(
'c',
"config",
"Specify path to configuration file",
22 "FILENAME", configfile);
33 log(
"WvDBusDaemon starting.\n");
36 if (!cert && conf[
"cert"].exists() && conf[
"privrsa"].exists())
39 cert->
decode(WvX509::CertPEM, *conf[
"cert"]);
40 cert->
decode(WvRSAKey::RsaPEM, *conf[
"privrsa"]);
44 log(
"Certificate found in ini file, but failed to load!\n");
48 log(
"Certificate found in ini file, and loaded!\n");
53 for (i.rewind(); i.next(); )
67 return new WvSSLStream(IWvStream::create(s, obj), cert, 0,
true);
73 int main(
int argc,
char *argv[])