Home
last modified time | relevance | path

Searched refs:tlsServer (Results 1 – 2 of 2) sorted by relevance

/packages/modules/DnsResolver/
DDnsTlsDispatcher.cpp68 for (const auto& tlsServer : tlsServers) { in getOrderedAndUsableServerList() local
69 const Key key = std::make_pair(mark, tlsServer); in getOrderedAndUsableServerList()
75 LOG(DEBUG) << "Skip using DoT server " << tlsServer.toIpString() << " on " in getOrderedAndUsableServerList()
80 switch (tlsServer.ss.ss_family) { in getOrderedAndUsableServerList()
82 existing4.push_back(tlsServer); in getOrderedAndUsableServerList()
85 existing6.push_back(tlsServer); in getOrderedAndUsableServerList()
89 switch (tlsServer.ss.ss_family) { in getOrderedAndUsableServerList()
91 new4.push_back(tlsServer); in getOrderedAndUsableServerList()
94 new6.push_back(tlsServer); in getOrderedAndUsableServerList()
/packages/modules/DnsResolver/tests/
Dresolv_integration_test.cpp1835 struct sockaddr_in tlsServer = { in TEST_F() local
1839 ASSERT_TRUE(inet_pton(AF_INET, listen_addr, &tlsServer.sin_addr)); in TEST_F()
1842 ASSERT_FALSE(bind(s, reinterpret_cast<struct sockaddr*>(&tlsServer), sizeof(tlsServer))); in TEST_F()
5374 std::string tlsServer; in TEST_F() member
5379 return fmt::format("{}, {}, {}, {}", tlsServer, tlsName, in TEST_F()
5409 auto& tls = (config.tlsServer == addr1) ? tls1 : tls2; in TEST_F()
5419 parcel.servers = {config.tlsServer}; in TEST_F()
5420 parcel.tlsServers = {config.tlsServer}; in TEST_F()
5426 EXPECT_TRUE(WaitForPrivateDnsValidation(config.tlsServer, true)); in TEST_F()
5436 EXPECT_TRUE(WaitForPrivateDnsValidation(config.tlsServer, false)); in TEST_F()
[all …]