OLD | NEW |
---|---|
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 syntax = "proto2"; | 5 syntax = "proto2"; |
6 | 6 |
7 option optimize_for = LITE_RUNTIME; | 7 option optimize_for = LITE_RUNTIME; |
8 | 8 |
9 package extensions.api.cast_channel; | 9 package extensions.api.cast_channel; |
10 | 10 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
46 BINARY = 1; | 46 BINARY = 1; |
47 } | 47 } |
48 required PayloadType payload_type = 5; | 48 required PayloadType payload_type = 5; |
49 | 49 |
50 // Depending on payload_type, exactly one of the following optional fields | 50 // Depending on payload_type, exactly one of the following optional fields |
51 // will always be set. | 51 // will always be set. |
52 optional string payload_utf8 = 6; | 52 optional string payload_utf8 = 6; |
53 optional bytes payload_binary = 7; | 53 optional bytes payload_binary = 7; |
54 } | 54 } |
55 | 55 |
56 // Messages for authentication protocol between a sender and a receiver. | |
57 message AuthChallenge { | |
58 } | |
59 | |
60 message AuthResponse { | |
61 required bytes signature = 1; | |
akalin
2013/10/26 23:33:37
another problem -- required fields in protobufs ar
| |
62 required bytes client_auth_certificate = 2; | |
63 } | |
64 | |
65 message AuthError { | |
66 enum ErrorType { | |
67 INTERNAL_ERROR = 0; | |
68 NO_TLS = 1; // The underlying connection is not TLS | |
69 } | |
70 required ErrorType error_type = 1; | |
71 } | |
72 | |
73 message DeviceAuthMessage { | |
74 // Request fields | |
75 optional AuthChallenge challenge = 1; | |
76 // Response fields | |
77 optional AuthResponse response = 2; | |
78 optional AuthError error = 3; | |
79 } | |
OLD | NEW |