Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(20)

Side by Side Diff: sync/protocol/wifi_credential_specifics.proto

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sync/protocol/unique_position.proto ('k') | sync/sessions/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4 //
5 // Sync protocol datatype extension for WiFi credentials.
6
7 // Update proto_{value,enum}_conversions{.h,.cc,_unittest.cc} if you change
8 // any fields in this file.
9
10 syntax = "proto2";
11
12 option optimize_for = LITE_RUNTIME;
13 option retain_unknown_fields = true;
14
15 package sync_pb;
16
17 // Properties of WiFi credential objects.
18 message WifiCredentialSpecifics {
19 optional bytes ssid = 1; // Not necessarily UTF-8. May contain NUL.
20
21 enum SecurityClass {
22 SECURITY_CLASS_INVALID = 0;
23 SECURITY_CLASS_NONE = 1;
24 SECURITY_CLASS_WEP = 2;
25 SECURITY_CLASS_PSK = 3; // WPA-PSK or RSN-PSK
26 // 802.1X is omittted, as we do not support syncing 802.1X
27 // credentials.
28 }
29 optional SecurityClass security_class = 2;
30
31 // Network passphrase.
32 //
33 // For SECURITY_CLASS_NONE, the passphrase should be ignored.
34 //
35 // For SECURITY_CLASS_WEP, the passphrase should have one of the
36 // following formats:
37 // - WEP-40:
38 // - 5 character ASCII string. Each character maps one byte of the key.
39 // - 10 character hex string. The string maps to the WEP key by simple
40 // hex decoding.
41 // - WEP-104:
42 // - 13 character ASCII string. Each character maps one byte of the key.
43 // - 26 character hex string. The string maps to the WEP key by simple
44 // hex decoding.
45 //
46 // For SECURITY_CLASS_PSK, the passphrase should have one of the
47 // following two formats:
48 // - An 8-63 character ASCII string. The string maps to the
49 // WPA/WPA-2 PSK as per IEEE 802.11i.
50 // - A 64 character hex string. The string maps to the PSK per
51 // simple hex decoding.
52 //
53 // Note that, although the passphrase "should" contain only ASCII
54 // characters, we represent |passphrase| as |bytes| rather than
55 // |string|. This is to accomodate networks that use non-ASCII
56 // passphrases.
57 optional bytes passphrase = 3;
58 }
OLDNEW
« no previous file with comments | « sync/protocol/unique_position.proto ('k') | sync/sessions/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698