/base/security/deviceauth/services/authenticators/src/account_unrelated/iso_task/lite_exchange_task/ |
D | das_lite_token_manager.c | 22 static int32_t UnregisterLocalIdentity(const char *pkgName, const char *serviceType, Uint8Buff *aut… in UnregisterLocalIdentity() argument 26 Uint8Buff pkgNameBuff = { (uint8_t *)pkgName, HcStrlen(pkgName) }; in UnregisterLocalIdentity() 47 static int32_t DeletePeerAuthInfo(const char *pkgName, const char *serviceType, Uint8Buff *authIdPe… in DeletePeerAuthInfo() argument 51 Uint8Buff pkgNameBuff = { (uint8_t *)pkgName, HcStrlen(pkgName)}; in DeletePeerAuthInfo()
|
/base/security/deviceauth/services/frameworks/src/module/ |
D | dev_auth_module_manager.c | 63 static bool IsParamsForDasTokenManagerValid(const char *pkgName, const char *serviceType, Uint8Buff… in IsParamsForDasTokenManagerValid() argument 70 if (pkgName == NULL || serviceType == NULL || authId == NULL || authId->val == NULL) { in IsParamsForDasTokenManagerValid() 75 if (HcStrlen(pkgName) == 0 || HcStrlen(serviceType) == 0 || authId->length == 0) { in IsParamsForDasTokenManagerValid() 86 int32_t RegisterLocalIdentity(const char *pkgName, const char *serviceType, Uint8Buff *authId, int … in RegisterLocalIdentity() argument 89 if (!IsParamsForDasTokenManagerValid(pkgName, serviceType, authId, userType, moduleType)) { in RegisterLocalIdentity() 99 int32_t res = dasModule->registerLocalIdentity(pkgName, serviceType, authId, userType); in RegisterLocalIdentity() 107 int32_t UnregisterLocalIdentity(const char *pkgName, const char *serviceType, Uint8Buff *authId, in… in UnregisterLocalIdentity() argument 110 if (!IsParamsForDasTokenManagerValid(pkgName, serviceType, authId, userType, moduleType)) { in UnregisterLocalIdentity() 120 int32_t res = dasModule->unregisterLocalIdentity(pkgName, serviceType, authId, userType); in UnregisterLocalIdentity() 128 int32_t DeletePeerAuthInfo(const char *pkgName, const char *serviceType, Uint8Buff *authId, int use… in DeletePeerAuthInfo() argument [all …]
|
/base/security/deviceauth/services/authenticators/inc/account_unrelated/ |
D | das_task_main.h | 39 int32_t RegisterLocalIdentityInTask(const char *pkgName, const char *serviceType, Uint8Buff *authId… 40 int32_t UnregisterLocalIdentityInTask(const char *pkgName, const char *serviceType, Uint8Buff *auth… 41 int32_t DeletePeerAuthInfoInTask(const char *pkgName, const char *serviceType, Uint8Buff *authIdPee… 42 int32_t GetPublicKeyInTask(const char *pkgName, const char *serviceType, Uint8Buff *authIdPeer, int…
|
/base/security/deviceauth/services/authenticators/src/account_unrelated/ |
D | das_module.c | 32 static int32_t RegisterDasLocalIdentity(const char *pkgName, const char *serviceType, Uint8Buff *au… in RegisterDasLocalIdentity() argument 34 return RegisterLocalIdentityInTask(pkgName, serviceType, authId, userType); in RegisterDasLocalIdentity() 37 static int32_t UnregisterDasLocalIdentity(const char *pkgName, const char *serviceType, Uint8Buff *… in UnregisterDasLocalIdentity() argument 39 return UnregisterLocalIdentityInTask(pkgName, serviceType, authId, userType); in UnregisterDasLocalIdentity() 42 static int32_t DeleteDasPeerAuthInfo(const char *pkgName, const char *serviceType, Uint8Buff *authI… in DeleteDasPeerAuthInfo() argument 44 return DeletePeerAuthInfoInTask(pkgName, serviceType, authId, userType); in DeleteDasPeerAuthInfo() 47 static int32_t GetDasPublicKey(const char *pkgName, const char *serviceType, Uint8Buff *authId, int… in GetDasPublicKey() argument 50 return GetPublicKeyInTask(pkgName, serviceType, authId, userType, returnPk); in GetDasPublicKey()
|
D | das_task_common.c | 169 static int32_t CombineServiceId(const Uint8Buff *pkgName, const Uint8Buff *serviceType, Uint8Buff *… in CombineServiceId() argument 173 serviceIdPlain.length = pkgName->length + serviceType->length; in CombineServiceId() 181 if (memcpy_s(serviceIdPlain.val, serviceIdPlain.length, pkgName->val, pkgName->length) != EOK) { in CombineServiceId() 186 if (memcpy_s(serviceIdPlain.val + pkgName->length, serviceIdPlain.length - pkgName->length, in CombineServiceId() 300 int32_t GenerateKeyAlias(const Uint8Buff *pkgName, const Uint8Buff *serviceType, in GenerateKeyAlias() argument 303 CHECK_PTR_RETURN_ERROR_CODE(pkgName, "pkgName"); in GenerateKeyAlias() 304 CHECK_PTR_RETURN_ERROR_CODE(pkgName->val, "pkgName->val"); in GenerateKeyAlias() 311 …if (pkgName->length == 0 || serviceType->length == 0 || authId->length == 0 || outKeyAlias->length… in GenerateKeyAlias() 315 if (pkgName->length > PACKAGE_NAME_MAX_LEN || serviceType->length > SERVICE_TYPE_MAX_LEN || in GenerateKeyAlias() 329 res = CombineServiceId(pkgName, serviceType, &serviceId); in GenerateKeyAlias()
|
/base/security/deviceauth/services/authenticators/src/account_unrelated/pake_task/standard_exchange_task/ |
D | das_standard_token_manager.c | 21 static int32_t RegisterLocalIdentity(const char *pkgName, const char *serviceType, Uint8Buff *authI… in RegisterLocalIdentity() argument 24 Uint8Buff pkgNameBuff = { (uint8_t *)pkgName, strlen(pkgName)}; in RegisterLocalIdentity() 51 static int32_t UnregisterLocalIdentity(const char *pkgName, const char *serviceType, Uint8Buff *aut… in UnregisterLocalIdentity() argument 54 Uint8Buff pkgNameBuff = { (uint8_t *)pkgName, strlen(pkgName)}; in UnregisterLocalIdentity() 76 static int32_t DeletePeerAuthInfo(const char *pkgName, const char *serviceType, Uint8Buff *authIdPe… in DeletePeerAuthInfo() argument 79 Uint8Buff pkgNameBuff = { (uint8_t *)pkgName, strlen(pkgName)}; in DeletePeerAuthInfo() 169 static int32_t GetPublicKey(const char *pkgName, const char *serviceType, Uint8Buff *authId, int us… in GetPublicKey() argument 173 Uint8Buff pkgNameBuff = { (uint8_t *)pkgName, strlen(pkgName) }; in GetPublicKey()
|
/base/user_iam/user_auth/services/src/ |
D | userauth_adapter.cpp | 48 void UserAuthAdapter::GetPropAuthInfo(int32_t userId, uint64_t callerUid, std::string pkgName, in GetPropAuthInfo() argument 54 std::make_shared<UserAuthCallbackImplIDMGetPorp>(callback, requset, callerUid, pkgName); in GetPropAuthInfo() 71 freezInfo.pkgName = callerInfo.pkgName; in SetPropAuthInfo() 119 callerInfo.pkgName.resize(callerInfo.pkgName.size()); in SetProPropAuthInfo() 121 pkgNameValue.assign(callerInfo.pkgName.begin(), callerInfo.pkgName.end()); in SetProPropAuthInfo() 145 callerInfo.callerUID, callerInfo.pkgName, resultCode, authToken, requset); in GetPropAuthInfoCoauth() 160 callerInfo.callerUID, callerInfo.pkgName, resultCode, authToken, requset); in CoauthSetPropAuthInfo() 219 int32_t UserAuthAdapter::GetExecutorProp(uint64_t callerUid, std::string pkgName, uint64_t template… in GetExecutorProp() argument 251 pkgName.resize(pkgName.size()); in GetExecutorProp() 253 pkgNameValue.assign(pkgName.begin(), pkgName.end()); in GetExecutorProp() [all …]
|
D | userauth_controller.cpp | 27 int32_t UserAuthController::SetExecutorProp(uint64_t callerUid, std::string pkgName, in SetExecutorProp() argument 30 …return UserAuthAdapter::GetInstance().SetExecutorProp(callerUid, pkgName, setPropertyrequest, call… in SetExecutorProp() 33 void UserAuthController::GetPropAuthInfo(int32_t userId, std::string pkgName, uint64_t callerUid, in GetPropAuthInfo() argument 36 …UserAuthAdapter::GetInstance().GetPropAuthInfo(userId, callerUid, pkgName, getPropertyRequest, cal… in GetPropAuthInfo()
|
D | userauth_excallback_impl.cpp | 60 pkgName_ = freezInfo.pkgName; in UserAuthCallbackImplSetPropFreez() 80 pkgName_ = coAuthInfo.pkgName; in UserAuthCallbackImplCoAuth() 125 callerInfo.pkgName = pkgName_; in OnFinishHandleExtend() 155 callerInfo.pkgName = pkgName_; in OnFinishHandle() 234 GetPropertyRequest request, uint64_t callerUID, std::string pkgName) in UserAuthCallbackImplIDMGetPorp() argument 244 pkgName_ = pkgName; in UserAuthCallbackImplIDMGetPorp() 266 uint64_t callerUid, std::string pkgName, int32_t resultCode, in UserAuthCallbackImplIDMCothGetPorpFreez() argument 272 pkgName_ = pkgName; in UserAuthCallbackImplIDMCothGetPorpFreez() 281 callerInfo.pkgName = pkgName_; in OnGetInfo() 303 … const sptr<IUserAuthCallback>& impl, uint64_t callerUid, std::string pkgName, int32_t resultCode, in UserAuthCallbackImplIDMGetPorpCoauth() argument [all …]
|
/base/security/device_security_level/baselib/msglib/src/standard/ |
D | messenger_device_status_manager.c | 33 const char *pkgName; member 53 .pkgName = NULL, in GetDeviceManagerInstance() 128 …if (GetNodeKeyInfo(instance->pkgName, info->networkId, NODE_KEY_UDID, (uint8_t *)udid, UDID_BUF_LE… in MessengerOnNodeStateChange() 160 bool InitDeviceStatusManager(WorkQueue *queue, const char *pkgName, DeviceStatusReceiver deviceStat… in InitDeviceStatusManager() argument 167 instance->pkgName = pkgName; in InitDeviceStatusManager() 172 int32_t ret = RegNodeDeviceStateCb(pkgName, (INodeStateCb *)&instance->nodeStateCb); in InitDeviceStatusManager() 175 ret = RegNodeDeviceStateCb(pkgName, (INodeStateCb *)&instance->nodeStateCb); in InitDeviceStatusManager() 197 instance->pkgName = NULL; in DeInitDeviceStatusManager() 214 …if (GetNodeKeyInfo(instance->pkgName, node->networkId, NODE_KEY_UDID, (uint8_t *)udid, UDID_BUF_LE… in MessengerConvertNodeToIdentity() 237 int32_t ret = GetAllNodeDeviceInfo(instance->pkgName, &infoList, &infoListLen); in MessengerGetDeviceNodeBasicInfo() [all …]
|
D | messenger_device_session_manager.c | 43 const char *pkgName; member 164 …if (GetNodeKeyInfo(instance->pkgName, deviceName, NODE_KEY_UDID, (uint8_t *)udid, UDID_BUF_LEN) !=… in GetDeviceIdentityFromSessionId() 273 bool InitDeviceSessionManager(WorkQueue *queue, const char *pkgName, const char *sessionName, in InitDeviceSessionManager() argument 276 if ((pkgName == NULL) || (sessionName == NULL)) { in InitDeviceSessionManager() 280 instance->pkgName = pkgName; in InitDeviceSessionManager() 286 int ret = CreateSessionServer(pkgName, sessionName, &instance->listener); in InitDeviceSessionManager() 289 ret = CreateSessionServer(pkgName, sessionName, &instance->listener); in InitDeviceSessionManager() 305 int ret = RemoveSessionServer(instance->pkgName, instance->sessionName); in DeInitDeviceSessionManager() 311 instance->pkgName = NULL; in DeInitDeviceSessionManager()
|
D | messenger_device_session_manager.h | 27 bool InitDeviceSessionManager(WorkQueue *queue, const char *pkgName, const char *sessionName,
|
/base/security/access_token/services/tokensyncmanager/test/mock/src/ |
D | soft_bus_center_mock.cpp | 36 int32_t RegNodeDeviceStateCb(const char *pkgName, INodeStateCb *callback) in RegNodeDeviceStateCb() argument 42 … ACCESSTOKEN_LOG_DEBUG(LABEL, "success, pkg:%{public}s, count: %{public}d", pkgName, regCount_); in RegNodeDeviceStateCb() 68 int32_t GetLocalNodeDeviceInfo(const char *pkgName, NodeBasicInfo *info) in GetLocalNodeDeviceInfo() argument 77 int32_t GetNodeKeyInfo(const char *pkgName, const char *networkId, NodeDeviceInfoKey key, uint8_t *… in GetNodeKeyInfo() argument 81 ACCESSTOKEN_LOG_DEBUG(LABEL, "failure, invalid networkId, pkg name: %{public}s", pkgName); in GetNodeKeyInfo()
|
D | soft_bus_session_mock.cpp | 39 int CreateSessionServer(const char *pkgName, const char *sessionName, const ISessionListener *liste… in CreateSessionServer() argument 41 ACCESSTOKEN_LOG_DEBUG(LABEL, "pkg name: %{public}s", pkgName); in CreateSessionServer() 53 int RemoveSessionServer(const char *pkgName, const char *sessionName) in RemoveSessionServer() argument 55 ACCESSTOKEN_LOG_DEBUG(LABEL, "pkg name: %{public}s", pkgName); in RemoveSessionServer()
|
/base/security/deviceauth/services/frameworks/inc/module/ |
D | dev_auth_module_manager.h | 35 const char *pkgName; member 50 int32_t RegisterLocalIdentity(const char *pkgName, const char *serviceType, Uint8Buff *authId, int … 52 int32_t UnregisterLocalIdentity(const char *pkgName, const char *serviceType, Uint8Buff *authId, in… 54 int32_t DeletePeerAuthInfo(const char *pkgName, const char *serviceType, Uint8Buff *authId, int use…
|
/base/security/access_token/services/tokensyncmanager/test/mock/include/ |
D | session.h | 226 int CreateSessionServer(const char *pkgName, const char *sessionName, const ISessionListener *liste… 240 int RemoveSessionServer(const char *pkgName, const char *sessionName); 335 int SetFileReceiveListener(const char *pkgName, const char *sessionName, const IFileReceiveListener… 338 int SetFileSendListener(const char *pkgName, const char *sessionName, const IFileSendListener *send…
|
/base/security/deviceauth/services/group_auth/src/session/auth_session_lite/ |
D | auth_session_server_lite.c | 33 const char *pkgName = GetStringFromJson(session->authParams, FIELD_SERVICE_PKG_NAME); in StartServerAuthLiteTask() local 34 if (pkgName == NULL) { in StartServerAuthLiteTask() 39 if (AddStringToJson(session->authParams, FIELD_PKG_NAME, pkgName) != HC_SUCCESS) { in StartServerAuthLiteTask() 63 const char *pkgName = GetStringFromJson(confirmationJson, FIELD_SERVICE_PKG_NAME); in CombineServerParamsLite() local 64 if (pkgName == NULL) { in CombineServerParamsLite() 68 if (AddStringToJson(dataFromClient, FIELD_SERVICE_PKG_NAME, pkgName) != HC_SUCCESS) { in CombineServerParamsLite()
|
D | auth_session_client_lite.c | 30 const char *pkgName = GetStringFromJson(session->authParams, FIELD_SERVICE_PKG_NAME); in StartClientAuthLiteTask() local 31 if (pkgName == NULL) { in StartClientAuthLiteTask() 37 if (AddStringToJson(session->authParams, FIELD_PKG_NAME, pkgName) != HC_SUCCESS) { in StartClientAuthLiteTask()
|
/base/security/permission/services/permission_lite/pms/src/ |
D | perm_operate.c | 98 TNode *GetTaskWithPkgName(TList *list, const char *pkgName) in GetTaskWithPkgName() argument 102 if (strcmp(cur->pkgName, pkgName) == 0) { in GetTaskWithPkgName()
|
/base/user_iam/user_auth/services/include/ |
D | userauth_adapter.h | 35 …void GetPropAuthInfo(int32_t userId, uint64_t callerUid, std::string pkgName, GetPropertyRequest r… 48 …int32_t GetExecutorProp(uint64_t callerUid, std::string pkgName, uint64_t templateId, GetPropertyR… 50 int32_t SetExecutorProp(uint64_t callerUid, std::string pkgName, SetPropertyRequest requset,
|
D | userauth_controller.h | 30 …void GetPropAuthInfo(int32_t userId, std::string pkgName, uint64_t callerUid, GetPropertyRequest g… 32 …int32_t SetExecutorProp(uint64_t callerUid, std::string pkgName, SetPropertyRequest setPropertyreq…
|
D | userauth_excallback_impl.h | 94 GetPropertyRequest request, uint64_t callerUid, std::string pkgName); 109 uint64_t callerUid, std::string pkgName, int32_t resultCode, 126 uint64_t callerUid, std::string pkgName, int32_t resultCode, UserAuthToken authToken,
|
/base/notification/ans_standard/interfaces/kits/js/ |
D | @ohos.reminderAgent.d.ts | 181 pkgName: string; property 203 pkgName: string; property
|
/base/user_iam/user_auth/interfaces/innerkits/native/include/ |
D | userauth_info.h | 101 std::string pkgName; member 107 std::string pkgName; member 115 std::string pkgName; member
|
/base/security/deviceauth/services/group_auth/src/session/ |
D | auth_session_common_util.c | 105 const char *pkgName = GetStringFromJson(receiveData, FIELD_PKG_NAME); in GetGeneralReqParams() local 106 if (pkgName == NULL) { in GetGeneralReqParams() 110 if (AddStringToJson(reqParam, FIELD_SERVICE_PKG_NAME, pkgName) != HC_SUCCESS) { in GetGeneralReqParams()
|