mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 16:50:18 +00:00
Merge "Wifi: check TLSV1.3 support in TLS test"
This commit is contained in:
@@ -806,7 +806,15 @@ TEST_P(SupplicantStaNetworkAidlTest, SetRoamingConsortiumSelection) {
|
||||
* SetMinimumTlsVersionEapPhase1Param
|
||||
*/
|
||||
TEST_P(SupplicantStaNetworkAidlTest, SetMinimumTlsVersionEapPhase1Param) {
|
||||
EXPECT_TRUE(sta_network_->setMinimumTlsVersionEapPhase1Param(TlsVersion::TLS_V1_3).isOk());
|
||||
WpaDriverCapabilitiesMask caps;
|
||||
EXPECT_TRUE(sta_iface_->getWpaDriverCapabilities(&caps).isOk());
|
||||
const bool tlsV13Supported = !!(static_cast<uint32_t>(caps) &
|
||||
static_cast<uint32_t>(WpaDriverCapabilitiesMask::TLS_V1_3));
|
||||
LOG(INFO) << "TLS_V1_3 Supported: " << tlsV13Supported;
|
||||
|
||||
// Operation will succeed if TLS_V1_3 is supported, or fail otherwise.
|
||||
EXPECT_EQ(sta_network_->setMinimumTlsVersionEapPhase1Param(TlsVersion::TLS_V1_3).isOk(),
|
||||
tlsV13Supported);
|
||||
}
|
||||
|
||||
GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(SupplicantStaNetworkAidlTest);
|
||||
|
||||
Reference in New Issue
Block a user