mirror of
https://github.com/openharmony/security_deviceauth.git
synced 2026-07-20 19:04:51 -04:00
@@ -1040,7 +1040,8 @@ static int32_t IpcGmAddGroupFriend(int32_t osAccountId, const char *appId, const
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int32_t IpcGmDelGroupManager(int32_t osAccountId, const char *appId, const char *groupId, const char *managerAppId)
|
||||
static int32_t IpcGmDelGroupManager(int32_t osAccountId, const char *appId, const char *groupId,
|
||||
const char *managerAppId)
|
||||
{
|
||||
uintptr_t callCtx = 0x0;
|
||||
int32_t ret;
|
||||
|
||||
@@ -90,8 +90,8 @@ static int32_t AuthDevice(int32_t osAccountId, int64_t authReqId, const char *au
|
||||
{
|
||||
LOGI("Begin AuthDevice.");
|
||||
osAccountId = DevAuthGetRealOsAccountLocalId(osAccountId);
|
||||
if (authParams == NULL) {
|
||||
LOGE("The input auth params is null!");
|
||||
if ((authParams == NULL) || (osAccountId == INVALID_OS_ACCOUNT)) {
|
||||
LOGE("The input auth params is invalid!");
|
||||
return HC_ERR_INVALID_PARAMS;
|
||||
}
|
||||
CJson *jsonParams = CreateJsonFromString(authParams);
|
||||
|
||||
@@ -119,11 +119,7 @@ group_auth_account_unrelated_files = [ "${group_auth_path}/src/group_auth_manage
|
||||
group_auth_account_unrelated_mock_files = [ "${group_auth_path}/src/group_auth_manager/account_unrelated_group_auth_mock/account_unrelated_group_auth_mock.c" ]
|
||||
group_auth_account_related_mock_files = [ "${group_auth_path}/src/group_auth_manager/account_related_group_auth_mock/account_related_group_auth_mock.c" ]
|
||||
|
||||
database_manager_files = [
|
||||
# "${data_manager_path}/src/database_manager.c",
|
||||
# "${data_manager_path}/src/database_util.c",
|
||||
"${data_manager_path}/src/data_manager.c",
|
||||
]
|
||||
database_manager_files = [ "${data_manager_path}/src/data_manager.c" ]
|
||||
database_manager_lite_files = []
|
||||
|
||||
group_manager_files = [
|
||||
|
||||
@@ -703,7 +703,8 @@ static int32_t ProcessData(int64_t requestId, CJson *jsonParams, const DeviceAut
|
||||
return CreateServerSession(requestId, operationCode, jsonParams, callback);
|
||||
}
|
||||
|
||||
static int32_t AddManagerWithCheck(int32_t osAccountId, const char *appId, const char *groupId, const char *managerAppId)
|
||||
static int32_t AddManagerWithCheck(int32_t osAccountId, const char *appId, const char *groupId,
|
||||
const char *managerAppId)
|
||||
{
|
||||
int32_t groupType = PEER_TO_PEER_GROUP;
|
||||
if (GetGroupTypeFromDb(osAccountId, groupId, &groupType) != HC_SUCCESS) {
|
||||
|
||||
Reference in New Issue
Block a user