mirror of
https://github.com/badaix/snapcast.git
synced 2025-08-01 07:38:52 +02:00
Verify server certificate
This commit is contained in:
parent
3d5744c6b0
commit
b20bd90c03
5 changed files with 77 additions and 19 deletions
|
@ -23,6 +23,8 @@
|
|||
#include "player/pcm_device.hpp"
|
||||
|
||||
// standard headers
|
||||
#include <filesystem>
|
||||
#include <optional>
|
||||
#include <string>
|
||||
|
||||
|
||||
|
@ -64,6 +66,13 @@ struct ClientSettings
|
|||
std::string protocol;
|
||||
/// server port
|
||||
size_t port{1704};
|
||||
/// server certificate
|
||||
std::optional<std::filesystem::path> certificate;
|
||||
/// Is ssl in use?
|
||||
bool isSsl() const
|
||||
{
|
||||
return (protocol == "wss");
|
||||
}
|
||||
};
|
||||
|
||||
/// The audio player (DAC)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue