diff options
author | cschuet <cschuet@chromium.org> | 2014-12-04 08:58:24 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-12-04 16:58:58 +0000 |
commit | decce902f12dde8b6abdbfe625905be8fcb27ab0 (patch) | |
tree | 852ecc8de0d537d8065df755f647ac01ea9d29ff /components/onc/onc_constants.h | |
parent | b3ad90b31caa593a4018c1f4c1aae44f4c4885f2 (diff) | |
download | chromium_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.h')
-rw-r--r-- | components/onc/onc_constants.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/components/onc/onc_constants.h b/components/onc/onc_constants.h index 89b193b..9b9d1ad 100644 --- a/components/onc/onc_constants.h +++ b/components/onc/onc_constants.h @@ -201,6 +201,7 @@ ONC_EXPORT extern const char kBSSID[]; ONC_EXPORT extern const char kEAP[]; ONC_EXPORT extern const char kFrequency[]; ONC_EXPORT extern const char kFrequencyList[]; +ONC_EXPORT extern const char kHexSSID[]; ONC_EXPORT extern const char kHiddenSSID[]; ONC_EXPORT extern const char kPassphrase[]; ONC_EXPORT extern const char kSSID[]; |