Lines Matching refs:ssl
487 static bool getSslContext(boost::asio::ssl::context& mSslContext, in getSslContext()
491 boost::asio::ssl::context::default_workarounds | in getSslContext()
492 boost::asio::ssl::context::no_sslv2 | in getSslContext()
493 boost::asio::ssl::context::no_sslv3 | in getSslContext()
494 boost::asio::ssl::context::single_dh_use | in getSslContext()
495 boost::asio::ssl::context::no_tlsv1 | in getSslContext()
496 boost::asio::ssl::context::no_tlsv1_1); in getSslContext()
506 mSslContext.use_certificate(buf, boost::asio::ssl::context::pem, ec); in getSslContext()
511 mSslContext.use_private_key(buf, boost::asio::ssl::context::pem, ec); in getSslContext()
535 std::shared_ptr<boost::asio::ssl::context> getSslServerContext() in getSslServerContext()
537 boost::asio::ssl::context sslCtx(boost::asio::ssl::context::tls_server); in getSslServerContext()
551 boost::asio::ssl::verify_mode mode = in getSslServerContext()
552 boost::asio::ssl::verify_peer | in getSslServerContext()
553 boost::asio::ssl::verify_fail_if_no_peer_cert; in getSslServerContext()
574 return std::make_shared<boost::asio::ssl::context>(std::move(sslCtx)); in getSslServerContext()
577 std::optional<boost::asio::ssl::context>
582 boost::asio::ssl::context sslCtx(boost::asio::ssl::context::tls_client); in getSSLClientContext()
604 int mode = boost::asio::ssl::verify_peer; in getSSLClientContext()
607 mode = boost::asio::ssl::verify_none; in getSSLClientContext()