From 5905717229c512e975ca95715736db795f3105d2 Mon Sep 17 00:00:00 2001 From: "Maksym Ked (GitHub)" <41471947+mked-luxoft@users.noreply.github.com> Date: Thu, 29 Aug 2019 17:18:03 +0300 Subject: Feature/rpc message protection (#2951) * Added encryption required flag to policy table. Also added RPC Encryption Manager Interface for comfortable access to policy table. * Added logic for processing RPC according to the proposal. * The permission change notification has been expanded. * Fixed UTs after implementation feature RPC message protection. * Fix multiframe issue * Fix style * Added storage of encryption required rpcs * Fix CI build * Extended logic adding encryption flag in message helper * Added permission check of encryption required for PROP * Added permission check of encryption required for EXT * Fixes after rebase * Answer PR comments - fixed typos - fixed 3rd party cmake * fixup! Added logic for processing RPC according to the proposal. * fixup! The permission change notification has been expanded. * Answer PR comments - renamed functions - added encryption_required flag to sql_pt_ext* source files - added condition and logging to CacheManager::GetApplicationParams * fixup! Added logic for processing RPC according to the proposal. * fixup! Added encryption required flag to policy table. * fixup! Added permission check of encryption required for EXT * fixup! Added permission check of encryption required for PROP * Fixes after rebase --- src/components/protocol/src/raw_message.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/components/protocol') diff --git a/src/components/protocol/src/raw_message.cc b/src/components/protocol/src/raw_message.cc index daffd0f2bd..72eb82394b 100644 --- a/src/components/protocol/src/raw_message.cc +++ b/src/components/protocol/src/raw_message.cc @@ -40,12 +40,14 @@ RawMessage::RawMessage(uint32_t connection_key, uint32_t protocol_version, const uint8_t* const data_param, uint32_t data_sz, + bool protection, uint8_t type, uint32_t payload_size) : connection_key_(connection_key) , data_(NULL) , data_size_(data_sz) , protocol_version_(protocol_version) + , protection_(protection) , service_type_(ServiceTypeFromByte(type)) , payload_size_(payload_size) , waiting_(false) { @@ -87,6 +89,10 @@ bool RawMessage::IsWaiting() const { return waiting_; } +bool RawMessage::protection_flag() const { + return protection_; +} + void RawMessage::set_waiting(bool v) { waiting_ = v; } -- cgit v1.2.1