Home
last modified time | relevance | path

Searched refs:devParams (Results 1 – 11 of 11) sorted by relevance

/base/security/device_auth/services/group_manager/inc/
Dgroup_operation_common.h60 int32_t AddSelfUdidToParams(TrustedDeviceEntry *devParams);
61 int32_t AddUdidToParams(const CJson *jsonParams, TrustedDeviceEntry *devParams);
62 int32_t AddAuthIdToParams(const CJson *jsonParams, TrustedDeviceEntry *devParams);
63 int32_t AddAuthIdToParamsOrDefault(const CJson *jsonParams, TrustedDeviceEntry *devParams);
64 int32_t AddUserTypeToParamsOrDefault(const CJson *jsonParams, TrustedDeviceEntry *devParams);
65 int32_t AddSourceToParams(RelationShipSource source, TrustedDeviceEntry *devParams);
66 int32_t AddCredTypeToParams(const CJson *jsonParams, TrustedDeviceEntry *devParams);
67 int32_t AddServiceTypeToParams(const char *groupId, TrustedDeviceEntry *devParams);
68 int32_t AddGroupIdToDevParams(const char *groupId, TrustedDeviceEntry *devParams);
69 int32_t AddUserIdToDevParams(const CJson *jsonParams, TrustedDeviceEntry *devParams);
/base/security/device_auth/services/session_manager/src/session/v2/expand_sub_session/expand_process_lib/
Dsave_trusted_info.c269 static int32_t GeneratePeerDevParams(const CmdParams *params, TrustedDeviceEntry *devParams) in GeneratePeerDevParams() argument
271 if (!StringSetPointer(&devParams->groupId, params->groupId)) { in GeneratePeerDevParams()
275 if (!StringSetPointer(&devParams->udid, params->udidPeer)) { in GeneratePeerDevParams()
279 if (!StringSetPointer(&devParams->authId, params->authIdPeer)) { in GeneratePeerDevParams()
283 if (params->userIdPeer != NULL && !StringSetPointer(&devParams->userId, params->userIdPeer)) { in GeneratePeerDevParams()
287 if (!StringSetPointer(&devParams->serviceType, params->groupId)) { in GeneratePeerDevParams()
291 devParams->credential = params->credType; in GeneratePeerDevParams()
292 devParams->devType = params->userTypePeer; in GeneratePeerDevParams()
293 devParams->source = SELF_CREATED; in GeneratePeerDevParams()
297 static int32_t GenerateSelfDevParams(const CmdParams *params, TrustedDeviceEntry *devParams) in GenerateSelfDevParams() argument
[all …]
/base/security/device_auth/services/group_manager/src/group_operation/identical_account_group/
Didentical_account_group.c30 …32_t GenerateDevParams(const CJson *jsonParams, const char *groupId, TrustedDeviceEntry *devParams) in GenerateDevParams() argument
33 if (((result = AddSelfUdidToParams(devParams)) != HC_SUCCESS) || in GenerateDevParams()
34 ((result = AddCredTypeToParams(jsonParams, devParams)) != HC_SUCCESS) || in GenerateDevParams()
35 ((result = AddUserIdToDevParams(jsonParams, devParams)) != HC_SUCCESS) || in GenerateDevParams()
36 ((result = AddAuthIdToParamsOrDefault(jsonParams, devParams)) != HC_SUCCESS) || in GenerateDevParams()
37 ((result = AddSourceToParams(SELF_CREATED, devParams)) != HC_SUCCESS) || in GenerateDevParams()
38 ((result = AddUserTypeToParamsOrDefault(jsonParams, devParams)) != HC_SUCCESS) || in GenerateDevParams()
39 ((result = AddGroupIdToDevParams(groupId, devParams)) != HC_SUCCESS) || in GenerateDevParams()
40 ((result = AddServiceTypeToParams(groupId, devParams)) != HC_SUCCESS)) { in GenerateDevParams()
337 …nerateTrustedDevParams(const CJson *jsonParams, const char *groupId, TrustedDeviceEntry *devParams) in GenerateTrustedDevParams() argument
[all …]
/base/security/device_auth/services/group_manager/src/group_operation/across_account_group/
Dacross_account_group.c126 …32_t GenerateDevParams(const CJson *jsonParams, const char *groupId, TrustedDeviceEntry *devParams) in GenerateDevParams() argument
129 if (((result = AddSelfUdidToParams(devParams)) != HC_SUCCESS) || in GenerateDevParams()
130 ((result = AddAuthIdToParamsOrDefault(jsonParams, devParams)) != HC_SUCCESS) || in GenerateDevParams()
131 ((result = AddCredTypeToParams(jsonParams, devParams)) != HC_SUCCESS) || in GenerateDevParams()
132 ((result = AddUserIdToDevParams(jsonParams, devParams)) != HC_SUCCESS) || in GenerateDevParams()
133 ((result = AddSourceToParams(SELF_CREATED, devParams)) != HC_SUCCESS) || in GenerateDevParams()
134 ((result = AddUserTypeToParamsOrDefault(jsonParams, devParams)) != HC_SUCCESS) || in GenerateDevParams()
135 ((result = AddGroupIdToDevParams(groupId, devParams)) != HC_SUCCESS) || in GenerateDevParams()
136 ((result = AddServiceTypeToParams(groupId, devParams)) != HC_SUCCESS)) { in GenerateDevParams()
372 …nerateTrustedDevParams(const CJson *jsonParams, const char *groupId, TrustedDeviceEntry *devParams) in GenerateTrustedDevParams() argument
[all …]
/base/security/device_auth/services/group_manager/src/group_operation/
Dgroup_operation_common.c704 int32_t AddSelfUdidToParams(TrustedDeviceEntry *devParams) in AddSelfUdidToParams() argument
712 if (!StringSetPointer(&devParams->udid, udid)) { in AddSelfUdidToParams()
719 int32_t AddUdidToParams(const CJson *jsonParams, TrustedDeviceEntry *devParams) in AddUdidToParams() argument
726 if (!StringSetPointer(&devParams->udid, udid)) { in AddUdidToParams()
733 int32_t AddAuthIdToParamsOrDefault(const CJson *jsonParams, TrustedDeviceEntry *devParams) in AddAuthIdToParamsOrDefault() argument
746 if (!StringSetPointer(&devParams->authId, authId)) { in AddAuthIdToParamsOrDefault()
753 int32_t AddAuthIdToParams(const CJson *jsonParams, TrustedDeviceEntry *devParams) in AddAuthIdToParams() argument
760 if (!StringSetPointer(&devParams->authId, authId)) { in AddAuthIdToParams()
767 int32_t AddSourceToParams(RelationShipSource source, TrustedDeviceEntry *devParams) in AddSourceToParams() argument
769 devParams->source = source; in AddSourceToParams()
[all …]
/base/security/device_auth/test/unittest/tdd_framework/unit_test/services/session_manager/session/v2/expand_sub_session/expand_process_lib/
Dsave_trusted_info_test.cpp115 static int32_t GenerateSelfDevParams(const CreateParams *params, TrustedDeviceEntry *devParams) in GenerateSelfDevParams() argument
117 if (!StringSetPointer(&devParams->udid, params->udidSelf)) { in GenerateSelfDevParams()
120 if (!StringSetPointer(&devParams->authId, params->authIdSelf)) { in GenerateSelfDevParams()
123 if (!StringSetPointer(&devParams->groupId, params->groupId)) { in GenerateSelfDevParams()
126 if (!StringSetPointer(&devParams->serviceType, params->groupId)) { in GenerateSelfDevParams()
129 devParams->devType = params->userTypeSelf; in GenerateSelfDevParams()
130 devParams->source = SELF_CREATED; in GenerateSelfDevParams()
131 devParams->credential = params->credType; in GenerateSelfDevParams()
153 TrustedDeviceEntry *devParams = CreateDeviceEntry(); in AddSelfTrustedDevice() local
154 if (devParams == NULL) { in AddSelfTrustedDevice()
[all …]
/base/security/device_auth/services/group_manager/src/group_operation/peer_to_peer_group/
Dpeer_to_peer_group.c159 …32_t GenerateDevParams(const CJson *jsonParams, const char *groupId, TrustedDeviceEntry *devParams) in GenerateDevParams() argument
162 if (((result = AddSelfUdidToParams(devParams)) != HC_SUCCESS) || in GenerateDevParams()
163 ((result = AddAuthIdToParamsOrDefault(jsonParams, devParams)) != HC_SUCCESS) || in GenerateDevParams()
164 ((result = AddSourceToParams(SELF_CREATED, devParams)) != HC_SUCCESS) || in GenerateDevParams()
165 ((result = AddUserTypeToParamsOrDefault(jsonParams, devParams)) != HC_SUCCESS) || in GenerateDevParams()
166 ((result = AddGroupIdToDevParams(groupId, devParams)) != HC_SUCCESS) || in GenerateDevParams()
167 ((result = AddServiceTypeToParams(groupId, devParams)) != HC_SUCCESS)) { in GenerateDevParams()
/base/security/device_auth/test/unittest/deviceauth/unit_test/source/
Dpeer_to_peer_group_test.cpp83 TrustedDeviceEntry devParams; variable
84 int32_t ret = GenerateDevParams(nullptr, nullptr, &devParams);
Dacross_account_group_test.cpp65 TrustedDeviceEntry devParams; variable
66 int32_t ret = GenerateDevParams(nullptr, nullptr, &devParams);
Didentical_account_group_test.cpp136 TrustedDeviceEntry devParams; variable
137 int32_t ret = GenerateTrustedDevParams(nullptr, nullptr, &devParams);
/base/security/device_auth/test/unittest/deviceauth/source/
Dgroup_operation_common_test.cpp51 …32_t GenerateDevParams(const CJson *jsonParams, const char *groupId, TrustedDeviceEntry *devParams) in GenerateDevParams() argument
55 (void)devParams; in GenerateDevParams()