Home
last modified time | relevance | path

Searched refs:GetIntFromJson (Results 1 - 25 of 67) sorted by relevance

123

/base/security/device_auth/services/session_manager/src/session/v1/compatible_auth_sub_session/
H A Dcompatible_auth_sub_session_util.c39 if (GetIntFromJson(in, FIELD_AUTH_FORM, &authForm) != HC_SUCCESS) { in GetAuthModuleType()
70 (void)GetIntFromJson(confirmationJson, FIELD_OS_ACCOUNT_ID, &osAccountId); in CombineAuthConfirmData()
85 if (GetIntFromJson(dataFromClient, FIELD_AUTH_FORM, &authForm) != HC_SUCCESS) { in CombineAuthConfirmData()
H A Dcompatible_auth_sub_session.c28 (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()
/base/security/device_auth/services/legacy/authenticators/src/account_related/
H A Daccount_task_main.c109 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 Daccount_module.c39 if (GetIntFromJson(in, FIELD_OPERATION_CODE, &opCode) != HC_SUCCESS) { in IsAccountMsgNeedIgnore()
53 if (GetIntFromJson(in, key, (int32_t *)&message) == HC_SUCCESS) { in IsAccountMsgNeedIgnore()
/base/security/access_token/services/common/config_policy/src/
H A Dconfig_policy_loader.cpp90 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()
/base/security/device_auth/services/session_manager/src/session/v1/compatible_bind_sub_session/
H A Dcompatible_bind_sub_session.c45 if (GetIntFromJson(jsonParams, FIELD_OS_ACCOUNT_ID, &osAccountId) != HC_SUCCESS) { in CheckInvitePeer()
65 if (GetIntFromJson(jsonParams, FIELD_GROUP_TYPE, &groupType) != HC_SUCCESS) { in CheckJoinPeer()
117 if (GetIntFromJson(params, FIELD_OS_ACCOUNT_ID, &osAccountId) != HC_SUCCESS) { in CreateBaseBindSubSession()
236 if (GetIntFromJson(params, FIELD_GROUP_ERROR_MSG, &errorCode) == HC_SUCCESS) { in CheckPeerStatus()
247 int32_t res = GetIntFromJson(jsonParams, FIELD_PEER_USER_TYPE, &peerUserType); in TryAddPeerUserTypeToParams()
353 (void)GetIntFromJson(params, FIELD_GROUP_VISIBILITY, &groupVisibility); in SetGroupVisibility()
361 (void)GetIntFromJson(params, FIELD_EXPIRE_TIME, &expireTime); in SetGroupExpireTime()
452 (void)GetIntFromJson(session->params, FIELD_USER_TYPE, &userType); in AddGroupAndLocalDevIfNotExist()
460 (void)GetIntFromJson(session->params, FIELD_PEER_USER_TYPE, &peerUserType); in AddPeerDevToGroup()
703 if (GetIntFromJson(jsonParam in AddRecvModuleDataToParams()
[all...]
H A Dcompatible_bind_sub_session_common.c40 (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 Dcompatible_bind_sub_session_util.c53 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()
/base/security/access_token/services/tokensyncmanager/src/command/
H A Dbase_remote_command.cpp54 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()
/base/security/access_token/frameworks/common/include/
H A Djson_parser.h29 static bool GetIntFromJson(const nlohmann::json& j, const std::string& tag, int& out);
/base/security/device_auth/services/identity_manager/src/
H A Didentity_pin.c81 (void)GetIntFromJson(in, FIELD_PROTOCOL_EXPAND, &protocolExpandVal); in SetLiteProtocolsForPinType()
206 if (GetIntFromJson(urlJson, PRESHARED_URL_CREDENTIAL_TYPE, &credentialType) != HC_SUCCESS) { in GetCredInfoByPeerUrl()
239 if (GetIntFromJson(in, FIELD_OS_ACCOUNT_ID, &osAccountId) != HC_SUCCESS) { in AuthGeneratePskUsePin()
259 (void)GetIntFromJson(in, FIELD_PROTOCOL_EXPAND, &protocolExpandVal); in CheckPinLenForStandardIso()
H A Didentity_p2p.c38 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 Didentity_group.c303 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(i in GetSharedSecretByPeerCert()
[all...]
/base/security/device_auth/services/session_manager/src/session/v2/
H A Ddev_session_v2.c113 if (GetIntFromJson(impl->context, FIELD_USER_TYPE, &userType) != HC_SUCCESS) { in CmdExchangePkGenerator()
118 if (GetIntFromJson(impl->context, FIELD_OS_ACCOUNT_ID, &osAccountId) != HC_SUCCESS) { in CmdExchangePkGenerator()
153 if (GetIntFromJson(impl->context, FIELD_OS_ACCOUNT_ID, &osAccountId) != HC_SUCCESS) { in CmdImportAuthCodeGenerator()
158 if (GetIntFromJson(impl->context, FIELD_USER_TYPE, &userType) != HC_SUCCESS) { in CmdImportAuthCodeGenerator()
181 if (GetIntFromJson(impl->context, FIELD_OS_ACCOUNT_ID, &osAccountId) != HC_SUCCESS) { in CmdSaveTrustedInfoGenerator()
187 (void)GetIntFromJson(impl->context, FIELD_GROUP_VISIBILITY, &visibility); in CmdSaveTrustedInfoGenerator()
189 (void)GetIntFromJson(impl->context, FIELD_USER_TYPE, &userType); in CmdSaveTrustedInfoGenerator()
215 if (GetIntFromJson(impl->context, FIELD_OS_ACCOUNT_ID, &osAccountId) != HC_SUCCESS) { in CmdMkAgreeGenerator()
618 if (GetIntFromJson(context, FIELD_OS_ACCOUNT_ID, &osAccountId) != HC_SUCCESS) { in GetPeerCertInfo()
623 if (GetIntFromJson(credInf in GetPeerCertInfo()
[all...]
H A Ddev_session_util.c51 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()
/base/security/device_auth/services/legacy/authenticators/src/account_unrelated/pake_task/standard_exchange_task/
H A Dstandard_server_bind_exchange_task.c87 (void)GetIntFromJson(in, FIELD_PEER_USER_TYPE, &(params->userTypePeer)); in ExchangeResponse()
138 res = GetIntFromJson(in, "message", &message); in Process()
H A Dstandard_client_bind_exchange_task.c94 (void)GetIntFromJson(in, FIELD_PEER_USER_TYPE, &(params->userTypePeer)); in ExchangeConfirm()
126 res = GetIntFromJson(in, "message", &message); in Process()
/base/security/device_auth/services/legacy/group_auth/src/group_auth_manager/account_unrelated_group_auth/
H A Daccount_unrelated_group_auth.c127 if (GetIntFromJson(authParam, FIELD_SELF_TYPE, &userType) != HC_SUCCESS) { in AddSelfTypeToSelfData()
141 if (GetIntFromJson(authParam, FIELD_PEER_USER_TYPE, &peerUserType) != HC_SUCCESS) { in AddPeerTypeToSelfData()
155 (void)GetIntFromJson(authParam, FIELD_KEY_LENGTH, &keyLen); in AddSessionKeyToSelfData()
306 (void)GetIntFromJson(paramsData, FIELD_KEY_LENGTH, &keyLen); in AddNonAccountAuthInfo()
414 if (GetIntFromJson(dataFromClient, FIELD_OS_ACCOUNT_ID, &osAccountId) != HC_SUCCESS) { in GetAuthParamsVecForServer()
/base/security/device_auth/services/session_manager/src/session/
H A Ddev_session_fwk.c104 if (GetIntFromJson(inputEvent, FIELD_TYPE, &eventType) != HC_SUCCESS) { in DecodeEvent()
327 if (GetIntFromJson(impl->context, FIELD_CHANNEL_TYPE, &channelType) != HC_SUCCESS) { in AddChannelInfoToParams()
350 if (GetIntFromJson(impl->context, FIELD_OS_ACCOUNT_ID, &osAccountId) != HC_SUCCESS) { in CombindServerBindParams()
359 (void)GetIntFromJson(impl->context, FIELD_PROTOCOL_EXPAND, &protocolExpandVal); in CombindServerBindParams()
609 if (GetIntFromJson(context, FIELD_OPERATION_CODE, &opCode) != HC_SUCCESS) { in BuildDevSessionByContext()
614 if (GetIntFromJson(context, FIELD_CHANNEL_TYPE, &channelType) != HC_SUCCESS) { in BuildDevSessionByContext()
/base/security/device_auth/services/legacy/authenticators/src/account_unrelated/pake_task/
H A Dpake_task_common.c192 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()
/base/security/device_auth/services/
H A Ddevice_auth.c206 (void)GetIntFromJson(context, FIELD_USER_TYPE, &userType); in AddDevInfoToContextByInput()
232 if (GetIntFromJson(context, FIELD_OS_ACCOUNT_ID, &osAccountId) != HC_SUCCESS) { in AddGroupInfoToContextByDb()
263 if (GetIntFromJson(context, FIELD_OS_ACCOUNT_ID, &osAccountId) != HC_SUCCESS) { in AddDevInfoToContextByDb()
485 if (GetIntFromJson(context, FIELD_OS_ACCOUNT_ID, &osAccountId) != HC_SUCCESS) { in CheckGroupVisibility()
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()
701 (void)GetIntFromJson(context, FIELD_OS_ACCOUNT_ID, &osAccountId); in AddOsAccountIdToContextIfValid()
766 if (GetIntFromJson(receivedMsg, FIELD_GROUP_OP, &opCode) != HC_SUCCESS) { in OpenServerBindSession()
767 if (GetIntFromJson(receivedMs in OpenServerBindSession()
[all...]
/base/security/device_auth/services/legacy/group_auth/src/group_auth_manager/account_related_group_auth/
H A Daccount_related_group_auth.c378 if (GetIntFromJson(data, FIELD_AUTH_FORM, &authForm) != HC_SUCCESS) { in QueryAuthGroupForServer()
493 if (GetIntFromJson(data, FIELD_AUTH_FORM, &authForm) != HC_SUCCESS) { in QueryGroupForAccountPlugin()
593 if (GetIntFromJson(dataFromClient, FIELD_OS_ACCOUNT_ID, &osAccountId) != HC_SUCCESS) { in AddServerParamsForAccountPlugin()
621 if (GetIntFromJson(dataFromClient, FIELD_OS_ACCOUNT_ID, &osAccountId) != HC_SUCCESS) { in AddSelfAccountInfoForServer()
727 if (GetIntFromJson(sendToSelf, FIELD_CREDENTIAL_TYPE, &credentialType) != HC_SUCCESS) { in PrepareTrustedDeviceInfo()
756 if (GetIntFromJson(authParam, FIELD_OS_ACCOUNT_ID, &osAccountId) != HC_SUCCESS) { in AddTrustedDeviceForAccount()
841 if (GetIntFromJson(authParam, FIELD_AUTH_FORM, &authForm) != HC_SUCCESS) { in AccountOnFinishToSelf()
/base/security/device_auth/services/creds_manager/src/
H A Dcreds_manager.c47 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()
/base/security/device_auth/services/legacy/authenticators/src/account_related/auth/pake_v2_auth_task/
H A Dpake_v2_auth_server_task.c122 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()
/base/security/device_auth/test/unittest/deviceauth/source/
H A Dp2p_bind_ipc_test.cpp214 if (GetIntFromJson(in, FIELD_CRED_OP_RESULT, &res) != HC_SUCCESS) { in CreateServerKeyPair()
215 printf("GetIntFromJson result failed !\n"); in CreateServerKeyPair()
261 if (GetIntFromJson(in, FIELD_CRED_OP_RESULT, &res) != HC_SUCCESS) { in DeleteServerKeyPair()
262 printf("GetIntFromJson result failed !\n"); in DeleteServerKeyPair()
300 if (GetIntFromJson(in, FIELD_CRED_OP_RESULT, &res) != HC_SUCCESS) { in ProcessCredentialDemo()
301 printf("GetIntFromJson result failed !\n"); in ProcessCredentialDemo()
336 if (GetIntFromJson(in, FIELD_CRED_OP_RESULT, &res) != HC_SUCCESS) { in ProcessCredentialDemoImport()
337 printf("GetIntFromJson result failed !\n"); in ProcessCredentialDemoImport()

Completed in 23 milliseconds

123