diff options
Diffstat (limited to 'src/components/policy/policy_external/include/policy/policy_types.h')
-rw-r--r-- | src/components/policy/policy_external/include/policy/policy_types.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/components/policy/policy_external/include/policy/policy_types.h b/src/components/policy/policy_external/include/policy/policy_types.h index 7247995f48..fcf6c33c1b 100644 --- a/src/components/policy/policy_external/include/policy/policy_types.h +++ b/src/components/policy/policy_external/include/policy/policy_types.h @@ -41,6 +41,7 @@ #include <utility> #include <vector> +#include "policy/policy_table/types.h" #include "transport_manager/common.h" #include "utils/helpers.h" @@ -87,6 +88,8 @@ typedef std::string Parameter; typedef std::string RpcName; typedef std::set<std::string> RPCParams; +typedef rpc::Optional<rpc::Boolean> EncryptionRequired; + typedef std::map<std::string, std::set<policy::HMILevel> > HMIPermissions; struct ParameterPermissions : std::map<std::string, std::set<policy::Parameter> > { @@ -102,6 +105,7 @@ struct ParameterPermissions struct RpcPermissions { HMIPermissions hmi_permissions; ParameterPermissions parameter_permissions; + EncryptionRequired require_encryption; }; typedef std::map<RpcName, RpcPermissions> Permissions; @@ -508,7 +512,8 @@ enum PermissionsCheckResult { RESULT_CONSENT_NOT_REQIURED, RESULT_PERMISSIONS_REVOKED_AND_CONSENT_NEEDED, RESULT_REQUEST_TYPE_CHANGED, - RESULT_REQUEST_SUBTYPE_CHANGED + RESULT_REQUEST_SUBTYPE_CHANGED, + RESULT_ENCRYPTION_REQUIRED_FLAG_CHANGED, }; /** |