|
|
ONC: add support for non-utf-8 SSIDs
ONC currently uses strings to represent SSIDs. Since JSON-Schema strings are restricted to Unicode and ONC is encoding these as UTF-8, this means that ONC cannot be used to represent SSIDs that include non-UTF-8 strings.
This change adds a separate HexSSID field to the WiFi section of the ONC that expects an SSID byte sequence encoded in hex.
At least one of the fields HexSSID or SSID must be present. If both HexSSID and SSID are set, the values must be consistent.
BUG= 432546
Committed: https://crrev.com/decce902f12dde8b6abdbfe625905be8fcb27ab0
Cr-Commit-Position: refs/heads/master@{#306838}
Total comments: 32
Total comments: 16
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+245 lines, -8 lines) |
Patch |
 |
M |
chromeos/network/managed_network_configuration_handler_impl.cc
|
View
|
1
2
3
|
2 chunks |
+8 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chromeos/network/onc/onc_normalizer.h
|
View
|
1
2
3
|
1 chunk |
+4 lines, -1 line |
0 comments
|
Download
|
 |
M |
chromeos/network/onc/onc_normalizer.cc
|
View
|
|
2 chunks |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chromeos/network/onc/onc_normalizer_unittest.cc
|
View
|
|
2 chunks |
+17 lines, -1 line |
0 comments
|
Download
|
 |
M |
chromeos/network/onc/onc_signature.cc
|
View
|
1
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
chromeos/network/onc/onc_utils.h
|
View
|
1
|
1 chunk |
+11 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chromeos/network/onc/onc_utils.cc
|
View
|
1
2
3
|
3 chunks |
+37 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chromeos/network/onc/onc_validator.h
|
View
|
1
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chromeos/network/onc/onc_validator.cc
|
View
|
1
|
3 chunks |
+62 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chromeos/network/onc/onc_validator_unittest.cc
|
View
|
1
|
2 chunks |
+18 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chromeos/test/data/network/invalid_settings_with_repairs.json
|
View
|
1
|
1 chunk |
+31 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chromeos/test/data/network/settings_with_normalization.json
|
View
|
|
1 chunk |
+20 lines, -0 lines |
0 comments
|
Download
|
 |
A + |
chromeos/test/data/network/toplevel_wifi_hexssid.onc
|
View
|
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
A + |
chromeos/test/data/network/toplevel_wifi_ssid_and_hexssid.onc
|
View
|
1
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
components/onc/docs/onc_spec.html
|
View
|
1
2
3
|
3 chunks |
+27 lines, -2 lines |
0 comments
|
Download
|
 |
M |
components/onc/onc_constants.h
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
 |
M |
components/onc/onc_constants.cc
|
View
|
|
1 chunk |
+1 line, -0 lines |
0 comments
|
Download
|
Total messages: 14 (2 generated)
|