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/docs | |
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/docs')
-rw-r--r-- | components/onc/docs/onc_spec.html | 29 |
1 files changed, 27 insertions, 2 deletions
diff --git a/components/onc/docs/onc_spec.html b/components/onc/docs/onc_spec.html index f4e70c8..a5e27eb 100644 --- a/components/onc/docs/onc_spec.html +++ b/components/onc/docs/onc_spec.html @@ -669,6 +669,21 @@ EAP settings. </dd> + <dt class="field">HexSSID</dt> + <dd> + <span class="field_meta"> + (optional if <span class="field">SSID</span> is set, if so defaults to + a hex representation of <span class="field">SSID</span>) + <span class="type">string</span> + </span> + Hex representation of the network's SSID. If the + <span class="field">SSID</span> field is set, but + <span class="field">HexSSID</span> is not, converts the contents of the + <span class="field">SSID</span> field to UTF-8 encoding, + creates the hex representation and assigns the result to + <span class="field">HexSSID</span>. + </dd> + <dt class="field">HiddenSSID</dt> <dd> <span class="field_meta"> @@ -711,10 +726,12 @@ <dt class="field">SSID</dt> <dd> <span class="field_meta"> - (required) + (optional if <span class="field">HexSSID</span> is set) <span class="type">string</span> </span> - SSID of the network. + SSID of the network. This field can only used for unicode strings in the + UTF-8 encoding. For non-UTF-8 encodings the + <span class="field">HexSSID</span> field must be used. </dd> <dt class="field">SignalStrength</dt> @@ -728,6 +745,14 @@ be set to '0' or not present. </dd> </dl> + <span class="rule"> + <span class="rule_id"></span> + At least one of the fields <span class="field">HexSSID</span> or + <span class="field">SSID</span> must be present. If both + <span class="field">HexSSID</span> and <span class="field">SSID</span> + are set, the values must be consistent. + </span> + </span> </section> <section> |