mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-28 08:26:16 +02:00
Setup SSL context
This commit is contained in:
parent
6190041e86
commit
f7bd5e733f
4 changed files with 27 additions and 1 deletions
|
@ -25,6 +25,7 @@
|
|||
// 3rd party headers
|
||||
#include <boost/asio/io_context.hpp>
|
||||
#include <boost/asio/ip/tcp.hpp>
|
||||
#include <boost/asio/ssl.hpp>
|
||||
|
||||
// standard headers
|
||||
#include <memory>
|
||||
|
@ -64,6 +65,8 @@ private:
|
|||
void onNewSession(std::shared_ptr<ControlSession> session) override;
|
||||
void onNewSession(std::shared_ptr<StreamSession> session) override;
|
||||
|
||||
std::string getPassword() const;
|
||||
|
||||
mutable std::recursive_mutex session_mutex_;
|
||||
std::vector<std::weak_ptr<ControlSession>> sessions_;
|
||||
|
||||
|
@ -71,6 +74,7 @@ private:
|
|||
std::vector<acceptor_ptr> acceptor_http_;
|
||||
|
||||
boost::asio::io_context& io_context_;
|
||||
boost::asio::ssl::context ssl_context_;
|
||||
ServerSettings::Tcp tcp_settings_;
|
||||
ServerSettings::Http http_settings_;
|
||||
ControlMessageReceiver* controlMessageReceiver_;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue