From b1c86f630314ddc08f168edc43b37d0b1f86dba0 Mon Sep 17 00:00:00 2001 From: hhh2 Date: Tue, 10 Aug 2021 01:09:05 +0000 Subject: [PATCH] =?UTF-8?q?fixed=20289a5ed=20from=20https://gitee.com/blan?= =?UTF-8?q?cwu/device=5Fmanager/pulls/10=20=E5=9B=9E=E9=80=80=20'Pull=20Re?= =?UTF-8?q?quest=20!8=20:=20test=20device=5Fmanager'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/authdemo/hichain_adapter.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/services/devicemanagerservice/src/authdemo/hichain_adapter.cpp b/services/devicemanagerservice/src/authdemo/hichain_adapter.cpp index 65248e9b2..ebf5e1dba 100644 --- a/services/devicemanagerservice/src/authdemo/hichain_adapter.cpp +++ b/services/devicemanagerservice/src/authdemo/hichain_adapter.cpp @@ -29,12 +29,9 @@ namespace OHOS { namespace DistributedHardware { namespace { -// PIN_CODE一般为随机6位数字字符串, 例如; -const std::string PIN_CODE = "123456"; - -// PORT为server端的监听端口号,随机端口范围一般为1024~65534, 例如 -const int32_t PORT = 10001; - +// demo solution, may has security issues, later will be replaced by a formal plan +const std::string PIN_CODE = ""; +const int32_t PORT = -1; const std::string DEVICE_MANAGER_APP = "ohos.distributedhardware.devicemanager"; const std::string DEVICE_MANAGER_GROUPNAME = "DMPeerToPeerGroup"; -- Gitee