Fix uses of lambdas on GCC < 7.1.0 (#1715)

See: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67274
This commit is contained in:
Devin Alexander Torres 2019-02-11 09:12:36 -06:00 committed by cryptocode
commit 46b34521f7

View file

@ -83,7 +83,7 @@ void nano::rpc_secure::load_certs (boost::asio::ssl::context & context_a)
context_a.set_verify_mode (boost::asio::ssl::verify_fail_if_no_peer_cert | boost::asio::ssl::verify_peer);
context_a.add_verify_path (config.secure.client_certs_path);
context_a.set_verify_callback ([this](auto preverified, auto & ctx) {
return on_verify_certificate (preverified, ctx);
return this->on_verify_certificate (preverified, ctx);
});
}
}