Verify server certificate

This commit is contained in:
badaix 2025-01-25 22:37:08 +01:00
parent 3d5744c6b0
commit b20bd90c03
5 changed files with 77 additions and 19 deletions

View file

@ -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)