diff options
author | JackLivio <jack@livio.io> | 2020-09-28 13:38:18 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-28 16:38:18 -0400 |
commit | 620b9d7c19a5c2884f9f59eb9d876a44b10ba646 (patch) | |
tree | d4c46fd3ed1e852d1b701ff7cee438e6fd74d5dd /src | |
parent | cadede9c9e7d20ca4a7049ad51fc42e6f14f6498 (diff) | |
download | sdl_core-620b9d7c19a5c2884f9f59eb9d876a44b10ba646.tar.gz |
Parse PTU as array for http policies (#3521)
Diffstat (limited to 'src')
-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 |