mirror of
https://github.com/openharmony/device_manager.git
synced 2026-07-18 16:24:27 -04:00
修复跨设备认证中pin码明文传输导致的安全问题
Signed-off-by: renguang1116 <renguang@huawei.com>
This commit is contained in:
@@ -208,10 +208,10 @@ HWTEST_F(DmAuthManagerTest, AddMember_001, testing::ext::TestSize.Level0)
|
||||
authManager->authResponseContext_->code = 123;
|
||||
authManager->authResponseContext_->requestId = 234;
|
||||
authManager->authResponseContext_->deviceId = "234";
|
||||
std::string deviceId = "44444";
|
||||
int32_t pinCode = 444444;
|
||||
authManager->hiChainConnector_->RegisterHiChainCallback(authManager);
|
||||
authManager->SetAuthResponseState(authResponseState);
|
||||
int32_t ret = authManager->AddMember(deviceId);
|
||||
int32_t ret = authManager->AddMember(pinCode);
|
||||
ASSERT_EQ(ret, ERR_DM_FAILED);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user