Home
last modified time | relevance | path

Searched refs:DeviceIdentify (Results 1 – 25 of 47) sorted by relevance

12

/base/security/device_security_level/test/dslm_unit_test/
Ddslm_msg_interface_mock.h36 …virtual uint64_t SendMsgTo(const Messenger *messenger, uint64_t transNo, const DeviceIdentify *dev…
39 …virtual bool GetDeviceOnlineStatus(const Messenger *messenger, const DeviceIdentify *devId, uint32…
41 …virtual bool GetSelfDeviceIdentify(const Messenger *messenger, DeviceIdentify *devId, uint32_t *de…
51 …HOD5(SendMsgTo, uint64_t(const Messenger *messenger, uint64_t transNo, const DeviceIdentify *devId,
54 bool(const Messenger *messenger, const DeviceIdentify *devId, uint32_t *devType));
55 …MOCK_METHOD3(GetSelfDeviceIdentify, bool(const Messenger *messenger, DeviceIdentify *devId, uint32…
58 void MakeSelfDeviceId(const DeviceIdentify *devId) const;
59 void MakeDeviceOnline(const DeviceIdentify *devId) const;
60 void MakeDeviceOffline(const DeviceIdentify *devId) const;
61 … void MakeMsgReceivedFrom(const DeviceIdentify *devId, const uint8_t *msg, uint32_t msgLen) const;
Ddslm_msg_interface_mock.cpp29 extern int32_t OnPeerMsgReceived(const DeviceIdentify *devId, const uint8_t *msg, uint32_t len);
30 extern int32_t OnSendResultNotifier(const DeviceIdentify *devId, uint64_t transNo, uint32_t result);
31 extern int32_t OnPeerStatusReceiver(const DeviceIdentify *deviceId, uint32_t status, uint32_t devTy…
55 … auto loopback = [this](const Messenger *messenger, uint64_t transNo, const DeviceIdentify *devId, in MakeMsgLoopback()
64 void DslmMsgInterfaceMock::MakeSelfDeviceId(const DeviceIdentify *self) const in MakeSelfDeviceId()
66 …auto loopback = [this, self](const Messenger *messenger, DeviceIdentify *devId, uint32_t *devType)… in MakeSelfDeviceId()
74 void DslmMsgInterfaceMock::MakeDeviceOnline(const DeviceIdentify *devId) const in MakeDeviceOnline()
79 void DslmMsgInterfaceMock::MakeDeviceOffline(const DeviceIdentify *devId) const in MakeDeviceOffline()
84 void DslmMsgInterfaceMock::MakeMsgReceivedFrom(const DeviceIdentify *devId, const uint8_t *msg, uin… in MakeMsgReceivedFrom()
108 uint64_t SendMsgToImpl(const Messenger *messenger, uint64_t transNo, const DeviceIdentify *devId, c… in SendMsgToImpl()
[all …]
Ddslm_rpc_process_test.cpp26 extern "C" int32_t OnPeerMsgReceived(const DeviceIdentify *devId, const uint8_t *msg, uint32_t len);
27 extern "C" int32_t OnSendResultNotifier(const DeviceIdentify *devId, uint64_t transNo, uint32_t res…
61 const DeviceIdentify identify = {DEVICE_ID_MAX_LEN, {0}};
79 const DeviceIdentify identify = {DEVICE_ID_MAX_LEN, {0}};
97 const DeviceIdentify identify = {DEVICE_ID_MAX_LEN, {0}};
112 const DeviceIdentify identify = {DEVICE_ID_MAX_LEN, {0}};
127 const DeviceIdentify identify = {DEVICE_ID_MAX_LEN, {0}};
142 const DeviceIdentify identify = {DEVICE_ID_MAX_LEN, {0}};
169 …auto fillUpDeviceIdentify = [](DeviceIdentify *identify) { identify->length = DEVICE_ID_MAX_LEN; }; in __anon6b2245570102()
/base/security/device_security_level/services/include/
Ddslm_messenger_wrapper.h31 typedef int32_t (*MessageReceiver)(const DeviceIdentify *devId, const uint8_t *msg, uint32_t len);
33 typedef int32_t (*StatusReceiver)(const DeviceIdentify *devId, uint32_t status, uint32_t devType);
35 typedef int32_t (*SendResultNotifier)(const DeviceIdentify *devId, uint64_t transNo, uint32_t resul…
37 typedef int32_t (*DeviceProcessor)(const DeviceIdentify *devId, uint32_t devType, void *para);
39 void SendMsgToDevice(uint64_t transNo, const DeviceIdentify *devId, const uint8_t *msg, uint32_t ms…
48 bool GetPeerDeviceOnlineStatus(const DeviceIdentify *devId, uint32_t *devType);
50 const DeviceIdentify *GetSelfDevice(uint32_t *devType);
Ddslm_core_process.h30 int32_t OnPeerMsgRequestInfoReceived(const DeviceIdentify *deviceId, const uint8_t *msg, uint32_t l…
32 int32_t OnPeerMsgResponseInfoReceived(const DeviceIdentify *deviceId, const uint8_t *msg, uint32_t …
34 int32_t OnRequestDeviceSecLevelInfo(const DeviceIdentify *deviceId, const RequestOption *option, ui…
37 int32_t OnMsgSendResultNotifier(const DeviceIdentify *deviceId, uint64_t transNo, uint32_t result);
39 int32_t OnPeerStatusReceiver(const DeviceIdentify *deviceId, uint32_t status, uint32_t devType);
/base/security/device_security_level/baselib/msglib/include/
Dmessenger.h28 typedef struct DeviceIdentify { struct
31 } DeviceIdentify; argument
34 typedef int32_t (*DeviceMessageReceiver)(const DeviceIdentify *devId, const uint8_t *msg, uint32_t …
36 typedef int32_t (*DeviceStatusReceiver)(const DeviceIdentify *devId, uint32_t status, uint32_t devT…
38 typedef int32_t (*MessageSendResultNotifier)(const DeviceIdentify *devId, uint64_t transNo, uint32_…
40 typedef int32_t (*DeviceProcessor)(const DeviceIdentify *devId, uint32_t devType, void *para);
81 void SendMsgTo(const Messenger *messenger, uint64_t transNo, const DeviceIdentify *devId, const uin…
84 bool GetDeviceOnlineStatus(const Messenger *messenger, const DeviceIdentify *devId, uint32_t *devTy…
86 bool GetSelfDeviceIdentify(const Messenger *messenger, DeviceIdentify *devId, uint32_t *devType);
90 bool GetDeviceStatisticInfo(const Messenger *messenger, const DeviceIdentify *devId, StatisticInfor…
/base/security/device_security_level/services/dslm/
Ddslm_device_list.h34 DslmDeviceInfo *CreatOrGetDslmDeviceInfo(const DeviceIdentify *device);
36 DslmDeviceInfo *GetDslmDeviceInfo(const DeviceIdentify *device);
38 bool IsSameDevice(const DeviceIdentify *first, const DeviceIdentify *second);
Ddslm_core_process.c49 static const DeviceIdentify *RefreshDeviceOnlineStatus(const DeviceIdentify *deviceId);
51 int32_t OnPeerMsgRequestInfoReceived(const DeviceIdentify *deviceId, const uint8_t *msg, uint32_t l… in OnPeerMsgRequestInfoReceived()
88 int32_t OnPeerMsgResponseInfoReceived(const DeviceIdentify *deviceId, const uint8_t *msg, uint32_t … in OnPeerMsgResponseInfoReceived()
111 int32_t OnMsgSendResultNotifier(const DeviceIdentify *deviceId, uint64_t transNo, uint32_t result) in OnMsgSendResultNotifier()
138 int32_t OnRequestDeviceSecLevelInfo(const DeviceIdentify *deviceId, const RequestOption *option, ui… in OnRequestDeviceSecLevelInfo()
151 const DeviceIdentify *curr = RefreshDeviceOnlineStatus(deviceId); in OnRequestDeviceSecLevelInfo()
182 int32_t OnPeerStatusReceiver(const DeviceIdentify *deviceId, uint32_t status, uint32_t devType) in OnPeerStatusReceiver()
202 const DeviceIdentify *device = GetSelfDevice(&devType); in InitSelfDeviceSecureLevel()
267 static const DeviceIdentify *RefreshDeviceOnlineStatus(const DeviceIdentify *deviceId) in RefreshDeviceOnlineStatus()
Ddslm_device_list.c60 DslmDeviceInfo *GetDslmDeviceInfo(const DeviceIdentify *device) in GetDslmDeviceInfo()
81 DslmDeviceInfo *CreatOrGetDslmDeviceInfo(const DeviceIdentify *device) in CreatOrGetDslmDeviceInfo()
106 if (memcpy_s(&info->identity, sizeof(DeviceIdentify), device, sizeof(DeviceIdentify)) != EOK) { in CreatOrGetDslmDeviceInfo()
125 bool IsSameDevice(const DeviceIdentify *first, const DeviceIdentify *second) in IsSameDevice()
Ddslm_credential.h28 int32_t DefaultRequestDslmCred(const DeviceIdentify *device, const RequestObject *obj, DslmCredBuff…
30 int32_t DefaultVerifyDslmCred(const DeviceIdentify *device, uint64_t challenge, const DslmCredBuff …
/base/security/device_security_level/baselib/msglib/src/standard/
Dmessenger_device_status_manager.h38 bool MessengerGetDeviceOnlineStatus(const DeviceIdentify *devId, uint32_t *devType);
40 bool MessengerGetSelfDeviceIdentify(DeviceIdentify *devId, uint32_t *devType);
44 bool MessengerGetNetworkIdByDeviceIdentify(const DeviceIdentify *devId, char *networkId, uint32_t l…
46 bool MessengerGetDeviceIdentifyByNetworkId(const char *networkId, DeviceIdentify *devId);
Dmessenger_device_status_manager.cpp38 …using StateReceiver = std::function<int32_t(const DeviceIdentify *devId, uint32_t status, uint32_t…
109 DeviceIdentify identity = {DEVICE_ID_MAX_LEN, {0}}; in MessengerOnNodeStateChange()
117 …static void ProcessDeviceStatusReceiver(const DeviceIdentify *devId, uint32_t status, uint32_t dev… in ProcessDeviceStatusReceiver()
130 DeviceIdentify srcIdentity {0, {0}}; in ProcessDeviceStatusReceiver()
174 static bool MessengerConvertNodeToIdentity(const std::string &networkId, DeviceIdentify &devId) in MessengerConvertNodeToIdentity()
186 static_cast<void>(memset_s(&devId, sizeof(DeviceIdentify), 0, sizeof(DeviceIdentify))); in MessengerConvertNodeToIdentity()
199 static bool MessengerGetDeviceNodeBasicInfo(const DeviceIdentify &devId, DmDeviceInfo &info) in MessengerGetDeviceNodeBasicInfo()
212 DeviceIdentify curr = {DEVICE_ID_MAX_LEN, {0}}; in MessengerGetDeviceNodeBasicInfo()
273 auto process = [](const DeviceIdentify *devId, uint32_t devType, void *para) -> int32_t { in InitDeviceStatusManager()
294 bool MessengerGetDeviceOnlineStatus(const DeviceIdentify *devId, uint32_t *devType) in MessengerGetDeviceOnlineStatus()
[all …]
Dmessenger_device_session_manager.c51 DeviceIdentify srcIdentity;
59 DeviceIdentify destIdentity;
68 DeviceIdentify identity;
111 static void OnSessionMessageReceived(const DeviceIdentify *devId, const uint8_t *msg, uint32_t msgL… in OnSessionMessageReceived()
130 … = (uint32_t)memcpy_s(&queueData->srcIdentity, sizeof(DeviceIdentify), devId, sizeof(DeviceIdentif… in OnSessionMessageReceived()
151 static bool GetDeviceIdentityFromSessionId(int sessionId, DeviceIdentify *identity, uint32_t *maskI… in GetDeviceIdentityFromSessionId()
186 DeviceIdentify identity = {DEVICE_ID_MAX_LEN, {0}}; in MessengerOnSessionOpened()
201 … (void)memcpy_s(&sessionInfo->identity, sizeof(DeviceIdentify), &identity, sizeof(DeviceIdentify)); in MessengerOnSessionOpened()
259 DeviceIdentify identity = {DEVICE_ID_MAX_LEN, {0}}; in MessengerOnBytesReceived()
361 static bool GetOpenedSessionId(const DeviceIdentify *devId, int32_t *sessionId) in GetOpenedSessionId()
[all …]
Dmessenger_impl.c96 void SendMsgToImpl(const Messenger *messenger, uint64_t transNo, const DeviceIdentify *devId, const… in SendMsgToImpl()
106 bool GetDeviceOnlineStatusImpl(const Messenger *messenger, const DeviceIdentify *devId, uint32_t *d… in GetDeviceOnlineStatusImpl()
116 bool GetSelfDeviceIdentifyImpl(const Messenger *messenger, DeviceIdentify *devId, uint32_t *devType) in GetSelfDeviceIdentifyImpl()
136 bool GetDeviceStatisticInfoImpl(const Messenger *messenger, const DeviceIdentify *devId, StatisticI… in GetDeviceStatisticInfoImpl()
Dmessenger_utils.h61 static inline bool IsSameDevice(const DeviceIdentify *left, const DeviceIdentify *right) in IsSameDevice()
/base/security/device_security_level/baselib/msglib/src/
Dmessenger_impl.h29 void SendMsgToImpl(const Messenger *messenger, uint64_t transNo, const DeviceIdentify *devId, const…
34 bool GetDeviceOnlineStatusImpl(const Messenger *messenger, const DeviceIdentify *devId, uint32_t *d…
37 bool GetSelfDeviceIdentifyImpl(const Messenger *messenger, DeviceIdentify *devId, uint32_t *devType)
43 bool GetDeviceStatisticInfoImpl(const Messenger *messenger, const DeviceIdentify *devId, StatisticI…
Dmessenger.c34 void SendMsgTo(const Messenger *messenger, uint64_t transNo, const DeviceIdentify *devId, const uin… in SendMsgTo()
40 bool GetDeviceOnlineStatus(const Messenger *messenger, const DeviceIdentify *devId, uint32_t *devTy… in GetDeviceOnlineStatus()
45 bool GetSelfDeviceIdentify(const Messenger *messenger, DeviceIdentify *devId, uint32_t *devType) in GetSelfDeviceIdentify()
55 bool GetDeviceStatisticInfo(const Messenger *messenger, const DeviceIdentify *devId, StatisticInfor… in GetDeviceStatisticInfo()
/base/security/device_security_level/interfaces/inner_api/include/
Ddevice_security_info.h32 typedef void DeviceSecurityInfoCallback(const DeviceIdentify *identify, struct DeviceSecurityInfo *…
42 int32_t RequestDeviceSecurityInfo(const DeviceIdentify *identify, const RequestOption *option,
53 int32_t RequestDeviceSecurityInfoAsync(const DeviceIdentify *identify, const RequestOption *option,
Ddevice_security_defines.h27 typedef struct DeviceIdentify { struct
30 } DeviceIdentify; typedef
/base/security/device_security_level/baselib/msglib/src/lite/
Dmessenger_device_status_manager.c31 static int32_t InitDeviceOnlineProcessor(const DeviceIdentify *devId, uint32_t devType, void *para);
41 DeviceIdentify srcIdentity;
83 static void ProcessDeviceStatusReceiver(const DeviceIdentify *devId, uint32_t status, uint32_t devT… in ProcessDeviceStatusReceiver()
105 …t ret = (uint32_t)memcpy_s(&data->srcIdentity, sizeof(DeviceIdentify), devId, sizeof(DeviceIdentif… in ProcessDeviceStatusReceiver()
136 DeviceIdentify identity = {0, {0}}; in MessengerOnNodeStateChange()
164 static int32_t InitDeviceOnlineProcessor(const DeviceIdentify *devId, uint32_t devType, void *para) in InitDeviceOnlineProcessor()
218 static bool MessengerConvertNodeToIdentity(const NodeBasicInfo *node, DeviceIdentify *devId) in MessengerConvertNodeToIdentity()
239 bool MessengerGetDeviceNodeBasicInfo(const DeviceIdentify *devId, NodeBasicInfo *info) in MessengerGetDeviceNodeBasicInfo()
258 DeviceIdentify curr = {DEVICE_ID_MAX_LEN, {0}}; in MessengerGetDeviceNodeBasicInfo()
277 bool MessengerGetDeviceOnlineStatus(const DeviceIdentify *devId, uint32_t *devType) in MessengerGetDeviceOnlineStatus()
[all …]
/base/security/device_security_level/interfaces/inner_api/src/standard/
Ddevice_security_info.cpp31 static int32_t RequestDeviceSecurityInfoAsyncImpl(const DeviceIdentify *identify, const RequestOpti… in RequestDeviceSecurityInfoAsyncImpl()
75 static int32_t RequestDeviceSecurityInfoImpl(const DeviceIdentify *identify, const RequestOption *o… in RequestDeviceSecurityInfoImpl()
80 auto callback = [&promise](const DeviceIdentify *identify, struct DeviceSecurityInfo *info) { in RequestDeviceSecurityInfoImpl()
118 int32_t RequestDeviceSecurityInfo(const DeviceIdentify *identify, const RequestOption *option, in RequestDeviceSecurityInfo()
124 int32_t RequestDeviceSecurityInfoAsync(const DeviceIdentify *identify, const RequestOption *option, in RequestDeviceSecurityInfoAsync()
Ddevice_security_level_callback_helper.h43 bool Publish(const DeviceIdentify &identity, const ResultCallback &callback, uint32_t keep,
50 DeviceIdentify identity;
58 … bool PushCallback(const DeviceIdentify &identity, const ResultCallback &callback, uint32_t keep,
/base/security/device_security_level/services/msg/
Ddslm_messenger_wrapper.c75 void SendMsgToDevice(uint64_t transNo, const DeviceIdentify *devId, const uint8_t *msg, uint32_t ms… in SendMsgToDevice()
87 bool GetPeerDeviceOnlineStatus(const DeviceIdentify *devId, uint32_t *devType) in GetPeerDeviceOnlineStatus()
103 const DeviceIdentify *GetSelfDevice(uint32_t *devType) in GetSelfDevice()
107 static DeviceIdentify deviceId = {0, {0}}; in GetSelfDevice()
/base/security/device_security_level/
DREADME_ZH.md69 | int32_t RequestDeviceSecurityInfo(const DeviceIdentify \*identify, const RequestOption \*option, …
70 | int32_t RequestDeviceSecurityInfoAsync(const DeviceIdentify \*identify, const RequestOption \*opt…
98 void CheckDestDeviceSecurityLevel(const DeviceIdentify *device, RequestOption *option)
135 void DeviceSecurityInfoCallback(const DeviceIdentify *identify, struct DeviceSecurityInfo *info)
158 void CheckDestDeviceSecurityLevelAsync(const DeviceIdentify *device, RequestOption *option)
/base/security/dataclassification/interfaces/innerkits/datatransmitmgr/include/
Ddev_slinfo_adpt.h33 typedef int32_t (*RequestDeviceSecurityInfoFunction)(const DeviceIdentify *identify,
37 typedef int32_t (*RequestDeviceSecurityInfoAsyncFunction)(const DeviceIdentify *identify,

12