diff options
author | JackLivio <jack@livio.io> | 2020-09-28 15:30:13 -0400 |
---|---|---|
committer | JackLivio <jack@livio.io> | 2020-09-28 15:30:13 -0400 |
commit | d1b6f7817d191d976cf6ab0697e1dbd5e8b9acd7 (patch) | |
tree | d4c46fd3ed1e852d1b701ff7cee438e6fd74d5dd | |
parent | cadede9c9e7d20ca4a7049ad51fc42e6f14f6498 (diff) | |
download | sdl_core-fix/http_policy_table_update.tar.gz |
Parse PTU as array for http policiesfix/http_policy_table_update
-rw-r--r-- | src/components/policy/policy_regular/include/policy/policy_manager_impl.h | 2 | ||||
-rw-r--r-- | src/components/policy/policy_regular/src/policy_manager_impl.cc | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/components/policy/policy_regular/include/policy/policy_manager_impl.h b/src/components/policy/policy_regular/include/policy/policy_manager_impl.h index 307697dd64..dff4802d82 100644 --- a/src/components/policy/policy_regular/include/policy/policy_manager_impl.h +++ b/src/components/policy/policy_regular/include/policy/policy_manager_impl.h @@ -869,7 +869,7 @@ class PolicyManagerImpl : public PolicyManager { void ResetTimeout() OVERRIDE; protected: -#ifdef USE_HMI_PTU_DECRYPTION +#if defined USE_HMI_PTU_DECRYPTION && defined PROPRIETARY_MODE /** * @brief Parse policy table content and convert to PT object * @param pt_content binary content of PT diff --git a/src/components/policy/policy_regular/src/policy_manager_impl.cc b/src/components/policy/policy_regular/src/policy_manager_impl.cc index 36beeeb07f..daf043f96b 100644 --- a/src/components/policy/policy_regular/src/policy_manager_impl.cc +++ b/src/components/policy/policy_regular/src/policy_manager_impl.cc @@ -87,7 +87,7 @@ void PolicyManagerImpl::set_listener(PolicyListener* listener) { update_status_manager_.set_listener(listener); } -#ifdef USE_HMI_PTU_DECRYPTION +#if defined USE_HMI_PTU_DECRYPTION && defined PROPRIETARY_MODE std::shared_ptr<policy_table::Table> PolicyManagerImpl::Parse( const BinaryMessage& pt_content) { @@ -331,7 +331,7 @@ PolicyManager::PtProcessingResult PolicyManagerImpl::LoadPT( "PTU content is: " << std::string(pt_content.begin(), pt_content.end())); -#ifdef USE_HMI_PTU_DECRYPTION +#if defined USE_HMI_PTU_DECRYPTION && defined PROPRIETARY_MODE // Assuemes Policy Table was parsed, formatted, and/or decrypted by // the HMI after system request before calling OnReceivedPolicyUpdate // Parse message into table struct |