Home
last modified time | relevance | path

Searched refs:acquireType (Results 1 - 3 of 3) sorted by relevance

/base/security/device_auth/services/identity_manager/src/
H A Dcredential_operator.c26 int32_t acquireType; member
284 if (GetIntFromJson(json, FIELD_ACQURIED_TYPE, &param->acquireType) != HC_SUCCESS) { in DecodeRequestParam()
285 LOGE("Failed to get acquireType from reqJsonStr!"); in DecodeRequestParam()
367 if (param->acquireType != P2P_BIND) { in IsKeyExistReturnAliasIfNeeded()
368 LOGE("acquireType invalid! only P2P_BIND is allowed now!"); in IsKeyExistReturnAliasIfNeeded()
371 // Caution: Only acquireType is P2P_BIND, keyType can be set to KEY_ALIAS_P2P_AUTH in IsKeyExistReturnAliasIfNeeded()
422 if (param->acquireType != P2P_BIND) { in QueryCredential()
423 LOGE("acquireType invalid! only P2P_BIND is allowed now!"); in QueryCredential()
427 // Caution: Only acquireType is P2P_BIND, keyType can be set to KEY_ALIAS_P2P_AUTH in QueryCredential()
478 if (param->acquireType ! in GenarateCredential()
[all...]
H A Didentity_p2p.c47 int32_t acquireType = ACQUIRE_TYPE_INVALID; in CombineQueryCredentialParams() local
48 if (GetIntFromJson(in, FIELD_ACQURIED_TYPE, &acquireType) != HC_SUCCESS) { in CombineQueryCredentialParams()
49 LOGE("Failed to get acquireType from context!"); in CombineQueryCredentialParams()
52 if (acquireType != P2P_BIND) { in CombineQueryCredentialParams()
53 LOGE("acquireType invalid! only P2P_BIND is allowed now!"); in CombineQueryCredentialParams()
60 if (AddIntToJson(out, FIELD_ACQURIED_TYPE, acquireType) != HC_SUCCESS) { in CombineQueryCredentialParams()
61 LOGE("add acquireType to json error!"); in CombineQueryCredentialParams()
/base/security/device_auth/services/
H A Ddevice_auth.c887 int32_t acquireType = -1; in BuildP2PBindContext() local
888 if (GetIntFromJson(context, FIELD_ACQURIED_TYPE, &acquireType) != HC_SUCCESS) { in BuildP2PBindContext()
889 LOGE("Failed to get acquireType from reqJsonStr!"); in BuildP2PBindContext()
892 if ((acquireType == P2P_BIND) && AddBoolToJson(context, FIELD_IS_DIRECT_AUTH, true) != HC_SUCCESS) { in BuildP2PBindContext()
896 if (AddIntToJson(context, FIELD_OPERATION_CODE, acquireType) != HC_SUCCESS) { in BuildP2PBindContext()
902 if ((acquireType == P2P_BIND) && in BuildP2PBindContext()

Completed in 5 milliseconds