summaryrefslogtreecommitdiffstats
path: root/components/onc/onc_constants.cc
diff options
context:
space:
mode:
authorcschuet <cschuet@chromium.org>2014-12-04 08:58:24 -0800
committerCommit bot <commit-bot@chromium.org>2014-12-04 16:58:58 +0000
commitdecce902f12dde8b6abdbfe625905be8fcb27ab0 (patch)
tree852ecc8de0d537d8065df755f647ac01ea9d29ff /components/onc/onc_constants.cc
parentb3ad90b31caa593a4018c1f4c1aae44f4c4885f2 (diff)
downloadchromium_src-decce902f12dde8b6abdbfe625905be8fcb27ab0.zip
chromium_src-decce902f12dde8b6abdbfe625905be8fcb27ab0.tar.gz
chromium_src-decce902f12dde8b6abdbfe625905be8fcb27ab0.tar.bz2
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 Review URL: https://codereview.chromium.org/759663004 Cr-Commit-Position: refs/heads/master@{#306838}
Diffstat (limited to 'components/onc/onc_constants.cc')
-rw-r--r--components/onc/onc_constants.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/components/onc/onc_constants.cc b/components/onc/onc_constants.cc
index e9d1905..51dfbc5 100644
--- a/components/onc/onc_constants.cc
+++ b/components/onc/onc_constants.cc
@@ -183,6 +183,7 @@ const char kBSSID[] = "BSSID";
const char kEAP[] = "EAP";
const char kFrequency[] = "Frequency";
const char kFrequencyList[] = "FrequencyList";
+const char kHexSSID[] = "HexSSID";
const char kHiddenSSID[] = "HiddenSSID";
const char kPassphrase[] = "Passphrase";
const char kSSID[] = "SSID";