fix move semantics of Ref
This commit is contained in:
@@ -22,13 +22,13 @@ using namespace std::literals;
|
||||
|
||||
static auto start(boost::asio::io_context &io, const Settings &settings) -> void
|
||||
{
|
||||
X509_Ref cert;
|
||||
Ref<X509> cert;
|
||||
if (settings.use_tls && not settings.tls_certfile.empty())
|
||||
{
|
||||
cert = cert_from_file(settings.tls_certfile);
|
||||
}
|
||||
|
||||
EVP_PKEY_Ref key;
|
||||
Ref<EVP_PKEY> key;
|
||||
if (settings.use_tls && not settings.tls_keyfile.empty())
|
||||
{
|
||||
key = key_from_file(settings.tls_keyfile, "");
|
||||
|
Reference in New Issue
Block a user