Home
last modified time | relevance | path

Searched refs:StringGet (Results 1 – 25 of 28) sorted by relevance

12

/base/security/crypto_framework/common/src/
Dhcf_string.c92 const char *StringGet(const HcString *self) in StringGet() function
140 const char* curChar = StringGet(self); in StringFind()
166 const char* beingPointer = StringGet(self) + begin; in StringSubString()
185 const char* src = StringGet(self); in StringCompare()
/base/security/device_auth/services/data_manager/src/
Ddata_manager.c506 const char *osAccountIdStr = StringGet(dbName); in LoadDeviceAuthDb()
671 if ((params->groupId != NULL) && (strcmp(params->groupId, StringGet(&entry->id)) != 0)) { in CompareQueryGroupParams()
674 if ((params->groupName != NULL) && (strcmp(params->groupName, StringGet(&entry->name)) != 0)) { in CompareQueryGroupParams()
677 if ((params->userId != NULL) && (strcmp(params->userId, StringGet(&entry->userId)) != 0)) { in CompareQueryGroupParams()
680 …if ((params->sharedUserId != NULL) && (strcmp(params->sharedUserId, StringGet(&entry->sharedUserId… in CompareQueryGroupParams()
691 if (strcmp(params->ownerName, StringGet(&entryOwner)) != 0) { in CompareQueryGroupParams()
700 if ((params->groupId != NULL) && (strcmp(params->groupId, StringGet(&entry->groupId)) != 0)) { in CompareQueryDeviceParams()
703 if ((params->udid != NULL) && (strcmp(params->udid, StringGet(&entry->udid)) != 0)) { in CompareQueryDeviceParams()
706 if ((params->authId != NULL) && (strcmp(params->authId, StringGet(&entry->authId)) != 0)) { in CompareQueryDeviceParams()
709 if ((params->userId != NULL) && (strcmp(params->userId, StringGet(&entry->userId)) != 0)) { in CompareQueryDeviceParams()
[all …]
/base/security/device_auth/services/creds_manager/src/account_related/
Daccount_related_creds_manager.c88 const char *groupId = StringGet(&groupEntry->id); in GetSelfDeviceEntryByPeerCert()
310 const char *userIdSelf = StringGet(&deviceEntry->userId); in GenerateAuthTokenForAccessory()
311 const char *devIdSelf = StringGet(&deviceEntry->authId); in GenerateAuthTokenForAccessory()
360 const char *userIdPeer = StringGet(&deviceEntry->userId); in GenerateTokenAliasForController()
361 const char *devIdPeer = StringGet(&deviceEntry->authId); in GenerateTokenAliasForController()
416 const char *userId = StringGet(&deviceEntry->userId); in GetSelfAccountIdentityInfo()
417 const char *authId = StringGet(&deviceEntry->authId); in GetSelfAccountIdentityInfo()
468 const char *peerUserId = StringGet(&deviceEntry->userId); in GetAccountRelatedCredInfo()
548 const char *selfUserId = StringGet(&deviceEntry->userId); in GetAccountAsymSharedSecret()
549 const char *selfAuthId = StringGet(&deviceEntry->authId); in GetAccountAsymSharedSecret()
[all …]
/base/security/device_auth/services/group_auth/src/group_auth_manager/account_related_group_auth/
Daccount_related_group_auth.c158 …((type == IDENTICAL_ACCOUNT_GROUP) ? StringGet(&(groupEntry->userId)) : StringGet(&(groupEntry->sh… in IsPeerInAccountRelatedGroup()
291 const char *selfUserId = StringGet(&entry->userId); in FillAccountAuthInfo()
292 const char *groupId = StringGet(&entry->id); in FillAccountAuthInfo()
293 const char *selfDeviceId = StringGet(&(localAuthInfo->udid)); in FillAccountAuthInfo()
294 const char *selfDevId = StringGet(&(localAuthInfo->authId)); in FillAccountAuthInfo()
392 const char *selfUserId = StringGet(&groupEntry->userId); in AddSelfUserId()
406 const char *groupId = StringGet(&groupEntry->id); in AddGroupIdForServer()
427 const char *groupId = StringGet(&groupEntry->id); in AddSelfDevInfoForServer()
434 const char *selfDevId = StringGet(&(localDevInfo->authId)); in AddSelfDevInfoForServer()
435 const char *selfUdid = StringGet(&(localDevInfo->udid)); in AddSelfDevInfoForServer()
/base/security/device_auth/common_lib/interfaces/
Dhc_string.h79 const char* StringGet(const HcString *self);
/base/security/crypto_framework/common/inc/
Dhcf_string.h62 const char* StringGet(const HcString *self);
/base/security/device_auth/services/group_manager/src/group_operation/identical_account_group/
Didentical_account_group.c218 if (AddStringToJson(delParams, FIELD_USER_ID, StringGet(&entry->userId)) != HC_SUCCESS) { in GenerateDelTokenParams()
222 if (AddStringToJson(delParams, FIELD_DEVICE_ID, StringGet(&entry->authId)) != HC_SUCCESS) { in GenerateDelTokenParams()
253 if (IsLocalDevice(StringGet(&(*entry)->udid))) { in DelAllTokens()
270 if (IsLocalDevice(StringGet(&(*entry)->udid))) { in DelAllPeerTokens()
298 groupParams.userId = StringGet(&groupEntry->userId); in GetRelatedAcrossAccountGroups()
313 if (DelAcrossAccountGroupAndTokens(osAccountId, StringGet(&(*entry)->id)) != HC_SUCCESS) { in DelRelatedAcrossAccountGroups()
408 if (IsLocalDevice(StringGet(&entry->udid))) { in DelPeerDeviceAndToken()
498 if (strcmp(userId, StringGet(&(*entry)->userId)) == 0) { in CheckUserIdValid()
/base/security/device_auth/services/creds_manager/src/
Dcreds_manager.c61 const char *serviceType = StringGet(&deviceEntry->serviceType); in IsP2pAuthTokenExist()
64 const char *peerAuthId = StringGet(&deviceEntry->authId); in IsP2pAuthTokenExist()
116 const char *groupId = StringGet(&groupEntry->id); in GetIdentityInfo()
170 const char *groupId = StringGet(&(groupEntry->id)); in GetIdentityInfos()
328 const char *serviceType = StringGet(&deviceEntry->serviceType); in GenerateKeyAliasInIso()
330 const char *peerAuthId = StringGet(&deviceEntry->authId); in GenerateKeyAliasInIso()
446 const char *selfAuthId = StringGet(&deviceEntry->authId); in GetSelfAuthIdAndUserType()
479 const char *serviceType = StringGet(&peerDeviceEntry->serviceType); in ComputeAndSavePsk()
496 const char *peerAuthId = StringGet(&peerDeviceEntry->authId); in ComputeAndSavePsk()
542 const char *serviceType = StringGet(&deviceEntry->serviceType); in GeneratePskAliasAndCheckExist()
[all …]
/base/security/device_auth/services/group_auth/src/group_auth_manager/account_unrelated_group_auth/
Daccount_unrelated_group_auth.c271 const char *ownerNameStr = StringGet(&ownerName); in AddNonAccountPkgName()
298 if (AddStringToJson(paramsData, FIELD_SELF_AUTH_ID, StringGet(&localAuthInfo->authId)) in AddNonAccountAuthInfo()
309 peerAuthId = StringGet(&peerAuthInfo->authId); in AddNonAccountAuthInfo()
326 const char *groupId = StringGet(&entry->id); in FillNonAccountAuthInfo()
/base/security/device_auth/services/group_manager/src/group_operation/across_account_group/
Dacross_account_group.c207 if (strcmp(userId, StringGet(&((*entry)->userId))) == 0) { in AssertIdenticalGroupExist()
288 if (AddStringToJson(delParams, FIELD_USER_ID, StringGet(&entry->userId)) != HC_SUCCESS) { in GenerateDelTokenParams()
292 if (AddStringToJson(delParams, FIELD_DEVICE_ID, StringGet(&entry->authId)) != HC_SUCCESS) { in GenerateDelTokenParams()
322 if (IsLocalDevice(StringGet(&(*entry)->udid))) { in DelAllPeerTokens()
443 if (IsLocalDevice(StringGet(&entry->udid))) { in DelPeerDeviceAndToken()
507 if (strcmp(userId, StringGet(&(*entry)->sharedUserId)) == 0) { in CheckUserIdValid()
/base/security/device_auth/services/group_manager/src/group_operation/
Dgroup_operation_common.c33 if (strcmp(StringGet(manager), appId) == 0) { in IsGroupManager()
45 if (strcmp(StringGet(trustedFriend), appId) == 0) { in IsGroupFriend()
173 const char *groupOwner = StringGet(&entryManager); in IsGroupOwner()
278 … TrustedGroupEntry *groupEntry = GetGroupEntryById(osAccountId, StringGet(&(*entry)->groupId)); in GetRelatedGroups()
320 const char *groupName = StringGet(&groupInfo->name); in AddGroupNameToReturn()
334 const char *groupId = StringGet(&groupInfo->id); in AddGroupIdToReturn()
349 const char *groupOwner = StringGet(&entryManager); in AddGroupOwnerToReturn()
386 const char *userId = StringGet(&groupInfo->userId); in AddUserIdToReturnIfAccountGroup()
403 const char *sharedUserId = StringGet(&groupInfo->sharedUserId); in AddSharedUserIdToReturnIfAcrossAccountGroup()
417 const char *authId = StringGet(&deviceInfo->authId); in AddAuthIdToReturn()
Dgroup_operation.c56 … if (CheckGroupAccessible(osAccountId, StringGet(&(*groupEntryPtr)->id), appId) == HC_SUCCESS) { in RemoveNoPermissionGroup()
197 … TrustedGroupEntry *groupEntry = GetGroupEntryById(osAccountId, StringGet(&(*entry)->groupId)); in QueryRelatedGroupsForGetPk()
221 const char *authId = StringGet(&deviceEntry->authId); in GetPkByParams()
291 const char *groupId = StringGet(&((*entry)->id)); in AddAllPkInfoToList()
/base/security/device_auth/services/session_manager/src/session/v1/compatible_bind_sub_session/
Dcompatible_bind_sub_session_common.c153 const char *oriAuthId = StringGet(&deviceInfo->authId); in CheckAuthIdAndUserTypeValid()
251 if (AddStringToJson(params, FIELD_GROUP_ID, StringGet(&entry->id)) != HC_SUCCESS) { in AddGroupInfoToParams()
259 if (AddStringToJson(params, FIELD_GROUP_NAME, StringGet(&entry->name)) != HC_SUCCESS) { in AddGroupInfoToParams()
284 if (AddStringToJson(params, FIELD_AUTH_ID, StringGet(&devAuthParams->authId)) != HC_SUCCESS) { in AddDevInfoToParams()
288 …if (AddStringToJson(params, FIELD_CONN_DEVICE_ID, StringGet(&devAuthParams->udid)) != HC_SUCCESS) { in AddDevInfoToParams()
/base/security/device_auth/common_lib/impl/src/
Dhc_string.c122 const char *StringGet(const HcString *self) in StringGet() function
/base/security/device_auth/services/group_manager/src/group_operation/peer_to_peer_group/
Dpeer_to_peer_group.c252 if (IsLocalDevice(StringGet(&entry->udid))) { in DelAllPeerDevAndKeyInfo()
255 result = DelPeerDevAndKeyInfo(osAccountId, groupId, StringGet(&entry->authId)); in DelAllPeerDevAndKeyInfo()
287 … if (AddStringToJson(jsonParams, FIELD_DEVICE_ID, StringGet(&deviceInfo->authId)) != HC_SUCCESS) { in AddAuthIdAndUserTypeToParams()
379 result = AssertPeerDeviceNotSelf(StringGet(&deviceInfo->udid)); in CheckPeerDeviceStatus()
/base/security/device_auth/services/group_auth/src/group_auth_manager/
Dgroup_auth_data_operation.c98 managerStr = StringGet(manager); in GaIsGroupManager()
112 friendStr = StringGet(trustedFriend); in GaIsGroupFriend()
/base/security/device_auth/deps_adapter/os_adapter/impl/src/linux/
Dhc_thread.c33 int res = pthread_setname_np(pthread_self(), StringGet(&thread->name)); in StaticThreadFunc()
/base/security/device_auth/deps_adapter/os_adapter/impl/src/liteos/
Dhc_thread.c29 int res = pthread_setname_np(pthread_self(), StringGet(&thread->name)); in StaticThreadFunc()
/base/security/device_auth/services/session_manager/src/session/v2/
Ddev_session_v2.c930 if (AddStringToJson(impl->context, FIELD_GROUP_ID, StringGet(&entry->id)) != HC_SUCCESS) { in AddP2PGroupInfoToContext()
944 if (AddStringToJson(impl->context, FIELD_GROUP_ID, StringGet(&entry->id)) != HC_SUCCESS) { in AddIdenticalAccountGroupInfoToContext()
952 if (AddStringToJson(impl->context, FIELD_USER_ID, StringGet(&entry->userId)) != HC_SUCCESS) { in AddIdenticalAccountGroupInfoToContext()
962 if (AddStringToJson(impl->context, FIELD_GROUP_ID, StringGet(&entry->id)) != HC_SUCCESS) { in AddAcrossAccountGroupInfoToContext()
970 if (AddStringToJson(impl->context, FIELD_USER_ID, StringGet(&entry->userId)) != HC_SUCCESS) { in AddAcrossAccountGroupInfoToContext()
974 …if (AddStringToJson(impl->context, FIELD_SHARED_USER_ID, StringGet(&entry->sharedUserId)) != HC_SU… in AddAcrossAccountGroupInfoToContext()
1008 …if (AddStringToJson(impl->context, FIELD_AUTH_ID, StringGet(&deviceEntry->authId)) != HC_SUCCESS) { in AddDevInfoToContext()
1047 bool isSame = (strcmp(StringGet(&(groupEntry->userId)), peerUserId) == 0); in IsPeerSameUserId()
1064 if (AddStringToJson(impl->context, FIELD_GROUP_ID, StringGet(&groupEntry->id)) != HC_SUCCESS) { in AddAcrossAccountAuthInfoToContext()
1091 if (AddStringToJson(impl->context, FIELD_GROUP_ID, StringGet(&groupEntry->id)) != HC_SUCCESS) { in AddIdenticalAccountAuthInfoToContext()
Ddev_session_util.c60 const char *userId = StringGet(&deviceEntry->userId); in GetPdidByContext()
235 const char *peerAuthId = StringGet(&entry->authId); in SetPeerAuthIdByDb()
/base/security/device_auth/services/session_manager/src/session/v2/expand_sub_session/expand_process_lib/
Dsave_trusted_info.c136 if (DeepCopyString(StringGet(&entry->name), &params->groupName) != HC_SUCCESS) { in ClientSendTrustedInfoProcEvent()
142 (DeepCopyString(StringGet(&entry->userId), &params->userIdSelf) != HC_SUCCESS)) { in ClientSendTrustedInfoProcEvent()
451 (DeepCopyString(StringGet(&entry->name), &params->groupName) != HC_SUCCESS)) { in ServerSendTrustedInfoProcEvent()
457 (DeepCopyString(StringGet(&entry->userId), &params->userIdSelf) != HC_SUCCESS)) { in ServerSendTrustedInfoProcEvent()
/base/security/device_auth/services/
Ddevice_auth.c107 const char *udid = StringGet(&(*deviceEntry)->udid); in GetUdidByGroup()
136 const char *groupId = StringGet(&(groupEntry->id)); in GetDeviceIdByUdidHash()
231 if (AddStringToJson(context, FIELD_GROUP_ID, StringGet(&entry->id)) != HC_SUCCESS) { in AddGroupInfoToContextByDb()
241 if (AddStringToJson(context, FIELD_GROUP_NAME, StringGet(&entry->name)) != HC_SUCCESS) { in AddGroupInfoToContextByDb()
273 if (AddStringToJson(context, FIELD_AUTH_ID, StringGet(&devAuthParams->authId)) != HC_SUCCESS) { in AddDevInfoToContextByDb()
/base/security/device_auth/services/session_manager/src/session/v1/compatible_auth_sub_session/
Dcompatible_auth_sub_session_common.c103 const char *serviceType = StringGet(&(localAuthInfo->serviceType)); in AddGeneralParams()
169 const char *groupId = StringGet(&(groupInfo->id)); in FillAuthParams()
/base/security/device_auth/test/unittest/deviceauth/unit_test/source/
Dcommon_lib_test.cpp306 const char *retStr = StringGet(nullptr);
308 retStr = StringGet(&selfStr);
/base/security/crypto_framework/test/unittest/src/
Dcrypto_common_cov_test.cpp433 bool ret = StringGet(nullptr);

12