aboutsummaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2019-06-01 20:21:45 +0200
committerRiccardo Spagni <ric@spagni.net>2019-06-01 20:21:45 +0200
commit14d329564960a858d2e459cb3f067f0cf360f500 (patch)
treef80da399fb3d687864cf8a053dbcc459703a1c66 /src/common
parent42e2ed31ae726bc40ff6498bd386be43fc5d9e4f (diff)
parent9bfa4c20ca9df1df3966cb1f4c14f14b6e8c2202 (diff)
downloadmonzero-core-14d329564960a858d2e459cb3f067f0cf360f500.tar.gz
monzero-core-14d329564960a858d2e459cb3f067f0cf360f500.tar.xz
monzero-core-14d329564960a858d2e459cb3f067f0cf360f500.zip
Merge pull request #5561
9bfa4c20 Fix allow any cert mode in wallet rpc when configured over rpc (Lee Clagett) 3544596f Add ssl_options support to monerod's rpc mode. (Lee Clagett) c9aaccf3 Fix configuration bug; wallet2 --daemon-ssl-allow-any-cert now works. (Lee Clagett)
Diffstat (limited to 'src/common')
-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)
);
}