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 | 53 |
1 files changed, 53 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 9825390c9c..5767e68ae4 100644 --- a/src/components/config_profile/include/config_profile/profile.h +++ b/src/components/config_profile/include/config_profile/profile.h @@ -358,6 +358,49 @@ class Profile : public utils::Singleton<Profile> { */ uint16_t tts_global_properties_timeout() const; +#ifdef ENABLE_SECURITY + /** + * @brief Returns name of Security Manager protocol + */ + const std::string& security_manager_protocol_name() const; + + /** + * @brief Returns SSL mode + */ + const std::string& ssl_mode() const; + + /** + * @brief Returns key path to pem file + */ + const std::string& key_path() const; + + /** + * @brief Returns certificate path to pem file + */ + const std::string& cert_path() const; + + /** + * @brief Returns ca certificate path to pem file + */ + const std::string& ca_cert_path() const; + + /** + * @brief Returns ciphers + */ + const std::string& ciphers_list() const; + + /** + * @brief Returns true if Mobile app certificate is verified + */ + bool verify_peer() const; + + /** + * @brief Return hours amount when PTU should be triggered + */ + uint32_t update_before_hours() const; + +#endif //ENABLE_SECURITY + /** * @brief Reads a string value from the profile * @@ -706,6 +749,16 @@ private: uint32_t application_list_update_timeout_; uint32_t max_thread_pool_size_; uint32_t default_hub_protocol_index_; +#ifdef ENABLE_SECURITY + std::string cert_path_; + std::string ca_cert_path_; + std::string ssl_mode_; + std::string key_path_; + std::string ciphers_list_; + bool verify_peer_; + uint32_t update_before_hours_; + std::string security_manager_protocol_name_; +#endif /* * first value is count of request |