Lines Matching refs:boost

140     boost::beast::file_posix file;  in verifyOpensslKeyCert()
141 boost::system::error_code ec; in verifyOpensslKeyCert()
142 file.open(filepath.c_str(), boost::beast::file_mode::read, ec); in verifyOpensslKeyCert()
261 boost::system::error_code ec; in writeCertificateToFile()
262 boost::beast::file_posix file; in writeCertificateToFile()
263 file.open(filepath.c_str(), boost::beast::file_mode::write, ec); in writeCertificateToFile()
490 static bool getSslContext(boost::asio::ssl::context& mSslContext, in getSslContext()
494 boost::asio::ssl::context::default_workarounds | in getSslContext()
495 boost::asio::ssl::context::no_sslv2 | in getSslContext()
496 boost::asio::ssl::context::no_sslv3 | in getSslContext()
497 boost::asio::ssl::context::single_dh_use | in getSslContext()
498 boost::asio::ssl::context::no_tlsv1 | in getSslContext()
499 boost::asio::ssl::context::no_tlsv1_1); in getSslContext()
506 boost::system::error_code ec; in getSslContext()
508 boost::asio::const_buffer buf(sslPemFile.data(), sslPemFile.size()); in getSslContext()
514 mSslContext.use_private_key(buf, boost::asio::ssl::context::pem, ec); in getSslContext()
531 std::shared_ptr<boost::asio::ssl::context> getSslServerContext() in getSslServerContext()
533 boost::asio::ssl::context sslCtx(boost::asio::ssl::context::tls_server); in getSslServerContext()
544 boost::asio::ssl::verify_mode mode = boost::asio::ssl::verify_none; in getSslServerContext()
548 mode |= boost::asio::ssl::verify_peer; in getSslServerContext()
549 mode |= boost::asio::ssl::verify_fail_if_no_peer_cert; in getSslServerContext()
563 mode |= boost::asio::ssl::verify_peer; in getSslServerContext()
566 boost::system::error_code ec; in getSslServerContext()
585 return std::make_shared<boost::asio::ssl::context>(std::move(sslCtx)); in getSslServerContext()
588 std::optional<boost::asio::ssl::context> getSSLClientContext( in getSSLClientContext()
593 boost::asio::ssl::context sslCtx(boost::asio::ssl::context::tls_client); in getSSLClientContext()
607 boost::system::error_code ec; in getSSLClientContext()
615 int mode = boost::asio::ssl::verify_peer; in getSSLClientContext()
618 mode = boost::asio::ssl::verify_none; in getSSLClientContext()