Add ssl_options support to monerod's rpc mode.

This commit is contained in:
Lee Clagett 2019-05-22 00:09:11 -04:00
parent c9aaccf346
commit 3544596f9f
14 changed files with 160 additions and 140 deletions

View file

@ -324,7 +324,11 @@ int main(int argc, char const * argv[])
}
}
daemonize::t_command_server rpc_commands{rpc_ip, rpc_port, std::move(login)};
auto ssl_options = cryptonote::rpc_args::process_ssl(vm, true);
if (!ssl_options)
return 1;
daemonize::t_command_server rpc_commands{rpc_ip, rpc_port, std::move(login), std::move(*ssl_options)};
if (rpc_commands.process_command_vec(command))
{
return 0;