/ohos5.0/base/security/security_guard/interfaces/inner_api/obtaindata/src/ |
H A D | sg_obtaindata_client.cpp | 63 if (devId == nullptr || eventJson == nullptr || devId->length >= DEVICE_ID_MAX_LEN) { in RequestSecurityEventInfoAsyncImpl() 67 uint8_t tmp[DEVICE_ID_MAX_LEN] = {}; in RequestSecurityEventInfoAsyncImpl() 68 (void) memset_s(tmp, DEVICE_ID_MAX_LEN, 0, DEVICE_ID_MAX_LEN); in RequestSecurityEventInfoAsyncImpl() 69 errno_t rc = memcpy_s(tmp, DEVICE_ID_MAX_LEN, devId->identity, devId->length); in RequestSecurityEventInfoAsyncImpl() 79 if (devId.length() >= DEVICE_ID_MAX_LEN) { in RequestSecurityEventInfoAsyncImpl() 85 errno_t rc = memcpy_s(identity.identity, DEVICE_ID_MAX_LEN, devId.c_str(), devId.length()); in RequestSecurityEventInfoAsyncImpl()
|
/ohos5.0/base/security/device_security_level/test/dslm_unit_test/ |
H A D | dslm_rpc_process_test.cpp | 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 __anon0649868d0102()
|
H A D | dslm_test.cpp | 1084 const DeviceIdentify identify = {DEVICE_ID_MAX_LEN, {0}}; 1426 DeviceIdentify device = {DEVICE_ID_MAX_LEN, {0}}; 1456 DeviceIdentify device = {DEVICE_ID_MAX_LEN, {0}}; 1475 DeviceIdentify device = {DEVICE_ID_MAX_LEN, {0}}; 1476 (void)memset_s(device.identity, DEVICE_ID_MAX_LEN, 'F', DEVICE_ID_MAX_LEN); 1840 const DeviceIdentify devId = {DEVICE_ID_MAX_LEN, {0}}; 2049 const DeviceIdentify device = {DEVICE_ID_MAX_LEN, {0}}; 2066 DeviceIdentify device = {DEVICE_ID_MAX_LEN, {0}}; 2077 char networkId[DEVICE_ID_MAX_LEN + 1] = {0}; 2078 const DeviceIdentify device = {DEVICE_ID_MAX_LEN, {0}}; [all …]
|
/ohos5.0/base/security/security_guard/interfaces/inner_api/classify/src/ |
H A D | sg_classify_client.cpp | 68 if (devId.length() >= DEVICE_ID_MAX_LEN) { in RequestSecurityModelResultSync() 103 if (devId.length() >= DEVICE_ID_MAX_LEN) { in RequestSecurityModelResultAsync() 124 …if (cppResult.devId.length() >= DEVICE_ID_MAX_LEN || cppResult.result.length() >= RESULT_MAX_LEN) { in FillingRequestResult() 129 …errno_t rc = memcpy_s(result->devId.identity, DEVICE_ID_MAX_LEN, cppResult.devId.c_str(), cppResul… in FillingRequestResult() 147 std::vector<char> id(DEVICE_ID_MAX_LEN, '\0'); in CovertDevId() 148 std::copy(&devId->identity[0], &devId->identity[DEVICE_ID_MAX_LEN - 1], id.begin()); in CovertDevId() 154 if (devId == nullptr || result == nullptr || devId->length >= DEVICE_ID_MAX_LEN) { in RequestSecurityModelResultSync() 166 if (devId == nullptr || devId->length >= DEVICE_ID_MAX_LEN) { in RequestSecurityModelResultAsync()
|
/ohos5.0/base/security/device_security_level/test/dslm_fuzz_test/dslm_fuzzer/ |
H A D | dslm_fuzzer.cpp | 58 const uint8_t mockBuffer[DEVICE_ID_MAX_LEN] = {0}; 146 const DeviceIdentify identify = {DEVICE_ID_MAX_LEN, {0}}; in OnSendResultNotifierTest() 191 const DeviceIdentify device = {DEVICE_ID_MAX_LEN, {'a', 'b', 'c', 'd', 'e', 'f', 'a', 'b'}}; in VerifyOhosDslmCredTest() 206 DeviceIdentify device = {DEVICE_ID_MAX_LEN, {0}}; in RequestDeviceSecurityInfoTest() 328 deviceIdentify.length = DEVICE_ID_MAX_LEN; in OnPeerMsgReceivedFuzzer() 329 const uint8_t *buffer = parcel.ReadBuffer(DEVICE_ID_MAX_LEN); in OnPeerMsgReceivedFuzzer() 331 (void)memcpy_s(deviceIdentify.identity, DEVICE_ID_MAX_LEN, buffer, DEVICE_ID_MAX_LEN); in OnPeerMsgReceivedFuzzer() 364 const uint8_t *buffer = parcel.ReadBuffer(DEVICE_ID_MAX_LEN); in OnRemoteRequestFuzzer() 366 data.WriteBuffer(mockBuffer, DEVICE_ID_MAX_LEN); in OnRemoteRequestFuzzer() 368 data.WriteBuffer(buffer, DEVICE_ID_MAX_LEN); in OnRemoteRequestFuzzer()
|
/ohos5.0/base/security/device_security_level/baselib/msglib/src/standard/ |
H A D | messenger_device_status_manager.cpp | 125 DeviceIdentify identity = {DEVICE_ID_MAX_LEN, {0}}; in MessengerOnNodeStateChange() 161 uint32_t maskId = MaskDeviceIdentity((const char *)&devId->identity[0], DEVICE_ID_MAX_LEN); in ProcessDeviceStatusReceiver() 202 auto size = (udid.size() < DEVICE_ID_MAX_LEN) ? udid.size() : DEVICE_ID_MAX_LEN; in MessengerConvertNodeToIdentity() 205 if (memcpy_s(devId.identity, DEVICE_ID_MAX_LEN, udid.c_str(), size) != EOK) { in MessengerConvertNodeToIdentity() 213 devId.length = DEVICE_ID_MAX_LEN; in MessengerConvertNodeToIdentity() 230 DeviceIdentify curr = {DEVICE_ID_MAX_LEN, {0}}; in MessengerGetDeviceNodeBasicInfo() 363 uint32_t maskId = MaskDeviceIdentity((const char *)&devId->identity[0], DEVICE_ID_MAX_LEN); in MessengerGetSelfDeviceIdentify() 384 DeviceIdentify curr = {DEVICE_ID_MAX_LEN, {0}}; in MessengerForEachDeviceProcess()
|
H A D | messenger_device_socket_manager.c | 272 uint32_t maskId = MaskDeviceIdentity((const char *)identity->identity, DEVICE_ID_MAX_LEN); in CreateSocketNodeInfo() 331 DeviceIdentify identity = {DEVICE_ID_MAX_LEN, {0}}; in ServerOnBind() 352 DeviceIdentify identity = {DEVICE_ID_MAX_LEN, {0}}; in ServerOnBytes() 369 DeviceIdentify identity = {DEVICE_ID_MAX_LEN, {0}}; in ClientOnBytes() 643 char NetworkId[DEVICE_ID_MAX_LEN + 1] = {0}; in PrepareBindSocket() 644 if (!MessengerGetNetworkIdByDeviceIdentify(devId, NetworkId, DEVICE_ID_MAX_LEN + 1)) { in PrepareBindSocket() 648 uint32_t maskId = MaskDeviceIdentity((const char *)&devId->identity, DEVICE_ID_MAX_LEN); in PrepareBindSocket()
|
/ohos5.0/base/security/security_guard/test/fuzztest/classify/requestsecuritymodelresultasync_fuzzer/ |
H A D | request_security_model_result_async_fuzzer.cpp | 38 uint32_t cpyLen = size > DEVICE_ID_MAX_LEN ? DEVICE_ID_MAX_LEN : static_cast<uint32_t>(size); in RequestSecurityModelResultAsyncFuzzTest() 39 (void) memcpy_s(deviceIdentify.identity, DEVICE_ID_MAX_LEN, data, cpyLen); in RequestSecurityModelResultAsyncFuzzTest()
|
/ohos5.0/base/security/security_guard/test/fuzztest/classify/requestsecuritymodelresultsync_fuzzer/ |
H A D | request_security_model_result_sync_fuzzer.cpp | 33 uint32_t cpyLen = size > DEVICE_ID_MAX_LEN ? DEVICE_ID_MAX_LEN : static_cast<uint32_t>(size); in RequestSecurityModelResultAsyncFuzzTest() 34 (void) memcpy_s(deviceIdentify.identity, DEVICE_ID_MAX_LEN, data, cpyLen); in RequestSecurityModelResultAsyncFuzzTest()
|
/ohos5.0/base/security/security_guard/test/fuzztest/obtaindata/requestsecurityeventinfoasync_fuzzer/ |
H A D | request_security_event_info_async_fuzzer.cpp | 40 uint32_t cpyLen = size > DEVICE_ID_MAX_LEN ? DEVICE_ID_MAX_LEN : static_cast<uint32_t>(size); in RequestSecurityEventInfoAsyncFuzzTest() 41 (void) memcpy_s(deviceIdentify.identity, DEVICE_ID_MAX_LEN, data, cpyLen); in RequestSecurityEventInfoAsyncFuzzTest()
|
/ohos5.0/base/security/device_security_level/baselib/msglib/src/lite/ |
H A D | messenger_device_session_manager.c | 136 char networkId[DEVICE_ID_MAX_LEN + 1] = {0}; in GetDeviceIdentityFromSessionId() 137 int ret = GetPeerDeviceId(sessionId, networkId, DEVICE_ID_MAX_LEN + 1); in GetDeviceIdentityFromSessionId() 148 *maskId = MaskDeviceIdentity((const char *)identity->identity, DEVICE_ID_MAX_LEN); in GetDeviceIdentityFromSessionId() 166 DeviceIdentify identity = {DEVICE_ID_MAX_LEN, {0}}; in MessengerOnSessionOpened() 203 DeviceIdentify identity = {DEVICE_ID_MAX_LEN, {0}}; in MessengerOnSessionOpened() 279 DeviceIdentify identity = {DEVICE_ID_MAX_LEN, {0}}; in MessengerOnBytesReceived() 426 char deviceName[DEVICE_ID_MAX_LEN + 1] = {0}; in CreateNewDeviceSession() 427 bool succ = MessengerGetNetworkIdByDeviceIdentify(devId, deviceName, DEVICE_ID_MAX_LEN + 1); in CreateNewDeviceSession()
|
H A D | messenger_device_status_manager.c | 139 if (memcpy_s(identity.identity, DEVICE_ID_MAX_LEN, udid, UDID_BUF_LEN - 1) != EOK) { in MessengerOnNodeStateChange() 232 if (memcpy_s(devId->identity, DEVICE_ID_MAX_LEN, udid, DEVICE_ID_MAX_LEN) != EOK) { in MessengerConvertNodeToIdentity() 236 devId->length = DEVICE_ID_MAX_LEN; in MessengerConvertNodeToIdentity() 259 DeviceIdentify curr = {DEVICE_ID_MAX_LEN, {0}}; in MessengerGetDeviceNodeBasicInfo() 355 DeviceIdentify devId = {DEVICE_ID_MAX_LEN, {0}}; in MessengerForEachDeviceProcess()
|
/ohos5.0/base/security/security_guard/interfaces/inner_api/common/include/ |
H A D | security_guard_api.h | 26 #define DEVICE_ID_MAX_LEN 64 macro 38 uint8_t identity[DEVICE_ID_MAX_LEN];
|
/ohos5.0/foundation/multimedia/media_library/frameworks/services/media_distributed/src/device_manage/ |
H A D | device_permission_verification.cpp | 132 devIdentify.length = DEVICE_ID_MAX_LEN; in ReqDestDevSecLevel() 133 int ret = memcpy_s(devIdentify.identity, DEVICE_ID_MAX_LEN, udid.c_str(), DEVICE_ID_MAX_LEN); in ReqDestDevSecLevel()
|
/ohos5.0/base/security/device_security_level/interfaces/inner_api/include/ |
H A D | device_security_defines.h | 25 #define DEVICE_ID_MAX_LEN 64 macro 29 uint8_t identity[DEVICE_ID_MAX_LEN];
|
/ohos5.0/base/security/device_security_level/services/sa/lite/small/ |
H A D | dslm_ipc_process.c | 58 uint32_t *dataRead = ReadBuffer(req, DEVICE_ID_MAX_LEN); in DslmGetRequestFromParcel() 63 if (memcpy_s(identity->identity, DEVICE_ID_MAX_LEN, dataRead, DEVICE_ID_MAX_LEN) != EOK) { in DslmGetRequestFromParcel()
|
/ohos5.0/base/security/device_security_level/interfaces/inner_api/src/standard/ |
H A D | device_security_level_proxy.cpp | 57 if (length == 0 || length > DEVICE_ID_MAX_LEN) { in RequestDeviceSecurityLevel() 69 data.WriteBuffer(identify.identity, DEVICE_ID_MAX_LEN); in RequestDeviceSecurityLevel()
|
/ohos5.0/base/security/device_security_level/services/sa/standard/ |
H A D | dslm_ipc_process.cpp | 75 const uint8_t *dataRead = data.ReadBuffer(DEVICE_ID_MAX_LEN); in DslmGetRequestFromParcel() 80 if (memcpy_s(identify.identity, DEVICE_ID_MAX_LEN, dataRead, DEVICE_ID_MAX_LEN) != EOK) { in DslmGetRequestFromParcel()
|
/ohos5.0/base/security/device_security_level/baselib/msglib/include/ |
H A D | messenger.h | 27 #define DEVICE_ID_MAX_LEN 64 macro 30 uint8_t identity[DEVICE_ID_MAX_LEN];
|
/ohos5.0/base/security/device_security_level/interfaces/inner_api/src/lite/small/ |
H A D | device_security_level_proxy.c | 73 if (identify.length == 0 || identify.length > DEVICE_ID_MAX_LEN) { in DslmIpcAsyncCallImpl() 84 WriteBuffer(&request, identify.identity, DEVICE_ID_MAX_LEN); in DslmIpcAsyncCallImpl()
|
/ohos5.0/foundation/distributedhardware/distributed_audio/services/audiomanager/managersink/src/ |
H A D | daudio_sink_manager.cpp | 457 devIdentify.length = DEVICE_ID_MAX_LEN; in GetDeviceSecurityLevel() 458 … int32_t ret = memcpy_s(devIdentify.identity, DEVICE_ID_MAX_LEN, udid.c_str(), DEVICE_ID_MAX_LEN); in GetDeviceSecurityLevel()
|
/ohos5.0/base/security/device_security_level/services/dslm/ |
H A D | dslm_device_list.c | 88 if (device->length != DEVICE_ID_MAX_LEN) { in CreatOrGetDslmDeviceInfo()
|
/ohos5.0/foundation/distributedhardware/distributed_camera/services/cameraservice/sinkservice/src/distributedcameramgr/ |
H A D | dcamera_sink_controller.cpp | 690 devIdentify.length = DEVICE_ID_MAX_LEN; in GetDeviceSecurityLevel() 691 … int32_t ret = memcpy_s(devIdentify.identity, DEVICE_ID_MAX_LEN, udid.c_str(), DEVICE_ID_MAX_LEN); in GetDeviceSecurityLevel()
|
/ohos5.0/base/security/security_guard/frameworks/js/napi/ |
H A D | security_guard_napi.h | 31 constexpr int DEVICE_ID_MAX_LEN = 64; variable
|
/ohos5.0/foundation/ability/dmsfwk/services/dtbschedmgr/src/ |
H A D | distributed_sched_permission.cpp | 690 devIdentify.length = DEVICE_ID_MAX_LEN; in GetDeviceSecurityLevel() 691 int32_t ret = memcpy_s(devIdentify.identity, DEVICE_ID_MAX_LEN, udid.c_str(), udid.length()); in GetDeviceSecurityLevel()
|