diff options
Diffstat (limited to 'src/components/config_profile/include/config_profile/profile.h')
-rw-r--r-- | src/components/config_profile/include/config_profile/profile.h | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/src/components/config_profile/include/config_profile/profile.h b/src/components/config_profile/include/config_profile/profile.h index 5489a962e8..76c66c7c7b 100644 --- a/src/components/config_profile/include/config_profile/profile.h +++ b/src/components/config_profile/include/config_profile/profile.h @@ -413,6 +413,40 @@ class Profile : public protocol_handler::ProtocolHandlerSettings, const std::string& transport_manager_tcp_adapter_network_interface() const OVERRIDE; +#ifdef WEBSOCKET_SERVER_TRANSPORT_SUPPORT + /** + * @brief Returns websocket server address + */ + const std::string& websocket_server_address() const OVERRIDE; + + /** + * @brief Returns port for websocket server + */ + uint16_t websocket_server_port() const OVERRIDE; +#ifdef ENABLE_SECURITY + /** + * @brief Returns ws server certificate path to pem file + */ + const std::string& ws_server_cert_path() const OVERRIDE; + + /** + * @brief Returns ws server CA certificate path to pem file + */ + const std::string& ws_server_ca_cert_path() const OVERRIDE; + + /** + * @brief Returns ws server key path to pem file + */ + const std::string& ws_server_key_path() const OVERRIDE; + + /** + * @brief Returns bool flag indicating whether WSS settings were setup + * correctly + */ + const bool wss_server_supported() const OVERRIDE; +#endif // ENABLE_SECURITY +#endif // WEBSOCKET_SERVER_TRANSPORT_SUPPORT + /** * @brief Returns retry timeout for cloud app connections */ @@ -991,6 +1025,16 @@ class Profile : public protocol_handler::ProtocolHandlerSettings, std::string system_files_path_; uint16_t transport_manager_tcp_adapter_port_; std::string transport_manager_tcp_adapter_network_interface_; +#ifdef WEBSOCKET_SERVER_TRANSPORT_SUPPORT + std::string websocket_server_address_; + uint16_t websocket_server_port_; +#ifdef ENABLE_SECURITY + std::string ws_server_cert_path_; + std::string ws_server_ca_cert_path_; + std::string ws_server_key_path_; + bool is_wss_settings_setup_; +#endif // ENABLE_SECURITY +#endif // WEBSOCKET_SERVER_TRANSPORT_SUPPORT uint32_t cloud_app_retry_timeout_; uint16_t cloud_app_max_retry_attempts_; std::vector<uint8_t> bluetooth_uuid_; |