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 enum SignatureAlgorithm { | |
57 UNSPECIFIED = 0; | |
58 RSASSA_PKCS1v15 = 1; | |
59 RSASSA_PSS = 2; | |
60 } | |
61 | |
62 // Messages for authentication protocol between a sender and a receiver. | 56 // Messages for authentication protocol between a sender and a receiver. |
63 message AuthChallenge { | 57 message AuthChallenge { |
64 optional SignatureAlgorithm signature_algorithm = 1 | |
65 [default = RSASSA_PKCS1v15]; | |
66 } | 58 } |
67 | 59 |
68 message AuthResponse { | 60 message AuthResponse { |
69 required bytes signature = 1; | 61 required bytes signature = 1; |
70 required bytes client_auth_certificate = 2; | 62 required bytes client_auth_certificate = 2; |
71 repeated bytes intermediate_certificate = 3; | |
72 optional SignatureAlgorithm signature_algorithm = 4 | |
73 [default = RSASSA_PKCS1v15]; | |
74 } | 63 } |
75 | 64 |
76 message AuthError { | 65 message AuthError { |
77 enum ErrorType { | 66 enum ErrorType { |
78 INTERNAL_ERROR = 0; | 67 INTERNAL_ERROR = 0; |
79 NO_TLS = 1; // The underlying connection is not TLS | 68 NO_TLS = 1; // The underlying connection is not TLS |
80 SIGNATURE_ALGORITHM_UNAVAILABLE = 2; | |
81 } | 69 } |
82 required ErrorType error_type = 1; | 70 required ErrorType error_type = 1; |
83 } | 71 } |
84 | 72 |
85 message DeviceAuthMessage { | 73 message DeviceAuthMessage { |
86 // Request fields | 74 // Request fields |
87 optional AuthChallenge challenge = 1; | 75 optional AuthChallenge challenge = 1; |
88 // Response fields | 76 // Response fields |
89 optional AuthResponse response = 2; | 77 optional AuthResponse response = 2; |
90 optional AuthError error = 3; | 78 optional AuthError error = 3; |
91 } | 79 } |
OLD | NEW |