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