Home
last modified time | relevance | path

Searched refs:StringGet (Results 1 - 25 of 29) sorted by relevance

12

/base/security/crypto_framework/common/src/
H A 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/
H A Ddata_manager.c676 const char *osAccountIdStr = StringGet(dbName); in LoadDeviceAuthDb()
820 if ((params->groupId != NULL) && (strcmp(params->groupId, StringGet(&entry->id)) != 0)) { in CompareQueryGroupParams()
823 if ((params->groupName != NULL) && (strcmp(params->groupName, StringGet(&entry->name)) != 0)) { in CompareQueryGroupParams()
826 if ((params->userId != NULL) && (strcmp(params->userId, StringGet(&entry->userId)) != 0)) { in CompareQueryGroupParams()
829 if ((params->sharedUserId != NULL) && (strcmp(params->sharedUserId, StringGet(&entry->sharedUserId)) != 0)) { in CompareQueryGroupParams()
840 if (strcmp(params->ownerName, StringGet(&entryOwner)) != 0) { in CompareQueryGroupParams()
849 if ((params->groupId != NULL) && (strcmp(params->groupId, StringGet(&entry->groupId)) != 0)) { in CompareQueryDeviceParams()
852 if ((params->udid != NULL) && (strcmp(params->udid, StringGet(&entry->udid)) != 0)) { in CompareQueryDeviceParams()
855 if ((params->authId != NULL) && (strcmp(params->authId, StringGet(&entry->authId)) != 0)) { in CompareQueryDeviceParams()
858 if ((params->userId != NULL) && (strcmp(params->userId, StringGet( in CompareQueryDeviceParams()
[all...]
/base/security/device_auth/services/identity_manager/src/
H A Dcert_operation.c147 if (memcpy_s(userId, userIdLen, StringGet(&(*ptr)->userId), StringLength(&(*ptr)->userId)) != EOK) { in GetSelfUserId()
248 const char *groupId = StringGet(&groupEntry->id); in GetSelfDeviceEntryByPeerCert()
477 const char *userIdSelf = StringGet(&deviceEntry->userId); in GenerateAuthTokenForAccessory()
478 const char *devIdSelf = StringGet(&deviceEntry->authId); in GenerateAuthTokenForAccessory()
528 const char *userIdPeer = StringGet(&deviceEntry->userId); in GenerateTokenAliasForController()
529 const char *devIdPeer = StringGet(&deviceEntry->authId); in GenerateTokenAliasForController()
584 const char *userId = StringGet(&deviceEntry->userId); in GetSelfAccountIdentityInfo()
585 const char *authId = StringGet(&deviceEntry->authId); in GetSelfAccountIdentityInfo()
636 const char *peerUserId = StringGet(&deviceEntry->userId); in GetAccountRelatedCredInfo()
721 const char *selfUserId = StringGet( in GetAccountAsymSharedSecret()
[all...]
H A Didentity_group.c140 const char *serviceType = StringGet(&deviceEntry->serviceType); in IsP2pAuthTokenExist()
143 const char *peerAuthId = StringGet(&deviceEntry->authId); in IsP2pAuthTokenExist()
228 const char *groupId = StringGet(&groupEntry->id); in GetIdentityInfo()
273 const char *groupId = StringGet(&(groupEntry->id)); in GetIdentityInfos()
456 const char *serviceType = StringGet(&deviceEntry->serviceType); in GenerateKeyAliasForIso()
458 const char *peerAuthId = StringGet(&deviceEntry->authId); in GenerateKeyAliasForIso()
566 const char *selfAuthId = StringGet(&deviceEntry->authId); in GetSelfAuthIdAndUserType()
615 const char *serviceType = StringGet(&peerDeviceEntry->serviceType); in GeneratePeerKeyAlias()
622 const char *peerAuthId = StringGet(&peerDeviceEntry->authId); in GeneratePeerKeyAlias()
680 const char *serviceType = StringGet( in ComputeAndSavePsk()
[all...]
/base/security/device_auth/services/legacy/group_auth/src/group_auth_manager/account_related_group_auth/
H A Daccount_related_group_auth.c171 ((type == IDENTICAL_ACCOUNT_GROUP) ? StringGet(&(groupEntry->userId)) : StringGet(&(groupEntry->sharedUserId))); in IsPeerInAccountRelatedGroup()
236 const char *groupId = StringGet(&tempEntry->id); in GaGetAccountGroup()
307 const char *selfUserId = StringGet(&entry->userId); in FillAccountAuthInfo()
308 const char *groupId = StringGet(&entry->id); in FillAccountAuthInfo()
309 const char *selfDeviceId = StringGet(&(localAuthInfo->udid)); in FillAccountAuthInfo()
310 const char *selfDevId = StringGet(&(localAuthInfo->authId)); in FillAccountAuthInfo()
519 const char *selfUserId = StringGet(&groupEntry->userId); in AddSelfUserId()
533 const char *groupId = StringGet(&groupEntry->id); in AddGroupIdForServer()
554 const char *groupId = StringGet( in AddSelfDevInfoForServer()
[all...]
/base/security/crypto_framework/common/inc/
H A Dhcf_string.h62 const char* StringGet(const HcString *self);
/base/security/device_auth/common_lib/interfaces/
H A Dhc_string.h79 const char* StringGet(const HcString *self);
/base/security/device_auth/services/frameworks/src/hiview_adapter/
H A Dhidump_adapter.c26 if (strcmp(StringGet(&strArg), PERFORM_DUMP_ARG) == 0) { in DumpByArgs()
H A Dperformance_dumper.c388 if (strcmp(StringGet(&strArg), ENABLE_PERFORMANCE_DUMPER) == 0) { in PerformanceDump()
391 } else if (strcmp(StringGet(&strArg), DISABLE_PERFORMANCE_DUMPER) == 0) { in PerformanceDump()
/base/security/device_auth/deps_adapter/os_adapter/impl/src/linux/
H A Dhc_thread.c37 int res = pthread_setname_np(pthread_self(), StringGet(&thread->name)); in StaticThreadFunc()
42 thread->stackSize, StringGet(&thread->name)); in StaticThreadFunc()
/base/security/device_auth/services/legacy/group_manager/src/group_operation/across_account_group/
H A Dacross_account_group.c203 if (strcmp(userId, StringGet(&((*entry)->userId))) == 0) { in AssertIdenticalGroupExist()
284 if (AddStringToJson(delParams, FIELD_USER_ID, StringGet(&entry->userId)) != HC_SUCCESS) { in GenerateDelTokenParams()
288 if (AddStringToJson(delParams, FIELD_DEVICE_ID, StringGet(&entry->authId)) != HC_SUCCESS) { in GenerateDelTokenParams()
318 if (IsLocalDevice(StringGet(&(*entry)->udid))) { in DelAllPeerTokens()
439 if (IsLocalDevice(StringGet(&entry->udid))) { in DelPeerDeviceAndToken()
503 if (strcmp(userId, StringGet(&(*entry)->sharedUserId)) == 0) { in CheckUserIdValid()
/base/security/device_auth/services/legacy/group_manager/src/group_operation/identical_account_group/
H A 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 DelPeerDevice()
505 if (strcmp(userId, StringGet(&(*entry)->userId)) == 0) { in CheckUserIdValid()
/base/security/device_auth/common_lib/impl/src/
H A Dhc_string.c123 const char *StringGet(const HcString *self) in StringGet() function
/base/security/device_auth/services/legacy/group_auth/src/group_auth_manager/account_unrelated_group_auth/
H A Daccount_unrelated_group_auth.c284 const char *ownerNameStr = StringGet(&ownerName); in AddNonAccountPkgName()
311 if (AddStringToJson(paramsData, FIELD_SELF_AUTH_ID, StringGet(&localAuthInfo->authId)) in AddNonAccountAuthInfo()
322 peerAuthId = StringGet(&peerAuthInfo->authId); in AddNonAccountAuthInfo()
339 const char *groupId = StringGet(&entry->id); in FillNonAccountAuthInfo()
/base/security/device_auth/services/legacy/group_manager/src/group_operation/peer_to_peer_group/
H A Dpeer_to_peer_group.c255 if (IsLocalDevice(StringGet(&entry->udid))) { in DelAllPeerDevAndKeyInfo()
258 result = DelPeerDevAndKeyInfo(osAccountId, groupId, StringGet(&entry->authId)); in DelAllPeerDevAndKeyInfo()
290 if (AddStringToJson(jsonParams, FIELD_DEVICE_ID, StringGet(&deviceInfo->authId)) != HC_SUCCESS) { in AddAuthIdAndUserTypeToParams()
382 result = AssertPeerDeviceNotSelf(StringGet(&deviceInfo->udid)); in CheckPeerDeviceStatus()
/base/security/device_auth/services/session_manager/src/session/v1/compatible_bind_sub_session/
H A Dcompatible_bind_sub_session_common.c165 const char *oriAuthId = StringGet(&deviceInfo->authId); in CheckAuthIdAndUserTypeValid()
263 if (AddStringToJson(params, FIELD_GROUP_ID, StringGet(&entry->id)) != HC_SUCCESS) { in AddGroupInfoToParams()
271 if (AddStringToJson(params, FIELD_GROUP_NAME, StringGet(&entry->name)) != HC_SUCCESS) { in AddGroupInfoToParams()
296 if (AddStringToJson(params, FIELD_AUTH_ID, StringGet(&devAuthParams->authId)) != HC_SUCCESS) { in AddDevInfoToParams()
300 if (AddStringToJson(params, FIELD_CONN_DEVICE_ID, StringGet(&devAuthParams->udid)) != HC_SUCCESS) { in AddDevInfoToParams()
/base/security/device_auth/services/legacy/group_manager/src/group_operation/group_operation_common/
H A Dgroup_operation_common.c68 if ((strcmp(StringGet(manager), appId) == 0) || in IsGroupManager()
69 CheckUpgradeIdentity(entry->upgradeFlag, appId, StringGet(manager)) == HC_SUCCESS) { in IsGroupManager()
81 if ((strcmp(StringGet(trustedFriend), appId) == 0) || in IsGroupFriend()
82 CheckUpgradeIdentity(entry->upgradeFlag, appId, StringGet(trustedFriend)) == HC_SUCCESS) { in IsGroupFriend()
116 const char *groupId = StringGet(&(groupEntry->id)); in CheckAndRemoveUpgradeGroupEntry()
119 const char *groupOwner = StringGet(&entryManager); in CheckAndRemoveUpgradeGroupEntry()
251 const char *groupOwner = StringGet(&entryManager); in IsGroupOwner()
356 TrustedGroupEntry *groupEntry = GetGroupEntryById(osAccountId, StringGet(&(*entry)->groupId)); in GetRelatedGroups()
887 const char *udid = StringGet(&deviceEntry->udid); in DelDeviceFromDb()
/base/security/device_auth/deps_adapter/os_adapter/impl/src/liteos/
H A Dhc_thread.c33 int res = pthread_setname_np(pthread_self(), StringGet(&thread->name)); in StaticThreadFunc()
/base/security/device_auth/services/session_manager/src/session/v2/expand_sub_session/expand_process_lib/
H A Dsave_trusted_info.c160 if (DeepCopyString(StringGet(&entry->name), &params->groupName) != HC_SUCCESS) { in ClientSendTrustedInfoProcEvent()
166 (DeepCopyString(StringGet(&entry->userId), &params->userIdSelf) != HC_SUCCESS)) { in ClientSendTrustedInfoProcEvent()
496 (DeepCopyString(StringGet(&entry->name), &params->groupName) != HC_SUCCESS)) { in ServerSendTrustedInfoProcEvent()
502 (DeepCopyString(StringGet(&entry->userId), &params->userIdSelf) != HC_SUCCESS)) { in ServerSendTrustedInfoProcEvent()
/base/security/device_auth/services/session_manager/src/session/v2/
H A Ddev_session_v2.c686 if (memcpy_s(userId, userIdLen, StringGet(&(*ptr)->userId), StringLength(&(*ptr)->userId)) != EOK) { in GetSelfUserId()
1092 if (AddStringToJson(impl->context, FIELD_GROUP_ID, StringGet(&entry->id)) != HC_SUCCESS) { in AddP2PGroupInfoToContext()
1106 if (AddStringToJson(impl->context, FIELD_GROUP_ID, StringGet(&entry->id)) != HC_SUCCESS) { in AddIdenticalAccountGroupInfoToContext()
1114 if (AddStringToJson(impl->context, FIELD_USER_ID, StringGet(&entry->userId)) != HC_SUCCESS) { in AddIdenticalAccountGroupInfoToContext()
1124 if (AddStringToJson(impl->context, FIELD_GROUP_ID, StringGet(&entry->id)) != HC_SUCCESS) { in AddAcrossAccountGroupInfoToContext()
1132 if (AddStringToJson(impl->context, FIELD_USER_ID, StringGet(&entry->userId)) != HC_SUCCESS) { in AddAcrossAccountGroupInfoToContext()
1136 if (AddStringToJson(impl->context, FIELD_SHARED_USER_ID, StringGet(&entry->sharedUserId)) != HC_SUCCESS) { in AddAcrossAccountGroupInfoToContext()
1170 if (AddStringToJson(impl->context, FIELD_AUTH_ID, StringGet(&deviceEntry->authId)) != HC_SUCCESS) { in AddDevInfoToContext()
1209 bool isSame = (strcmp(StringGet(&(groupEntry->userId)), peerUserId) == 0); in IsPeerSameUserId()
1231 if (AddStringToJson(impl->context, FIELD_GROUP_ID, StringGet( in AddAcrossAccountAuthInfoToContext()
[all...]
H A 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/legacy/group_manager/src/group_operation/
H A Dgroup_operation.c61 if (CheckGroupAccessible(osAccountId, StringGet(&(*groupEntryPtr)->id), appId) == HC_SUCCESS) { in RemoveNoPermissionGroup()
201 TrustedGroupEntry *groupEntry = GetGroupEntryById(osAccountId, StringGet(&(*entry)->groupId)); in QueryRelatedGroupsForGetPk()
225 const char *authId = StringGet(&deviceEntry->authId); in GetPkByParams()
296 const char *groupId = StringGet(&((*entry)->id)); in AddAllPkInfoToList()
/base/security/device_auth/services/session_manager/src/session/v1/compatible_auth_sub_session/
H A Dcompatible_auth_sub_session_common.c127 const char *serviceType = StringGet(&(localAuthInfo->serviceType)); in AddGeneralParams()
240 const char *groupId = StringGet(&(groupInfo->id)); in FillAuthParams()
/base/security/device_auth/services/
H A Ddevice_auth.c117 const char *udid = StringGet(&(*deviceEntry)->udid); in GetUdidByGroup()
146 const char *groupId = StringGet(&(groupEntry->id)); in GetDeviceIdByUdidHash()
241 if (AddStringToJson(context, FIELD_GROUP_ID, StringGet(&entry->id)) != HC_SUCCESS) { in AddGroupInfoToContextByDb()
251 if (AddStringToJson(context, FIELD_GROUP_NAME, StringGet(&entry->name)) != HC_SUCCESS) { in AddGroupInfoToContextByDb()
283 if (AddStringToJson(context, FIELD_AUTH_ID, StringGet(&devAuthParams->authId)) != HC_SUCCESS) { in AddDevInfoToContextByDb()
/base/security/device_auth/test/unittest/deviceauth/unit_test/source/
H A Dcommon_lib_test.cpp304 const char *retStr = StringGet(nullptr); in HWTEST_F()
306 retStr = StringGet(&selfStr); in HWTEST_F()

Completed in 35 milliseconds

12