/foundation/communication/netmanager_base/test/netmanagernative/unittest/netsys_manager_test/ |
H A D | dns_param_cache_test.cpp | 68 std::string hostName = "hoseName"; in HWTEST_F() local 72 dnsParCache.SetDnsCache(i, hostName.append(std::to_string(i)), addrInfo); in HWTEST_F() 73 servers.emplace_back(hostName); in HWTEST_F() 90 std::string hostName = "hoseName"; in HWTEST_F() local 91 dnsParCache.GetDnsCache(netId, hostName); in HWTEST_F() 96 dnsParCache.SetDnsCache(i, hostName.append(std::to_string(i)), addrInfo); in HWTEST_F() 97 servers.emplace_back(hostName.append(std::to_string(i))); in HWTEST_F() 125 std::string hostName = "hostName"; in HWTEST_F() local 126 dnsParCache.SetCacheDelayed(netId, hostName); in HWTEST_F() 169 std::string hostName = "hoseName"; HWTEST_F() local 195 std::string hostName = ""; HWTEST_F() local [all...] |
H A D | dns_manager_test.cpp | 75 std::string hostName = "www.baidu.com"; in HWTEST_F() local 79 dnsManager.GetAddrInfo(hostName, serverName, hints, NET_ID, res); in HWTEST_F()
|
H A D | net_manager_native_test.cpp | 164 std::string hostName; in HWTEST_F() local 169 auto ret = instance_->DnsGetAddrInfo(hostName, serverName, hints, netId, res); in HWTEST_F()
|
/foundation/distributedhardware/device_manager/radar/include/ |
H A D | dm_radar_helper.h | 133 std::string hostName; member 174 virtual void ReportGetTrustDeviceList(std::string hostName, 176 virtual void ReportCreatePinHolder(std::string hostName, 178 virtual void ReportDestroyPinHolder(std::string hostName, 181 virtual void ReportDmBehavior(std::string hostName, std::string funcName, int32_t errCode) = 0; 182 virtual void ReportGetLocalDevInfo(std::string hostName, 184 virtual void ReportGetDeviceInfo(std::string hostName, 210 void ReportGetTrustDeviceList(std::string hostName, 212 void ReportCreatePinHolder(std::string hostName, 214 void ReportDestroyPinHolder(std::string hostName, [all...] |
/foundation/communication/netmanager_base/services/netmanagernative/src/netsys/dnsresolv/ |
H A D | dns_resolv_config.cpp | 19 DnsResolvConfig::DelayedTaskWrapper::DelayedTaskWrapper(std::string hostName, in DelayedTaskWrapper() argument 21 : hostName_(std::move(hostName)), cache_(cache) in DelayedTaskWrapper() 110 void DnsResolvConfig::SetCacheDelayed(const std::string &hostName) in SetCacheDelayed() argument 112 auto wrapper = std::make_shared<DelayedTaskWrapper>(hostName, cache_); in SetCacheDelayed()
|
H A D | dns_param_cache.cpp | 236 void DnsParamCache::SetDnsCache(uint16_t netId, const std::string &hostName, const AddrInfo &addrInfo) in SetDnsCache() argument 245 if (IsInterceptDomain(appUid, hostName, isMatchAllow)) { in SetDnsCache() 246 DNS_CONFIG_PRINT("SetDnsCache failed: domain was Intercepted: %{public}s,", hostName.c_str()); in SetDnsCache() 267 it->second.GetCache().Put(hostName, addrInfo); in SetDnsCache() 270 std::vector<AddrInfo> DnsParamCache::GetDnsCache(uint16_t netId, const std::string &hostName) in GetDnsCache() argument 280 if (IsInterceptDomain(appUid, hostName, isMatchAllow)) { in GetDnsCache() 281 NotifyDomianIntercept(appUid, hostName); in GetDnsCache() 297 return it->second.GetCache().Get(hostName); in GetDnsCache() 300 void DnsParamCache::SetCacheDelayed(uint16_t netId, const std::string &hostName) in SetCacheDelayed() argument 313 it->second.SetCacheDelayed(hostName); in SetCacheDelayed() 443 checkEmpty4InterceptDomain(const std::string &hostName) checkEmpty4InterceptDomain() argument 457 IsInterceptDomain(int32_t appUid, const std::string &hostName, bool &isMatchAllow) IsInterceptDomain() argument 623 NotifyDomianIntercept(int32_t appUid, const std::string &hostName) NotifyDomianIntercept() argument [all...] |
/foundation/distributedhardware/device_manager/radar/src/lite/ |
H A D | dm_radar_helper.cpp | 119 void DmRadarHelper::ReportGetTrustDeviceList(std::string hostName, in ReportGetTrustDeviceList() argument 125 void DmRadarHelper::ReportCreatePinHolder(std::string hostName, in ReportCreatePinHolder() argument 131 void DmRadarHelper::ReportDestroyPinHolder(std::string hostName, in ReportDestroyPinHolder() argument 142 void DmRadarHelper::ReportDmBehavior(std::string hostName, std::string funcName, int32_t errCode) in ReportDmBehavior() argument 147 void DmRadarHelper::ReportGetLocalDevInfo(std::string hostName, in ReportGetLocalDevInfo() argument 153 void DmRadarHelper::ReportGetDeviceInfo(std::string hostName, in ReportGetDeviceInfo() argument
|
/foundation/communication/netstack/test/unittest/tls_test/server/ |
H A D | tls_socket_server_branch_test.cpp | 318 std::string hostName = "testHost"; in HWTEST_F() local 321 std::string result = connection->CheckServerIdentityLegal(hostName, x509Certificates); in HWTEST_F() 325 result = connection->CheckServerIdentityLegal(hostName, x509Certificates); in HWTEST_F() 335 std::string hostName = "172.0.0.1"; in HWTEST_F() local 338 std::string result = connection->CheckServerIdentityLegal(hostName, x509Certificates); in HWTEST_F() 342 result = connection->CheckServerIdentityLegal(hostName, x509Certificates); in HWTEST_F() 352 std::string hostName = "testHost"; in HWTEST_F() local 359 std::string result = connection->CheckServerIdentityLegal(hostName, x509Certificates); in HWTEST_F() 377 extern std::vector<std::string> SplitHostName(std::string &hostName); 380 std::string hostName in HWTEST_F() local 590 std::string hostName = "192.168.1.1"; HWTEST_F() local 603 std::string hostName = "192.168.1.3"; HWTEST_F() local 618 std::string hostName = "www.test.com"; HWTEST_F() local 631 std::string hostName = "testHost"; HWTEST_F() local 641 std::string hostName = "testHost"; HWTEST_F() local [all...] |
/foundation/communication/netstack/test/unittest/tlssocket/server/ |
H A D | tls_socket_server_branch_test.cpp | 318 std::string hostName = "testHost"; in HWTEST_F() local 321 std::string result = connection->CheckServerIdentityLegal(hostName, x509Certificates); in HWTEST_F() 325 result = connection->CheckServerIdentityLegal(hostName, x509Certificates); in HWTEST_F() 335 std::string hostName = "172.0.0.1"; in HWTEST_F() local 338 std::string result = connection->CheckServerIdentityLegal(hostName, x509Certificates); in HWTEST_F() 342 result = connection->CheckServerIdentityLegal(hostName, x509Certificates); in HWTEST_F() 352 std::string hostName = "testHost"; in HWTEST_F() local 359 std::string result = connection->CheckServerIdentityLegal(hostName, x509Certificates); in HWTEST_F() 377 extern std::vector<std::string> SplitHostName(std::string &hostName); 380 std::string hostName in HWTEST_F() local 590 std::string hostName = "192.168.1.1"; HWTEST_F() local 603 std::string hostName = "192.168.1.3"; HWTEST_F() local 618 std::string hostName = "www.test.com"; HWTEST_F() local 631 std::string hostName = "testHost"; HWTEST_F() local 641 std::string hostName = "testHost"; HWTEST_F() local [all...] |
/foundation/deviceprofile/device_info_manager/old/radar/src/ |
H A D | dp_radar_helper.cpp | 106 "HOST_NAME", info.hostName); in ReportLoadDpSaCb() 118 "HOST_NAME", info.hostName, in ReportLoadDpSaCb() 174 "HOST_PKG", info.hostName, in ReportGetData() 189 "HOST_PKG", info.hostName, in ReportGetData() 214 "HOST_PKG", info.hostName, in ReportAddData() 228 "HOST_PKG", info.hostName, in ReportAddData() 252 "HOST_PKG", info.hostName, in ReportDeleteData() 267 "HOST_PKG", info.hostName, in ReportDeleteData() 344 "HOST_PKG", info.hostName, in ReportUnsbscribeData() 357 "HOST_PKG", info.hostName, in ReportUnsbscribeData() [all...] |
/foundation/distributedhardware/device_manager/radar/src/ |
H A D | dm_radar_helper.cpp | 47 "HOST_PKG", info.hostName, in ReportDiscoverRegCallback() 133 "HOST_PKG", info.hostName, in ReportDiscoverUserRes() 159 "HOST_PKG", info.hostName, in ReportDiscoverUserRes() 591 "HOST_PKG", info.hostName, in ReportDeleteTrustRelation() 609 void DmRadarHelper::ReportCreatePinHolder(std::string hostName, in ReportCreatePinHolder() argument 619 "HOST_PKG", hostName, in ReportCreatePinHolder() 640 "HOST_PKG", hostName, in ReportCreatePinHolder() 660 void DmRadarHelper::ReportDestroyPinHolder(std::string hostName, in ReportDestroyPinHolder() argument 670 "HOST_PKG", hostName, in ReportDestroyPinHolder() 689 "HOST_PKG", hostName, in ReportDestroyPinHolder() 750 ReportGetTrustDeviceList(std::string hostName, std::string funcName, std::vector<DmDeviceInfo> &deviceInfoList, int32_t errCode) ReportGetTrustDeviceList() argument 798 ReportDmBehavior(std::string hostName, std::string funcName, int32_t errCode) ReportDmBehavior() argument 837 ReportGetLocalDevInfo(std::string hostName, std::string funcName, DmDeviceInfo &info, int32_t errCode) ReportGetLocalDevInfo() argument 885 ReportGetDeviceInfo(std::string hostName, std::string funcName, DmDeviceInfo &info, int32_t errCode) ReportGetDeviceInfo() argument [all...] |
/foundation/communication/netmanager_base/services/netmanagernative/src/netsys/ |
H A D | netsys_client.c | 143 static bool MakeKey(const char *hostName, const char *serv, const struct addrinfo *hints, in MakeKey() argument 147 return sprintf_s(key, MAX_KEY_LENGTH, "%s %s %d %d %d %d", hostName, serv, hints->ai_family, hints->ai_flags, in MakeKey() 152 return sprintf_s(key, MAX_KEY_LENGTH, "%s %d %d %d %d", hostName, hints->ai_family, hints->ai_flags, in MakeKey() 157 return sprintf_s(key, MAX_KEY_LENGTH, "%s %s", hostName, serv) > 0; in MakeKey() 160 return sprintf_s(key, MAX_KEY_LENGTH, "%s", hostName) > 0; in MakeKey() 282 char *hostName = param.host; in NetSysGetResolvCache() local 283 if (hostName == NULL || strlen(hostName) == 0 || num == NULL) { in NetSysGetResolvCache() 385 char *hostName = param.host; in NetSysSetResolvCache() local 386 if (hostName in NetSysSetResolvCache() [all...] |
/foundation/communication/netmanager_base/services/netmanagernative/include/netsys/ |
H A D | dns_param_cache.h | 60 void SetDnsCache(uint16_t netId, const std::string &hostName, const AddrInfo &addrInfo); 62 void SetCacheDelayed(uint16_t netId, const std::string &hostName); 64 std::vector<AddrInfo> GetDnsCache(uint16_t netId, const std::string &hostName); 149 bool checkEmpty4InterceptDomain(const std::string &hostName);
|
H A D | dns_resolv_config.h | 49 void SetCacheDelayed(const std::string &hostName); 58 DelayedTaskWrapper(std::string hostName, NetManagerStandard::LRUCache<AddrInfo> &cache);
|
/foundation/communication/netmanager_base/services/common/include/ |
H A D | dns_base_service.h | 28 virtual int32_t GetAddressesByName(const std::string &hostName, int32_t netId,
|
H A D | net_manager_center.h | 54 int32_t GetAddressesByName(const std::string &hostName, int32_t netId, std::vector<INetAddr> &addrInfo);
|
/foundation/communication/netmanager_base/services/netmanagernative/src/manager/ |
H A D | dns_manager.cpp | 121 int32_t DnsManager::GetAddrInfo(const std::string &hostName, const std::string &serverName, const AddrInfo &hints, in GetAddrInfo() argument 132 if ((hostName.size() == 0) && (serverName.size() == 0)) { in GetAddrInfo() 144 int32_t ret = getaddrinfo_ext(((hostName.size() == 0) ? NULL : hostName.c_str()), in GetAddrInfo()
|
/foundation/communication/netstack/frameworks/js/napi/tls/src/ |
H A D | tls_socket.cpp | 133 std::vector<std::string> SplitHostName(std::string &hostName) in SplitHostName() argument 135 transform(hostName.begin(), hostName.end(), hostName.begin(), ::tolower); in SplitHostName() 136 return CommonUtils::Split(hostName, SPLIT_HOST_NAME); in SplitHostName() 1134 auto hostName = ConvertAddressToIp(host, family); in ExecSocketConnect() local 1141 if (inet_pton(AF_INET, hostName.c_str(), &addr4.sin_addr.s_addr) <= 0) { in ExecSocketConnect() 1149 if (inet_pton(AF_INET6, hostName.c_str(), &addr6.sin6_addr) <= 0) { in ExecSocketConnect() 1540 void CheckIpAndDnsName(const std::string &hostName, std::vector<std::string> dnsNames, std::vector<std::string> ips, in CheckIpAndDnsName() argument 1546 if (IsIP(hostName)) { in CheckIpAndDnsName() 1582 CheckServerIdentityLegal(const std::string &hostName, const X509 *x509Certificates) CheckServerIdentityLegal() argument 1608 CheckServerIdentityLegal(const std::string &hostName, X509_EXTENSION *ext, const X509 *x509Certificates) CheckServerIdentityLegal() argument [all...] |
H A D | tls_socket_server.cpp | 83 std::vector<std::string> SplitHostName(std::string &hostName)
in SplitHostName() argument 85 transform(hostName.begin(), hostName.end(), hostName.begin(), ::tolower);
in SplitHostName() 86 return CommonUtils::Split(hostName, SPLIT_HOST_NAME);
in SplitHostName() 1145 void CheckIpAndDnsName(const std::string &hostName, std::vector<std::string> &dnsNames, std::vector<std::string> &ips,
in CheckIpAndDnsName() argument 1151 if (IsIP(hostName)) {
in CheckIpAndDnsName() 1152 auto it = find(ips.begin(), ips.end(), hostName);
in CheckIpAndDnsName() 1154 reason = IP + hostName + " is not in the cert's list";
in CheckIpAndDnsName() 1159 std::string tempHostName = "" + hostName;
in CheckIpAndDnsName() 1188 CheckServerIdentityLegal(const std::string &hostName, const X509 *x509Certificates) CheckServerIdentityLegal() argument 1214 CheckServerIdentityLegal(const std::string &hostName, X509_EXTENSION *ext, const X509 *x509Certificates) CheckServerIdentityLegal() argument [all...] |
/foundation/communication/netmanager_base/services/common/src/ |
H A D | net_manager_center.cpp | 147 int32_t NetManagerCenter::GetAddressesByName(const std::string &hostName, int32_t netId, in GetAddressesByName() argument 153 return dnsService_->GetAddressesByName(hostName, netId, addrInfo); in GetAddressesByName()
|
/foundation/communication/dhcp/services/dhcp_server/src/ |
H A D | address_utils.cpp | 314 int ParseHostName(const char *strHostName, char hostName[DHCP_BOOT_FILE_LENGTH]) in ParseHostName() argument 316 if (strHostName == nullptr || hostName == nullptr) { in ParseHostName() 319 if (memcpy_s(hostName, DHCP_BOOT_FILE_LENGTH, strHostName, strlen(strHostName)) != EOK) { in ParseHostName()
|
/foundation/multimedia/camera_framework/services/camera_service/include/ |
H A D | hcamera_host_manager.h | 61 virtual void OnCameraHostDied(const std::string& hostName) in OnCameraHostDied() argument 68 hostManager->RemoveCameraHost(hostName); in OnCameraHostDied()
|
/foundation/deviceprofile/device_info_manager/old/services/core/src/subscribemanager/ |
H A D | profile_sync_handler.cpp | 58 .hostName = kvNAME, in NotifySyncCompleted()
|
/foundation/communication/dhcp/services/dhcp_server/include/ |
H A D | address_utils.h | 47 int ParseHostName(const char *strHostName, char hostName[DHCP_BOOT_FILE_LENGTH]);
|
/foundation/communication/netstack/interfaces/innerkits/tls_socket/include/ |
H A D | tls_socket.h | 68 std::function<void(const std::string &hostName, const std::vector<std::string> &x509Certificates)>; 564 std::string CheckServerIdentityLegal(const std::string &hostName, const X509 *x509Certificates); 565 std::string CheckServerIdentityLegal(const std::string &hostName, X509_EXTENSION *ext,
|