| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 // | 4 // |
| 5 // Sync protocol datatype extension for WiFi credentials. | 5 // Sync protocol datatype extension for WiFi credentials. |
| 6 | 6 |
| 7 // Update proto_{value,enum}_conversions{.h,.cc,_unittest.cc} if you change | 7 // Update proto_{value,enum}_conversions{.h,.cc,_unittest.cc} if you change |
| 8 // any fields in this file. | 8 // any fields in this file. |
| 9 | 9 |
| 10 syntax = "proto2"; | 10 syntax = "proto2"; |
| 11 | 11 |
| 12 option optimize_for = LITE_RUNTIME; | 12 option optimize_for = LITE_RUNTIME; |
| 13 option retain_unknown_fields = true; | |
| 14 | 13 |
| 15 package sync_pb; | 14 package sync_pb; |
| 16 | 15 |
| 17 // Properties of WiFi credential objects. | 16 // Properties of WiFi credential objects. |
| 18 message WifiCredentialSpecifics { | 17 message WifiCredentialSpecifics { |
| 19 optional bytes ssid = 1; // Not necessarily UTF-8. May contain NUL. | 18 optional bytes ssid = 1; // Not necessarily UTF-8. May contain NUL. |
| 20 | 19 |
| 21 enum SecurityClass { | 20 enum SecurityClass { |
| 22 SECURITY_CLASS_INVALID = 0; | 21 SECURITY_CLASS_INVALID = 0; |
| 23 SECURITY_CLASS_NONE = 1; | 22 SECURITY_CLASS_NONE = 1; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 49 // WPA/WPA-2 PSK as per IEEE 802.11i. | 48 // WPA/WPA-2 PSK as per IEEE 802.11i. |
| 50 // - A 64 character hex string. The string maps to the PSK per | 49 // - A 64 character hex string. The string maps to the PSK per |
| 51 // simple hex decoding. | 50 // simple hex decoding. |
| 52 // | 51 // |
| 53 // Note that, although the passphrase "should" contain only ASCII | 52 // Note that, although the passphrase "should" contain only ASCII |
| 54 // characters, we represent |passphrase| as |bytes| rather than | 53 // characters, we represent |passphrase| as |bytes| rather than |
| 55 // |string|. This is to accomodate networks that use non-ASCII | 54 // |string|. This is to accomodate networks that use non-ASCII |
| 56 // passphrases. | 55 // passphrases. |
| 57 optional bytes passphrase = 3; | 56 optional bytes passphrase = 3; |
| 58 } | 57 } |
| OLD | NEW |