Merge "[WPA3] Initialize Suite-B ciphers correctly based on the CA cert type"
This commit is contained in:
@@ -413,8 +413,8 @@ public class WifiConfiguration implements Parcelable {
|
||||
allowedKeyManagement.set(WifiConfiguration.KeyMgmt.SUITE_B_192);
|
||||
allowedGroupCiphers.set(WifiConfiguration.GroupCipher.GCMP_256);
|
||||
allowedGroupManagementCiphers.set(WifiConfiguration.GroupMgmtCipher.BIP_GMAC_256);
|
||||
allowedSuiteBCiphers.set(WifiConfiguration.SuiteBCipher.ECDHE_ECDSA);
|
||||
allowedSuiteBCiphers.set(WifiConfiguration.SuiteBCipher.ECDHE_RSA);
|
||||
// Note: allowedSuiteBCiphers bitset will be set by the service once the
|
||||
// certificates are attached to this profile
|
||||
requirePMF = true;
|
||||
break;
|
||||
case SECURITY_TYPE_OWE:
|
||||
|
||||
@@ -179,12 +179,10 @@ public class WifiNetworkSuggestionTest {
|
||||
.get(WifiConfiguration.GroupCipher.GCMP_256));
|
||||
assertTrue(suggestion.wifiConfiguration.allowedGroupManagementCiphers
|
||||
.get(WifiConfiguration.GroupMgmtCipher.BIP_GMAC_256));
|
||||
assertTrue(suggestion.wifiConfiguration.allowedSuiteBCiphers
|
||||
.get(WifiConfiguration.SuiteBCipher.ECDHE_ECDSA));
|
||||
assertTrue(suggestion.wifiConfiguration.allowedSuiteBCiphers
|
||||
.get(WifiConfiguration.SuiteBCipher.ECDHE_RSA));
|
||||
assertTrue(suggestion.wifiConfiguration.requirePMF);
|
||||
assertNull(suggestion.wifiConfiguration.preSharedKey);
|
||||
// allowedSuiteBCiphers are set according to the loaded certificate and cannot be tested
|
||||
// here.
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user