Home
last modified time | relevance | path

Searched refs:pkgName (Results 1 – 25 of 53) sorted by relevance

123

/base/security/device_auth/services/authenticators/src/account_unrelated/iso_task/lite_exchange_task/
Ddas_lite_token_manager.c22 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/device_auth/services/authenticators/inc/account_unrelated/
Ddas_task_main.h39 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/device_auth/services/authenticators/src/account_unrelated/
Ddas_module.c32 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()
Ddas_task_common.c169 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()
Ddas_task_main.c406 int32_t RegisterLocalIdentityInTask(const char *pkgName, const char *serviceType, Uint8Buff *authId… in RegisterLocalIdentityInTask() argument
418 … res = temp->tokenManagerInstance->registerLocalIdentity(pkgName, serviceType, authId, userType); in RegisterLocalIdentityInTask()
428 int32_t UnregisterLocalIdentityInTask(const char *pkgName, const char *serviceType, Uint8Buff *auth… in UnregisterLocalIdentityInTask() argument
440 … res = temp->tokenManagerInstance->unregisterLocalIdentity(pkgName, serviceType, authId, userType); in UnregisterLocalIdentityInTask()
450 int32_t DeletePeerAuthInfoInTask(const char *pkgName, const char *serviceType, Uint8Buff *authIdPee… in DeletePeerAuthInfoInTask() argument
462 …res = temp->tokenManagerInstance->deletePeerAuthInfo(pkgName, serviceType, authIdPeer, userTypePee… in DeletePeerAuthInfoInTask()
472 int32_t GetPublicKeyInTask(const char *pkgName, const char *serviceType, Uint8Buff *authIdPeer, int… in GetPublicKeyInTask() argument
484 …return temp->tokenManagerInstance->getPublicKey(pkgName, serviceType, authIdPeer, userTypePeer, re… in GetPublicKeyInTask()
/base/security/device_auth/services/authenticators/src/account_unrelated/pake_task/standard_exchange_task/
Ddas_standard_token_manager.c21 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()
52 static int32_t UnregisterLocalIdentity(const char *pkgName, const char *serviceType, Uint8Buff *aut… in UnregisterLocalIdentity() argument
55 Uint8Buff pkgNameBuff = { (uint8_t *)pkgName, strlen(pkgName)}; in UnregisterLocalIdentity()
77 static int32_t DeletePeerAuthInfo(const char *pkgName, const char *serviceType, Uint8Buff *authIdPe… in DeletePeerAuthInfo() argument
80 Uint8Buff pkgNameBuff = { (uint8_t *)pkgName, strlen(pkgName)}; in DeletePeerAuthInfo()
170 static int32_t GetPublicKey(const char *pkgName, const char *serviceType, Uint8Buff *authId, int us… in GetPublicKey() argument
174 Uint8Buff pkgNameBuff = { (uint8_t *)pkgName, strlen(pkgName) }; in GetPublicKey()
/base/security/device_auth/services/frameworks/src/module/
Ddev_auth_module_manager.c65 static bool IsParamsForDasTokenManagerValid(const char *pkgName, const char *serviceType, Uint8Buff… in IsParamsForDasTokenManagerValid() argument
72 if (pkgName == NULL || serviceType == NULL || authId == NULL || authId->val == NULL) { in IsParamsForDasTokenManagerValid()
77 if (HcStrlen(pkgName) == 0 || HcStrlen(serviceType) == 0 || authId->length == 0) { in IsParamsForDasTokenManagerValid()
88 int32_t RegisterLocalIdentity(const char *pkgName, const char *serviceType, Uint8Buff *authId, int … in RegisterLocalIdentity() argument
91 if (!IsParamsForDasTokenManagerValid(pkgName, serviceType, authId, userType, moduleType)) { in RegisterLocalIdentity()
101 int32_t res = dasModule->registerLocalIdentity(pkgName, serviceType, authId, userType); in RegisterLocalIdentity()
109 int32_t UnregisterLocalIdentity(const char *pkgName, const char *serviceType, Uint8Buff *authId, in… in UnregisterLocalIdentity() argument
112 if (!IsParamsForDasTokenManagerValid(pkgName, serviceType, authId, userType, moduleType)) { in UnregisterLocalIdentity()
122 int32_t res = dasModule->unregisterLocalIdentity(pkgName, serviceType, authId, userType); in UnregisterLocalIdentity()
130 int32_t DeletePeerAuthInfo(const char *pkgName, const char *serviceType, Uint8Buff *authId, int use… in DeletePeerAuthInfo() argument
[all …]
/base/security/device_auth/services/frameworks/inc/module/
Ddev_auth_module_manager.h35 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/device_security_level/baselib/msglib/src/lite/
Dmessenger_device_status_manager.c36 const char *pkgName; member
56 .pkgName = NULL, in GetDeviceManagerInstance()
131 …if (GetNodeKeyInfo(instance->pkgName, info->networkId, NODE_KEY_UDID, (uint8_t *)udid, UDID_BUF_LE… in MessengerOnNodeStateChange()
171 bool InitDeviceStatusManager(WorkQueue *queue, const char *pkgName, DeviceStatusReceiver deviceStat… in InitDeviceStatusManager() argument
178 instance->pkgName = pkgName; in InitDeviceStatusManager()
183 int32_t ret = RegNodeDeviceStateCb(pkgName, (INodeStateCb *)&instance->nodeStateCb); in InitDeviceStatusManager()
186 ret = RegNodeDeviceStateCb(pkgName, (INodeStateCb *)&instance->nodeStateCb); in InitDeviceStatusManager()
209 instance->pkgName = NULL; in DeInitDeviceStatusManager()
226 …if (GetNodeKeyInfo(instance->pkgName, node->networkId, NODE_KEY_UDID, (uint8_t *)udid, UDID_BUF_LE… in MessengerConvertNodeToIdentity()
249 int32_t ret = GetAllNodeDeviceInfo(instance->pkgName, &infoList, &infoListLen); in MessengerGetDeviceNodeBasicInfo()
[all …]
/base/security/device_auth/services/group_auth/src/session/
Dauth_session_common_util.c105 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()
177 const char *pkgName = GetStringFromJson(params, FIELD_SERVICE_PKG_NAME); in GetDuplicateServicePkgName() local
178 if (pkgName == NULL) { in GetDuplicateServicePkgName()
182 uint32_t pkgNameLen = HcStrlen(pkgName) + 1; in GetDuplicateServicePkgName()
188 (void)memcpy_s(copyPkgName, pkgNameLen, pkgName, pkgNameLen); in GetDuplicateServicePkgName()
/base/security/access_token/services/tokensyncmanager/test/mock/src/
Dsoft_bus_center_mock.cpp35 int32_t GetLocalNodeDeviceInfo(const char *pkgName, NodeBasicInfo *info) in GetLocalNodeDeviceInfo() argument
44 int32_t GetNodeKeyInfo(const char *pkgName, const char *networkId, NodeDeviceInfoKey key, uint8_t *… in GetNodeKeyInfo() argument
48 ACCESSTOKEN_LOG_DEBUG(LABEL, "failure, invalid networkId, pkg name: %{public}s", pkgName); in GetNodeKeyInfo()
Dsoft_bus_session_mock.cpp39 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/access_token/services/tokensyncmanager/test/mock/include/
Dsession.h226 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/dataclassification/test/fuzztest/datatransmitmgr/datatransmitmgr_fuzzer/
Ddatatransmitmgr_fuzzer.cpp36 const char *pkgName = "ohos.dslm"; in GetLocalUdid() local
38 (void)GetLocalNodeDeviceInfo(pkgName, &info); in GetLocalUdid()
39 …if (GetNodeKeyInfo(pkgName, info.networkId, NODE_KEY_UDID, (uint8_t *)(queryParams->udid), UDID_BU… in GetLocalUdid()
/base/security/device_security_level/baselib/msglib/src/standard/
Dmessenger_device_session_manager.c43 const char *pkgName; member
274 static bool TryToCreateSessionServer(const char *pkgName, const char *sessionName, const ISessionLi… in TryToCreateSessionServer() argument
277 int ret = CreateSessionServer(pkgName, sessionName, listener); in TryToCreateSessionServer()
280 ret = CreateSessionServer(pkgName, sessionName, listener); in TryToCreateSessionServer()
297 inst->pkgName = config->pkgName; in InitDeviceSessionManager()
304 bool succ = TryToCreateSessionServer(inst->pkgName, inst->primarySessName, &inst->listener); in InitDeviceSessionManager()
311 succ = TryToCreateSessionServer(inst->pkgName, inst->secondarySessName, &inst->listener); in InitDeviceSessionManager()
319 int ret = RemoveSessionServer(instance->pkgName, instance->primarySessName); in DeInitDeviceSessionManager()
325 ret = RemoveSessionServer(instance->pkgName, instance->primarySessName); in DeInitDeviceSessionManager()
332 instance->pkgName = NULL; in DeInitDeviceSessionManager()
Dmessenger_device_status_manager.cpp39 void Reset(const std::string &pkgName, WorkQueue *queue, StateReceiver deviceStatusReceiver) in Reset() argument
42 pkgName_ = pkgName; in Reset()
234 bool InitDeviceStatusManager(WorkQueue *queue, const char *pkgName, DeviceStatusReceiver deviceStat… in InitDeviceStatusManager() argument
236 if (queue == nullptr || pkgName == nullptr || deviceStatusReceiver == nullptr) { in InitDeviceStatusManager()
239 const std::string name(pkgName); in InitDeviceStatusManager()
Dmessenger_device_status_manager.h34 bool InitDeviceStatusManager(WorkQueue *queue, const char *pkgName, DeviceStatusReceiver deviceStat…
/base/powermgr/power_manager/services/native/src/actions/default/display/
Ddefault_device_state_action.cpp33 int64_t callTimeMs, WakeupDeviceType type, const string& details, const string& pkgName) in Wakeup() argument
38 (void)pkgName; in Wakeup()
/base/security/permission_lite/services/pms/src/
Dperm_operate.c98 TNode *GetTaskWithPkgName(TList *list, const char *pkgName) in GetTaskWithPkgName() argument
102 if (strcmp(cur->pkgName, pkgName) == 0) { in GetTaskWithPkgName()
/base/security/permission_lite/services/pms/include/
Dperm_operate.h31 TNode *GetTaskWithPkgName(TList *list, const char *pkgName);
Dperm_define.h65 char pkgName[PKG_NAME_LEN]; member
/base/security/device_security_level/services/include/
Ddslm_bigdata.h37 char pkgName[PKG_NAME_MAX_LEN]; member
/base/security/device_auth/services/group_auth/src/session/auth_session/
Dauth_session_common.c33 static bool IsGroupAvailable(int32_t osAccountId, const char *groupId, const char *pkgName) in IsGroupAvailable() argument
35 if (GaIsGroupAccessible(osAccountId, groupId, pkgName)) { in IsGroupAvailable()
38 LOGD("%s don't have enough right in group: %s, os account:%d!", pkgName, groupId, osAccountId); in IsGroupAvailable()
111 const char *pkgName = GetStringFromJson(param, FIELD_SERVICE_PKG_NAME); in FillAuthParams() local
112 if (pkgName == NULL) { in FillAuthParams()
127 if (!IsGroupAvailable(osAccountId, groupId, pkgName)) { in FillAuthParams()
665 const char *pkgName = GetStringFromJson(paramInSession, FIELD_SERVICE_PKG_NAME); in CreateAndProcessTask() local
666 if (pkgName == NULL) { in CreateAndProcessTask()
670 if (AddStringToJson(paramInSession, FIELD_PKG_NAME, pkgName) != HC_SUCCESS) { in CreateAndProcessTask()
/base/powermgr/power_manager/test/systemtest/mock/
Dmock_state_action.h31 const std::string& details, const std::string& pkgName));
/base/powermgr/power_manager/services/native/test/unittest/mock/
Dmock_state_action.h31 const std::string& details, const std::string& pkgName));

123