/base/security/device_security_level/test/dslm_unit_test/ |
D | dslm_msg_interface_mock.h | 36 …virtual uint64_t SendMsgTo(const Messenger *messenger, uint64_t transNo, const DeviceIdentify *dev… 39 …virtual bool GetDeviceOnlineStatus(const Messenger *messenger, const DeviceIdentify *devId, int32_… 41 …virtual bool GetSelfDeviceIdentify(const Messenger *messenger, DeviceIdentify *devId, int32_t *lev… 51 …HOD5(SendMsgTo, uint64_t(const Messenger *messenger, uint64_t transNo, const DeviceIdentify *devId, 54 bool(const Messenger *messenger, const DeviceIdentify *devId, int32_t *level)); 55 …MOCK_METHOD3(GetSelfDeviceIdentify, bool(const Messenger *messenger, DeviceIdentify *devId, int32_… 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;
|
D | dslm_msg_interface_mock.cpp | 29 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, int32_t level); 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, int32_t *level) { 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 …]
|
D | dslm_rpc_process_test.cpp | 26 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 __anon8d6221820102()
|
/base/security/device_security_level/baselib/msglib/include/ |
D | messenger.h | 28 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, int32_t level… 38 typedef int32_t (*MessageSendResultNotifier)(const DeviceIdentify *devId, uint64_t transNo, uint32_… 40 typedef int32_t (*DeviceProcessor)(const DeviceIdentify *devId, int32_t level, void *para); 86 void SendMsgTo(const Messenger *messenger, uint64_t transNo, const DeviceIdentify *devId, const uin… 89 bool GetDeviceOnlineStatus(const Messenger *messenger, const DeviceIdentify *devId, int32_t *level); 91 bool GetSelfDeviceIdentify(const Messenger *messenger, DeviceIdentify *devId, int32_t *level); 95 bool GetDeviceStatisticInfo(const Messenger *messenger, const DeviceIdentify *devId, StatisticInfor…
|
/base/security/device_security_level/services/include/ |
D | dslm_messenger_wrapper.h | 31 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, int32_t level); 35 typedef int32_t (*SendResultNotifier)(const DeviceIdentify *devId, uint64_t transNo, uint32_t resul… 37 typedef int32_t (*DeviceProcessor)(const DeviceIdentify *devId, int32_t level, void *para); 39 void SendMsgToDevice(uint64_t transNo, const DeviceIdentify *devId, const uint8_t *msg, uint32_t ms… 48 bool GetPeerDeviceOnlineStatus(const DeviceIdentify *devId, int32_t *level); 50 const DeviceIdentify *GetSelfDevice(int32_t *level);
|
D | dslm_core_process.h | 30 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, int32_t level);
|
/base/security/device_security_level/test/dslm_fuzz_test/dslm_fuzzer/ |
D | dslm_fuzzer.cpp | 50 extern "C" int32_t OnPeerMsgReceived(const DeviceIdentify *devId, const uint8_t *msg, uint32_t len); 51 extern "C" int32_t OnSendResultNotifier(const DeviceIdentify *devId, uint64_t transNo, uint32_t res… 52 extern "C" bool MessengerGetDeviceOnlineStatus(const DeviceIdentify *devId, int32_t *level); 95 void (*process)(DeviceIdentify *deviceIdentify, Parcel &parcel); 98 void OnPeerMsgReceivedTest1(DeviceIdentify *deviceIdentify, Parcel &parcel) in OnPeerMsgReceivedTest1() 106 void OnPeerMsgReceivedTest2(DeviceIdentify *deviceIdentify, Parcel &parcel) in OnPeerMsgReceivedTest2() 114 void OnPeerMsgReceivedTest3(DeviceIdentify *deviceIdentify, Parcel &parcel) in OnPeerMsgReceivedTest3() 125 void ServiceTest(DeviceIdentify *deviceIdentify, Parcel &parcel) in ServiceTest() 132 static DeviceIdentify self = {0, {0}}; in ServiceTest() 144 void OnSendResultNotifierTest(DeviceIdentify *deviceIdentify, Parcel &parcel) in OnSendResultNotifierTest() [all …]
|
/base/security/security_guard/interfaces/inner_api/obtaindata/test/unittest/src/ |
D | obtaindata_kit_test.cpp | 28 int32_t RequestSecurityModelResultAsync(const DeviceIdentify *devId, uint32_t modelId, 58 void ObtainDataKitTest::RequestSecurityEventInfoCallBackFunc(const DeviceIdentify *devId, const cha… in RequestSecurityEventInfoCallBackFunc() 73 DeviceIdentify deviceIdentify = {}; 87 DeviceIdentify deviceIdentify = {}; 101 DeviceIdentify deviceIdentify = {}; 115 DeviceIdentify deviceIdentify = {}; 129 DeviceIdentify deviceIdentify = {}; 143 DeviceIdentify deviceIdentify = {}; 170 DeviceIdentify deviceIdentify = {};
|
/base/security/device_security_level/services/dslm/ |
D | dslm_device_list.h | 34 DslmDeviceInfo *CreatOrGetDslmDeviceInfo(const DeviceIdentify *device); 36 DslmDeviceInfo *GetDslmDeviceInfo(const DeviceIdentify *device); 40 bool IsSameDevice(const DeviceIdentify *first, const DeviceIdentify *second);
|
D | dslm_core_process.c | 49 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, int32_t level) in OnPeerStatusReceiver() 202 const DeviceIdentify *device = GetSelfDevice(&level); in InitSelfDeviceSecureLevel() 271 static const DeviceIdentify *RefreshDeviceOnlineStatus(const DeviceIdentify *deviceId) in RefreshDeviceOnlineStatus()
|
D | dslm_device_list.c | 60 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()
|
/base/security/device_security_level/baselib/msglib/src/common/ |
D | messenger_device_status_manager.h | 38 bool MessengerGetDeviceOnlineStatus(const DeviceIdentify *devId, int32_t *level); 40 bool MessengerGetSelfDeviceIdentify(DeviceIdentify *devId, int32_t *level); 44 bool MessengerGetNetworkIdByDeviceIdentify(const DeviceIdentify *devId, char *networkId, uint32_t l… 46 bool MessengerGetDeviceIdentifyByNetworkId(const char *networkId, DeviceIdentify *devId);
|
D | messenger_impl.h | 29 void SendMsgToImpl(const Messenger *messenger, uint64_t transNo, const DeviceIdentify *devId, const… 34 bool GetDeviceOnlineStatusImpl(const Messenger *messenger, const DeviceIdentify *devId, int32_t *le… 36 bool GetSelfDeviceIdentifyImpl(const Messenger *messenger, DeviceIdentify *devId, int32_t *level); 40 bool GetDeviceStatisticInfoImpl(const Messenger *messenger, const DeviceIdentify *devId, StatisticI…
|
D | messenger.c | 34 void SendMsgTo(const Messenger *messenger, uint64_t transNo, const DeviceIdentify *devId, const uin… in SendMsgTo() 40 bool GetDeviceOnlineStatus(const Messenger *messenger, const DeviceIdentify *devId, int32_t *level) in GetDeviceOnlineStatus() 45 bool GetSelfDeviceIdentify(const Messenger *messenger, DeviceIdentify *devId, int32_t *level) in GetSelfDeviceIdentify() 55 bool GetDeviceStatisticInfo(const Messenger *messenger, const DeviceIdentify *devId, StatisticInfor… in GetDeviceStatisticInfo()
|
/base/security/security_guard/interfaces/inner_api/common/include/ |
D | security_guard_api.h | 36 typedef struct DeviceIdentify { struct 39 } DeviceIdentify; argument 42 DeviceIdentify devId; 48 typedef void RequestSecurityEventInfoCallBack(const DeviceIdentify *devId, const char *eventBuffLis…
|
/base/security/device_security_level/oem_property/include/ |
D | dslm_credential.h | 27 int32_t DefaultRequestDslmCred(const DeviceIdentify *device, const RequestObject *obj, DslmCredBuff… 29 int32_t DefaultVerifyDslmCred(const DeviceIdentify *device, uint64_t challenge, const DslmCredBuff … 36 int32_t VerifyOhosDslmCred(const DeviceIdentify *device, uint64_t challenge, const DslmCredBuff *cr… 39 int32_t RequestOhosDslmCred(const DeviceIdentify *device, const RequestObject *obj, DslmCredBuff **…
|
/base/security/device_security_level/baselib/msglib/src/standard/ |
D | messenger_device_status_manager.cpp | 42 …using StateReceiver = std::function<int32_t(const DeviceIdentify *devId, uint32_t status, int32_t … 88 DeviceIdentify srcIdentity {0, {0}}; 120 DeviceIdentify identity = {DEVICE_ID_MAX_LEN, {0}}; in MessengerOnNodeStateChange() 132 …static void ProcessDeviceStatusReceiver(const DeviceIdentify *devId, uint32_t status, int32_t leve… in ProcessDeviceStatusReceiver() 187 static bool MessengerConvertNodeToIdentity(const std::string &networkId, DeviceIdentify &devId) in MessengerConvertNodeToIdentity() 199 static_cast<void>(memset_s(&devId, sizeof(DeviceIdentify), 0, sizeof(DeviceIdentify))); in MessengerConvertNodeToIdentity() 212 static bool MessengerGetDeviceNodeBasicInfo(const DeviceIdentify &devId, DmDeviceInfo &info) in MessengerGetDeviceNodeBasicInfo() 225 DeviceIdentify curr = {DEVICE_ID_MAX_LEN, {0}}; in MessengerGetDeviceNodeBasicInfo() 286 auto process = [](const DeviceIdentify *devId, int32_t level, void *para) -> int32_t { in InitDeviceStatusManager() 306 bool MessengerGetDeviceOnlineStatus(const DeviceIdentify *devId, int32_t *level) in MessengerGetDeviceOnlineStatus() [all …]
|
D | messenger_device_socket_manager.c | 54 DeviceIdentify destIdentity; 63 DeviceIdentify identity; 110 static void OnSocketMessageReceived(const DeviceIdentify *devId, const uint8_t *msg, uint32_t msgLe… in OnSocketMessageReceived() 228 static bool GetIdentityBySocketId(int32_t socket, bool isServer, DeviceIdentify *identity) in GetIdentityBySocketId() 255 static bool GetIdentityByServerSocket(int32_t socket, DeviceIdentify *identity) in GetIdentityByServerSocket() 260 static bool GetIdentityByClientSocket(int32_t socket, DeviceIdentify *identity) in GetIdentityByClientSocket() 265 static SocketNodeInfo *CreateSocketNodeInfo(int32_t socket, const DeviceIdentify *identity) in CreateSocketNodeInfo() 288 static void ProcessBindDevice(int socket, const DeviceIdentify *devId, bool isServer) in ProcessBindDevice() 331 DeviceIdentify identity = {DEVICE_ID_MAX_LEN, {0}}; in ServerOnBind() 339 static void ClientOnBind(int socket, const DeviceIdentify *devId) in ClientOnBind() [all …]
|
/base/security/device_security_level/baselib/msglib/src/lite/ |
D | messenger_device_status_manager.c | 31 static int32_t InitDeviceOnlineProcessor(const DeviceIdentify *devId, int32_t level, void *para); 41 DeviceIdentify srcIdentity; 83 static void ProcessDeviceStatusReceiver(const DeviceIdentify *devId, uint32_t status, int32_t level) in ProcessDeviceStatusReceiver() 105 …t ret = (uint32_t)memcpy_s(&data->srcIdentity, sizeof(DeviceIdentify), devId, sizeof(DeviceIdentif… in ProcessDeviceStatusReceiver() 137 DeviceIdentify identity = {0, {0}}; in MessengerOnNodeStateChange() 165 static int32_t InitDeviceOnlineProcessor(const DeviceIdentify *devId, int32_t level, void *para) in InitDeviceOnlineProcessor() 219 static bool MessengerConvertNodeToIdentity(const NodeBasicInfo *node, DeviceIdentify *devId) in MessengerConvertNodeToIdentity() 240 bool MessengerGetDeviceNodeBasicInfo(const DeviceIdentify *devId, NodeBasicInfo *info) in MessengerGetDeviceNodeBasicInfo() 259 DeviceIdentify curr = {DEVICE_ID_MAX_LEN, {0}}; in MessengerGetDeviceNodeBasicInfo() 278 bool MessengerGetDeviceOnlineStatus(const DeviceIdentify *devId, int32_t *level) in MessengerGetDeviceOnlineStatus() [all …]
|
D | messenger_device_session_manager.c | 53 DeviceIdentify destIdentity; 62 DeviceIdentify identity; 105 static void OnSessionMessageReceived(const DeviceIdentify *devId, const uint8_t *msg, uint32_t msgL… in OnSessionMessageReceived() 131 static bool GetDeviceIdentityFromSessionId(int sessionId, DeviceIdentify *identity, uint32_t *maskI… in GetDeviceIdentityFromSessionId() 166 DeviceIdentify identity = {DEVICE_ID_MAX_LEN, {0}}; in MessengerOnSessionOpened() 181 … (void)memcpy_s(&sessionInfo->identity, sizeof(DeviceIdentify), &identity, sizeof(DeviceIdentify)); in MessengerOnSessionOpened() 203 DeviceIdentify identity = {DEVICE_ID_MAX_LEN, {0}}; in MessengerOnSessionOpened() 218 … (void)memcpy_s(&sessionInfo->identity, sizeof(DeviceIdentify), &identity, sizeof(DeviceIdentify)); in MessengerOnSessionOpened() 279 DeviceIdentify identity = {DEVICE_ID_MAX_LEN, {0}}; in MessengerOnBytesReceived() 381 static bool GetOpenedSessionId(const DeviceIdentify *devId, int32_t *sessionId) in GetOpenedSessionId() [all …]
|
/base/security/security_guard/interfaces/inner_api/classify/test/unittest/src/ |
D | risk_classify_kit_test.cpp | 29 int32_t RequestSecurityEventInfoAsync(const DeviceIdentify *devId, const char *eventJson, 31 …int32_t RequestSecurityModelResultSync(const DeviceIdentify *devId, uint32_t modelId, SecurityMode… 73 DeviceIdentify deviceIdentify = {}; 93 DeviceIdentify deviceIdentify = {}; 128 DeviceIdentify deviceIdentify = {}; 142 DeviceIdentify deviceIdentify = {}; 156 DeviceIdentify deviceIdentify = {};
|
/base/security/device_security_level/baselib/msglib/src/utils/ |
D | messenger_utils.h | 35 DeviceIdentify srcIdentity; 67 static inline bool IsSameDevice(const DeviceIdentify *left, const DeviceIdentify *right) in IsSameDevice() 84 QueueMsgData *CreateQueueMsgData(const DeviceIdentify *devId, const uint8_t *msg, uint32_t msgLen,
|
/base/security/device_security_level/interfaces/inner_api/src/lite/ |
D | device_security_info.c | 29 int32_t RequestDeviceSecurityInfoAsyncImpl(const DeviceIdentify *identify, const RequestOption *opt… 32 static int32_t RequestDeviceSecurityInfoImpl(const DeviceIdentify *identify, const RequestOption *o… in RequestDeviceSecurityInfoImpl() 59 int32_t RequestDeviceSecurityInfo(const DeviceIdentify *identify, const RequestOption *option, in RequestDeviceSecurityInfo() 65 int32_t RequestDeviceSecurityInfoAsync(const DeviceIdentify *identify, const RequestOption *option, in RequestDeviceSecurityInfoAsync()
|
/base/security/device_security_level/interfaces/inner_api/include/ |
D | device_security_info.h | 32 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,
|
/base/security/security_guard/test/fuzztest/obtaindata/requestsecurityeventinfoasync_fuzzer/ |
D | request_security_event_info_async_fuzzer.cpp | 26 extern "C" int32_t RequestSecurityEventInfoAsync(const DeviceIdentify *devId, const char *eventJson, 30 static void RequestSecurityEventInfoCallBackFunc(const DeviceIdentify *devId, const char *eventBuff… in RequestSecurityEventInfoCallBackFunc() 39 DeviceIdentify deviceIdentify = {}; in RequestSecurityEventInfoAsyncFuzzTest()
|