/base/security/crypto_framework/common/src/ |
D | hcf_string.c | 92 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/ |
D | data_manager.c | 506 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/ |
D | account_related_creds_manager.c | 88 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/ |
D | account_related_group_auth.c | 158 …((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/ |
D | hc_string.h | 79 const char* StringGet(const HcString *self);
|
/base/security/crypto_framework/common/inc/ |
D | hcf_string.h | 62 const char* StringGet(const HcString *self);
|
/base/security/device_auth/services/group_manager/src/group_operation/identical_account_group/ |
D | identical_account_group.c | 218 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/ |
D | creds_manager.c | 61 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/ |
D | account_unrelated_group_auth.c | 271 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/ |
D | across_account_group.c | 207 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/ |
D | group_operation_common.c | 33 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()
|
D | group_operation.c | 56 … 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/ |
D | compatible_bind_sub_session_common.c | 153 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/ |
D | hc_string.c | 122 const char *StringGet(const HcString *self) in StringGet() function
|
/base/security/device_auth/services/group_manager/src/group_operation/peer_to_peer_group/ |
D | peer_to_peer_group.c | 252 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/ |
D | group_auth_data_operation.c | 98 managerStr = StringGet(manager); in GaIsGroupManager() 112 friendStr = StringGet(trustedFriend); in GaIsGroupFriend()
|
/base/security/device_auth/deps_adapter/os_adapter/impl/src/linux/ |
D | hc_thread.c | 33 int res = pthread_setname_np(pthread_self(), StringGet(&thread->name)); in StaticThreadFunc()
|
/base/security/device_auth/deps_adapter/os_adapter/impl/src/liteos/ |
D | hc_thread.c | 29 int res = pthread_setname_np(pthread_self(), StringGet(&thread->name)); in StaticThreadFunc()
|
/base/security/device_auth/services/session_manager/src/session/v2/ |
D | dev_session_v2.c | 930 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()
|
D | dev_session_util.c | 60 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/ |
D | save_trusted_info.c | 136 if (DeepCopyString(StringGet(&entry->name), ¶ms->groupName) != HC_SUCCESS) { in ClientSendTrustedInfoProcEvent() 142 (DeepCopyString(StringGet(&entry->userId), ¶ms->userIdSelf) != HC_SUCCESS)) { in ClientSendTrustedInfoProcEvent() 451 (DeepCopyString(StringGet(&entry->name), ¶ms->groupName) != HC_SUCCESS)) { in ServerSendTrustedInfoProcEvent() 457 (DeepCopyString(StringGet(&entry->userId), ¶ms->userIdSelf) != HC_SUCCESS)) { in ServerSendTrustedInfoProcEvent()
|
/base/security/device_auth/services/ |
D | device_auth.c | 107 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/ |
D | compatible_auth_sub_session_common.c | 103 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/ |
D | common_lib_test.cpp | 306 const char *retStr = StringGet(nullptr); 308 retStr = StringGet(&selfStr);
|
/base/security/crypto_framework/test/unittest/src/ |
D | crypto_common_cov_test.cpp | 433 bool ret = StringGet(nullptr);
|