aboutsummaryrefslogtreecommitdiff
path: root/src/common/rpc_client.h
diff options
context:
space:
mode:
authorLee Clagett <code@leeclagett.com>2019-05-22 00:09:11 -0400
committerLee Clagett <code@leeclagett.com>2019-05-21 16:17:34 +0000
commitfafc5c3692fb1579bf6b2cfa75dec70d3f51ae4c (patch)
tree53682b9938afd27cd81d5d7cbf945e9c4bec7a99 /src/common/rpc_client.h
parentFix configuration bug; wallet2 --daemon-ssl-allow-any-cert now works. (diff)
downloadmonero-fafc5c3692fb1579bf6b2cfa75dec70d3f51ae4c.tar.xz
Add ssl_options support to monerod's rpc mode.
Diffstat (limited to '')
-rw-r--r--src/common/rpc_client.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/common/rpc_client.h b/src/common/rpc_client.h
index cb5f79da8..dab3e562d 100644
--- a/src/common/rpc_client.h
+++ b/src/common/rpc_client.h
@@ -36,6 +36,7 @@
#include "storages/http_abstract_invoke.h"
#include "net/http_auth.h"
#include "net/http_client.h"
+#include "net/net_ssl.h"
#include "string_tools.h"
namespace tools
@@ -49,11 +50,12 @@ namespace tools
uint32_t ip
, uint16_t port
, boost::optional<epee::net_utils::http::login> user
+ , epee::net_utils::ssl_options_t ssl_options
)
: m_http_client{}
{
m_http_client.set_server(
- epee::string_tools::get_ip_string_from_int32(ip), std::to_string(port), std::move(user)
+ epee::string_tools::get_ip_string_from_int32(ip), std::to_string(port), std::move(user), std::move(ssl_options)
);
}