/ohos5.0/base/security/device_auth/services/legacy/authenticators/src/account_related/ |
H A D | account_task_main.c | 109 if ((GetIntFromJson(in, FIELD_MESSAGE, &message) != CLIB_SUCCESS) && in IsPeerErrMessage() 110 (GetIntFromJson(in, FIELD_STEP, &message) != CLIB_SUCCESS)) { in IsPeerErrMessage() 118 if (GetIntFromJson(in, FIELD_ERROR_CODE, &res) != CLIB_SUCCESS) { in IsPeerErrMessage() 152 if (GetIntFromJson(in, FIELD_OPERATION_CODE, &operationCode) != CLIB_SUCCESS) { in NegotiateAndCreateSubTask() 156 if (GetIntFromJson(in, FIELD_CREDENTIAL_TYPE, &credentialType) != CLIB_SUCCESS) { in NegotiateAndCreateSubTask() 185 if (GetIntFromJson(in, FIELD_OPERATION_CODE, &operationCode) != CLIB_SUCCESS) { in AccountSendCreateError()
|
H A D | account_module.c | 39 if (GetIntFromJson(in, FIELD_OPERATION_CODE, &opCode) != HC_SUCCESS) { in IsAccountMsgNeedIgnore() 53 if (GetIntFromJson(in, key, (int32_t *)&message) == HC_SUCCESS) { in IsAccountMsgNeedIgnore()
|
/ohos5.0/base/security/access_token/services/common/config_policy/src/ |
H A D | config_policy_loader.cpp | 90 if (!JsonParser::GetIntFromJson(j, TEMP_PERM_CANCLE_TIME_KEY, a.cancleTime)) { in from_json() 97 if (!JsonParser::GetIntFromJson(j, RECORD_SIZE_MAXIMUM_KEY, p.sizeMaxImum)) { in from_json() 101 if (!JsonParser::GetIntFromJson(j, RECORD_AGING_TIME_KEY, p.agingTime)) { in from_json() 116 if (!JsonParser::GetIntFromJson(j, SEND_REQUEST_REPEAT_TIMES_KEY, t.sendRequestRepeatTimes)) { in from_json()
|
/ohos5.0/base/security/device_auth/services/session_manager/src/session/v1/compatible_auth_sub_session/ |
H A D | compatible_auth_sub_session_util.c | 39 if (GetIntFromJson(in, FIELD_AUTH_FORM, &authForm) != HC_SUCCESS) { in GetAuthModuleType() 70 (void)GetIntFromJson(confirmationJson, FIELD_OS_ACCOUNT_ID, &osAccountId); in CombineAuthConfirmData() 81 if (GetIntFromJson(dataFromClient, FIELD_AUTH_FORM, &authForm) != HC_SUCCESS) { in CombineAuthConfirmData()
|
H A D | compatible_auth_sub_session.c | 28 (void)GetIntFromJson(authParam, FIELD_KEY_LENGTH, &keyLen); in CheckInputAuthParams() 92 if (GetIntFromJson(dataFromClient, FIELD_AUTH_FORM, &authForm) != HC_SUCCESS) { in GetAuthInfoForServer() 108 if (GetIntFromJson(in, FIELD_GROUP_ERROR_MSG, &groupErrMsg) != HC_SUCCESS) { in IsPeerGroupAuthError() 304 if (GetIntFromJson(jsonParams, FIELD_OS_ACCOUNT_ID, &osAccountId) != HC_SUCCESS) { in CreateClientAuthSubSession()
|
/ohos5.0/base/security/access_token/services/tokensyncmanager/src/command/ |
H A D | base_remote_command.cpp | 54 static void GetIntFromJson(const nlohmann::json& jsonObject, const std::string& tag, int32_t& out) in GetIntFromJson() function 73 GetIntFromJson(jsonObject, JSON_REQUEST_VERSION, remoteProtocol_.requestVersion); in FromRemoteProtocolJson() 78 GetIntFromJson(jsonObject, JSON_STATUS_CODE, remoteProtocol_.statusCode); in FromRemoteProtocolJson() 80 GetIntFromJson(jsonObject, JSON_RESPONSE_VERSION, remoteProtocol_.responseVersion); in FromRemoteProtocolJson() 181 GetIntFromJson(hapTokenJson, JSON_USERID, hapTokenBasicInfo.userID); in FromHapTokenBasicInfoJson() 183 GetIntFromJson(hapTokenJson, JSON_INST_INDEX, hapTokenBasicInfo.instIndex); in FromHapTokenBasicInfoJson() 184 GetIntFromJson(hapTokenJson, JSON_DLP_TYPE, hapTokenBasicInfo.dlpType); in FromHapTokenBasicInfoJson()
|
/ohos5.0/base/security/device_auth/services/session_manager/src/session/v1/compatible_bind_sub_session/ |
H A D | compatible_bind_sub_session.c | 46 if (GetIntFromJson(jsonParams, FIELD_OS_ACCOUNT_ID, &osAccountId) != HC_SUCCESS) { in CheckInvitePeer() 66 if (GetIntFromJson(jsonParams, FIELD_GROUP_TYPE, &groupType) != HC_SUCCESS) { in CheckJoinPeer() 118 if (GetIntFromJson(params, FIELD_OS_ACCOUNT_ID, &osAccountId) != HC_SUCCESS) { in CreateBaseBindSubSession() 237 if (GetIntFromJson(params, FIELD_GROUP_ERROR_MSG, &errorCode) == HC_SUCCESS) { in CheckPeerStatus() 375 (void)GetIntFromJson(params, FIELD_GROUP_VISIBILITY, &groupVisibility); in SetGroupVisibility() 383 (void)GetIntFromJson(params, FIELD_EXPIRE_TIME, &expireTime); in SetGroupExpireTime() 474 (void)GetIntFromJson(session->params, FIELD_USER_TYPE, &userType); in AddGroupAndLocalDevIfNotExist() 482 (void)GetIntFromJson(session->params, FIELD_PEER_USER_TYPE, &peerUserType); in AddPeerDevToGroup() 725 if (GetIntFromJson(jsonParams, FIELD_MESSAGE, &message) != HC_SUCCESS) { in AddRecvModuleDataToParams() 730 (void)GetIntFromJson(jsonParams, FIELD_AUTH_FORM, &authForm); in AddRecvModuleDataToParams() [all …]
|
H A D | compatible_bind_sub_session_common.c | 40 (void)GetIntFromJson(jsonParams, FIELD_PROTOCOL_EXPAND, &protocolExpandVal); in AddProtocolExpandVal() 84 if (GetIntFromJson(jsonParams, FIELD_GROUP_TYPE, &groupType) != HC_SUCCESS) { in AddGroupTypeIfValid() 102 (void)GetIntFromJson(jsonParams, FIELD_GROUP_VISIBILITY, &groupVisibility); in AddGroupVisibilityIfValidOrDefault() 117 (void)GetIntFromJson(jsonParams, FIELD_EXPIRE_TIME, &expireTime); in AddExpireTimeIfValidOrDefault() 179 (void)GetIntFromJson(jsonParams, FIELD_USER_TYPE, &userType); in AddAuthIdAndUserTypeIfValidOrDefault() 228 (void)GetIntFromJson(jsonParams, FIELD_USER_TYPE, &userType); in AddUserTypeIfValidOrDefault() 426 if (GetIntFromJson(session->params, FIELD_USER_TYPE, &userType) != HC_SUCCESS) { in AddGroupAndDevInfoToParams() 490 (void)GetIntFromJson(session->params, FIELD_PROTOCOL_EXPAND, &protocolExpandVal); in AddProtocolExpandValToParams()
|
H A D | compatible_bind_sub_session_util.c | 53 if (GetIntFromJson(returnData, FIELD_USER_TYPE, &userType) == HC_SUCCESS) { in AddUserTypeIfExistAndValid() 69 if (GetIntFromJson(returnData, FIELD_GROUP_VISIBILITY, &groupVisibility) == HC_SUCCESS) { in AddGroupVisibilityIfExistAndValid() 85 if (GetIntFromJson(returnData, FIELD_EXPIRE_TIME, &expireTime) == HC_SUCCESS) { in AddExpireTimeIfExistAndValid()
|
/ohos5.0/base/security/device_auth/services/session_manager/src/session/v2/ |
H A D | dev_session_v2.c | 113 if (GetIntFromJson(impl->context, FIELD_USER_TYPE, &userType) != HC_SUCCESS) { in CmdExchangePkGenerator() 158 if (GetIntFromJson(impl->context, FIELD_USER_TYPE, &userType) != HC_SUCCESS) { in CmdImportAuthCodeGenerator() 187 (void)GetIntFromJson(impl->context, FIELD_GROUP_VISIBILITY, &visibility); in CmdSaveTrustedInfoGenerator() 189 (void)GetIntFromJson(impl->context, FIELD_USER_TYPE, &userType); in CmdSaveTrustedInfoGenerator() 623 if (GetIntFromJson(credInfo, FIELD_SIGN_ALG, &signAlg) != HC_SUCCESS) { in GetPeerCertInfo() 701 if (GetIntFromJson(inputData, FIELD_TYPE, &credType) != HC_SUCCESS) { in GetSelfCredByInput() 1500 if (GetIntFromJson(inputData, FIELD_INDEX, &credIndex) != HC_SUCCESS) { in SyncCredState() 1505 if (GetIntFromJson(inputData, FIELD_TOTAL, &credNum) != HC_SUCCESS) { in SyncCredState() 1565 if (GetIntFromJson(cmd, FIELD_ID, &id) != HC_SUCCESS) { in IsPeerSupportCmd() 1613 if (GetIntFromJson(cmd, FIELD_ID, &id) != HC_SUCCESS) { in PeerCmdsNegotiate() [all …]
|
H A D | dev_session_util.c | 51 if (GetIntFromJson(context, FIELD_OS_ACCOUNT_ID, &osAccountId) != HC_SUCCESS) { in GetPdidByContext() 221 if (GetIntFromJson(context, FIELD_OS_ACCOUNT_ID, &osAccountId) != HC_SUCCESS) { in SetPeerAuthIdByDb() 286 if (GetIntFromJson(urlJson, PRESHARED_URL_TRUST_TYPE, &trustType) != HC_SUCCESS) { in IsP2pAuth() 397 if (GetIntFromJson(context, FIELD_OS_ACCOUNT_ID, &osAccountId) != HC_SUCCESS) { in CheckPeerPkInfoForPdid()
|
/ohos5.0/base/security/device_auth/services/legacy/group_auth/src/group_auth_manager/account_unrelated_group_auth/ |
H A D | account_unrelated_group_auth.c | 128 if (GetIntFromJson(authParam, FIELD_SELF_TYPE, &userType) != HC_SUCCESS) { in AddSelfTypeToSelfData() 142 if (GetIntFromJson(authParam, FIELD_PEER_USER_TYPE, &peerUserType) != HC_SUCCESS) { in AddPeerTypeToSelfData() 156 (void)GetIntFromJson(authParam, FIELD_KEY_LENGTH, &keyLen); in AddSessionKeyToSelfData() 247 (void)GetIntFromJson(authParam, FIELD_OS_ACCOUNT_ID, &eventData.osAccountId); in ReportV1UnrelatedAuthCallEvent() 330 (void)GetIntFromJson(paramsData, FIELD_KEY_LENGTH, &keyLen); in AddNonAccountAuthInfo() 438 if (GetIntFromJson(dataFromClient, FIELD_OS_ACCOUNT_ID, &osAccountId) != HC_SUCCESS) { in GetAuthParamsVecForServer()
|
/ohos5.0/base/security/device_auth/services/ |
H A D | device_auth.c | 206 (void)GetIntFromJson(context, FIELD_USER_TYPE, &userType); in AddDevInfoToContextByInput() 232 if (GetIntFromJson(context, FIELD_OS_ACCOUNT_ID, &osAccountId) != HC_SUCCESS) { in AddGroupInfoToContextByDb() 524 if (GetIntFromJson(context, FIELD_OPERATION_CODE, &opCode) != HC_SUCCESS) { in CheckBindParams() 530 (void)GetIntFromJson(context, FIELD_PROTOCOL_EXPAND, &protocolExpandVal); in CheckBindParams() 589 (void)GetIntFromJson(in, FIELD_PROTOCOL_EXPAND, &protocolExpandVal); in GetAddMemberCallEventFuncName() 696 (void)GetIntFromJson(context, FIELD_OS_ACCOUNT_ID, &osAccountId); in AddOsAccountIdToContextIfValid() 757 if (GetIntFromJson(receivedMsg, FIELD_GROUP_OP, &opCode) != HC_SUCCESS) { in OpenServerBindSession() 758 if (GetIntFromJson(receivedMsg, FIELD_OP_CODE, &opCode) != HC_SUCCESS) { in OpenServerBindSession() 977 (void)GetIntFromJson(context, FIELD_OS_ACCOUNT_ID, &osAccountId); in BuildServerAuthContext() 1059 if (GetIntFromJson(receivedMsg, FIELD_AUTH_FORM, &opCode) != HC_SUCCESS) { in OpenServerAuthSession() [all …]
|
/ohos5.0/base/security/device_auth/services/identity_manager/src/ |
H A D | identity_p2p.c | 38 if (GetIntFromJson(in, FIELD_OS_ACCOUNT_ID, &osAccountId) != HC_SUCCESS) { in CombineQueryCredentialParams() 48 if (GetIntFromJson(in, FIELD_ACQURIED_TYPE, &acquireType) != HC_SUCCESS) { in CombineQueryCredentialParams() 108 (void)GetIntFromJson(in, FIELD_KEY_TYPE, &keyType); in GetCredInfosByPeerIdentity() 246 if (GetIntFromJson(in, FIELD_OS_ACCOUNT_ID, &osAccountId) != HC_SUCCESS) { in GetDirectAuthPskAliasCreateIfNeeded() 291 if (GetIntFromJson(in, FIELD_OS_ACCOUNT_ID, &osAccountId) != HC_SUCCESS) { in GetSharedSecretByUrl()
|
H A D | identity_group.c | 303 if (GetIntFromJson(in, FIELD_OS_ACCOUNT_ID, &osAccountId) != HC_SUCCESS) { in GetCredInfosByPeerIdentity() 344 if (GetIntFromJson(urlJson, PRESHARED_URL_KEY_TYPE, &keyType) != HC_SUCCESS) { in SetIdentityInfoByUrl() 374 if (GetIntFromJson(in, FIELD_OS_ACCOUNT_ID, &osAccountId) != HC_SUCCESS) { in CheckAndGetP2pCredInfo() 422 if (GetIntFromJson(urlJson, PRESHARED_URL_TRUST_TYPE, &trustType) != HC_SUCCESS) { in GetCredInfoByPeerUrl() 482 if (GetIntFromJson(in, FIELD_OS_ACCOUNT_ID, &osAccountId) != HC_SUCCESS) { in AuthGeneratePsk() 725 if (GetIntFromJson(in, FIELD_OS_ACCOUNT_ID, &osAccountId) != HC_SUCCESS) { in GeneratePskAliasAndCheckExist() 772 if (GetIntFromJson(in, FIELD_OS_ACCOUNT_ID, &osAccountId) != HC_SUCCESS) { in GetSharedSecretForP2pInPake() 855 if (GetIntFromJson(urlJson, PRESHARED_URL_TRUST_TYPE, &trustType) != HC_SUCCESS) { in GetSharedSecretByUrl() 891 if (GetIntFromJson(in, FIELD_OS_ACCOUNT_ID, &osAccountId) != HC_SUCCESS) { in GetCredInfoByPeerCert() 920 if (GetIntFromJson(in, FIELD_OS_ACCOUNT_ID, &osAccountId) != HC_SUCCESS) { in GetSharedSecretByPeerCert()
|
H A D | identity_pin.c | 81 (void)GetIntFromJson(in, FIELD_PROTOCOL_EXPAND, &protocolExpandVal); in SetLiteProtocolsForPinType() 202 if (GetIntFromJson(urlJson, PRESHARED_URL_CREDENTIAL_TYPE, &credentialType) != HC_SUCCESS) { in GetCredInfoByPeerUrl() 235 if (GetIntFromJson(in, FIELD_OS_ACCOUNT_ID, &osAccountId) != HC_SUCCESS) { in AuthGeneratePskUsePin() 255 (void)GetIntFromJson(in, FIELD_PROTOCOL_EXPAND, &protocolExpandVal); in CheckPinLenForStandardIso()
|
/ohos5.0/base/security/device_auth/services/legacy/authenticators/src/account_related/auth/pake_v2_auth_task/ |
H A D | pake_v2_auth_server_task.c | 122 GOTO_IF_ERR(GetIntFromJson(in, FIELD_AUTH_FORM, &innerTask->params.authForm)); in AsyAuthServerStepOne() 133 GOTO_IF_ERR(GetIntFromJson(in, FIELD_CREDENTIAL_TYPE, &innerTask->params.credentialType)); in AsyAuthServerStepOne() 134 GOTO_IF_ERR(GetIntFromJson(in, FIELD_AUTH_KEY_ALG_ENCODE, &innerTask->params.authKeyAlgEncode)); in AsyAuthServerStepOne() 242 if (GetIntFromJson(in, FIELD_STEP, &step) != HC_SUCCESS) { in ProcessServerTask()
|
/ohos5.0/base/security/device_auth/services/session_manager/src/session/ |
H A D | dev_session_fwk.c | 105 if (GetIntFromJson(inputEvent, FIELD_TYPE, &eventType) != HC_SUCCESS) { in DecodeEvent() 234 (void)GetIntFromJson(impl->context, FIELD_OS_ACCOUNT_ID, &eventData.osAccountId); in ReportBindAndAuthCallEvent() 387 if (GetIntFromJson(impl->context, FIELD_CHANNEL_TYPE, &channelType) != HC_SUCCESS) { in AddChannelInfoToParams() 410 if (GetIntFromJson(impl->context, FIELD_OS_ACCOUNT_ID, &osAccountId) != HC_SUCCESS) { in CombindServerBindParams() 419 (void)GetIntFromJson(impl->context, FIELD_PROTOCOL_EXPAND, &protocolExpandVal); in CombindServerBindParams() 670 if (GetIntFromJson(context, FIELD_OPERATION_CODE, &opCode) != HC_SUCCESS) { in BuildDevSessionByContext() 675 if (GetIntFromJson(context, FIELD_CHANNEL_TYPE, &channelType) != HC_SUCCESS) { in BuildDevSessionByContext()
|
/ohos5.0/base/security/device_auth/services/legacy/group_auth/src/group_auth_manager/account_related_group_auth/ |
H A D | account_related_group_auth.c | 379 if (GetIntFromJson(data, FIELD_AUTH_FORM, &authForm) != HC_SUCCESS) { in QueryAuthGroupForServer() 494 if (GetIntFromJson(data, FIELD_AUTH_FORM, &authForm) != HC_SUCCESS) { in QueryGroupForAccountPlugin() 594 if (GetIntFromJson(dataFromClient, FIELD_OS_ACCOUNT_ID, &osAccountId) != HC_SUCCESS) { in AddServerParamsForAccountPlugin() 625 if (GetIntFromJson(dataFromClient, FIELD_OS_ACCOUNT_ID, &osAccountId) != HC_SUCCESS) { in AddSelfAccountInfoForServer() 730 if (GetIntFromJson(sendToSelf, FIELD_CREDENTIAL_TYPE, &credentialType) != HC_SUCCESS) { in PrepareTrustedDeviceInfo() 759 if (GetIntFromJson(authParam, FIELD_OS_ACCOUNT_ID, &osAccountId) != HC_SUCCESS) { in AddTrustedDeviceForAccount() 821 (void)GetIntFromJson(authParam, FIELD_OS_ACCOUNT_ID, &eventData.osAccountId); in ReportV1RelatedAuthCallEvent() 866 if (GetIntFromJson(authParam, FIELD_AUTH_FORM, &authForm) != HC_SUCCESS) { in AccountOnFinishToSelf()
|
/ohos5.0/base/security/device_auth/services/legacy/group_manager/src/group_operation/group_operation_common/ |
H A D | group_operation_common.c | 465 (void)GetIntFromJson(jsonParams, FIELD_USER_TYPE, &userType); in CheckUserTypeIfExist() 476 (void)GetIntFromJson(jsonParams, FIELD_GROUP_VISIBILITY, &groupVisibility); in CheckGroupVisibilityIfExist() 487 (void)GetIntFromJson(jsonParams, FIELD_EXPIRE_TIME, &expireTime); in CheckExpireTimeIfExist() 539 (void)GetIntFromJson(jsonParams, FIELD_GROUP_VISIBILITY, &groupVisibility); in AddGroupVisibilityOrDefault() 547 (void)GetIntFromJson(jsonParams, FIELD_EXPIRE_TIME, &expireTime); in AddExpireTimeOrDefault() 656 if (GetIntFromJson(jsonParams, FIELD_CREDENTIAL_TYPE, &credType) != HC_SUCCESS) { in AddCredTypeToParams() 667 (void)GetIntFromJson(jsonParams, FIELD_USER_TYPE, &userType); in AddUserTypeToParamsOrDefault() 969 (void)GetIntFromJson(jsonParams, FIELD_USER_TYPE, &userType); in ProcessKeyPair()
|
/ohos5.0/base/security/device_auth/services/legacy/authenticators/src/account_unrelated/pake_task/ |
H A D | pake_task_common.c | 192 if (GetIntFromJson(in, FIELD_SELF_TYPE, &(params->userType)) != HC_SUCCESS) { in FillUserType() 197 if (GetIntFromJson(in, FIELD_PEER_USER_TYPE, &(params->userTypePeer)) != HC_SUCCESS) { in FillUserType() 257 if (GetIntFromJson(in, FIELD_OPERATION_CODE, &(params->opCode)) != HC_SUCCESS) { in FillDasPakeParams()
|
/ohos5.0/base/security/device_auth/services/legacy/authenticators/src/account_unrelated/pake_task/standard_exchange_task/ |
H A D | standard_client_bind_exchange_task.c | 94 (void)GetIntFromJson(in, FIELD_PEER_USER_TYPE, &(params->userTypePeer)); in ExchangeConfirm() 126 res = GetIntFromJson(in, "message", &message); in Process()
|
H A D | standard_server_bind_exchange_task.c | 87 (void)GetIntFromJson(in, FIELD_PEER_USER_TYPE, &(params->userTypePeer)); in ExchangeResponse() 138 res = GetIntFromJson(in, "message", &message); in Process()
|
/ohos5.0/base/security/device_auth/test/unittest/deviceauth/source/ |
H A D | p2p_bind_ipc_test.cpp | 214 if (GetIntFromJson(in, FIELD_CRED_OP_RESULT, &res) != HC_SUCCESS) { in CreateServerKeyPair() 261 if (GetIntFromJson(in, FIELD_CRED_OP_RESULT, &res) != HC_SUCCESS) { in DeleteServerKeyPair() 300 if (GetIntFromJson(in, FIELD_CRED_OP_RESULT, &res) != HC_SUCCESS) { in ProcessCredentialDemo() 336 if (GetIntFromJson(in, FIELD_CRED_OP_RESULT, &res) != HC_SUCCESS) { in ProcessCredentialDemoImport()
|
/ohos5.0/base/security/device_auth/services/creds_manager/src/ |
H A D | creds_manager.c | 47 if (GetIntFromJson(urlJson, PRESHARED_URL_KEY_TYPE, &keyType) != HC_SUCCESS) { in IsPinAuth() 54 if (GetIntFromJson(urlJson, PRESHARED_URL_TRUST_TYPE, &trustType) != HC_SUCCESS) { in IsPinAuth()
|