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

Side by Side Diff: extensions/common/api/cast_channel/cast_channel.proto

Issue 2303673004: Hook up Chrome Cast sender to Cast CRL. (Closed)
Patch Set: Fixed nit Created 4 years, 2 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
OLDNEW
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 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 { 56 enum SignatureAlgorithm {
57 UNSPECIFIED = 0; 57 UNSPECIFIED = 0;
58 RSASSA_PKCS1v15 = 1; 58 RSASSA_PKCS1v15 = 1;
59 RSASSA_PSS = 2; 59 RSASSA_PSS = 2;
60 } 60 }
61 61
62 enum HashAlgorithm {
63 SHA1 = 0;
64 SHA256 = 1;
65 }
66
62 // Messages for authentication protocol between a sender and a receiver. 67 // Messages for authentication protocol between a sender and a receiver.
63 message AuthChallenge { 68 message AuthChallenge {
64 optional SignatureAlgorithm signature_algorithm = 1 69 optional SignatureAlgorithm signature_algorithm = 1
65 [default = RSASSA_PKCS1v15]; 70 [default = RSASSA_PKCS1v15];
71 optional bytes sender_nonce = 2;
72 optional HashAlgorithm hash_algorithm = 3 [default = SHA1];
66 } 73 }
67 74
68 message AuthResponse { 75 message AuthResponse {
69 required bytes signature = 1; 76 required bytes signature = 1;
70 required bytes client_auth_certificate = 2; 77 required bytes client_auth_certificate = 2;
71 repeated bytes intermediate_certificate = 3; 78 repeated bytes intermediate_certificate = 3;
72 optional SignatureAlgorithm signature_algorithm = 4 79 optional SignatureAlgorithm signature_algorithm = 4
73 [default = RSASSA_PKCS1v15]; 80 [default = RSASSA_PKCS1v15];
81 optional bytes sender_nonce = 5;
82 optional HashAlgorithm hash_algorithm = 6 [default = SHA1];
83 optional bytes crl = 7;
74 } 84 }
75 85
76 message AuthError { 86 message AuthError {
77 enum ErrorType { 87 enum ErrorType {
78 INTERNAL_ERROR = 0; 88 INTERNAL_ERROR = 0;
79 NO_TLS = 1; // The underlying connection is not TLS 89 NO_TLS = 1; // The underlying connection is not TLS
80 SIGNATURE_ALGORITHM_UNAVAILABLE = 2; 90 SIGNATURE_ALGORITHM_UNAVAILABLE = 2;
81 } 91 }
82 required ErrorType error_type = 1; 92 required ErrorType error_type = 1;
83 } 93 }
84 94
85 message DeviceAuthMessage { 95 message DeviceAuthMessage {
86 // Request fields 96 // Request fields
87 optional AuthChallenge challenge = 1; 97 optional AuthChallenge challenge = 1;
88 // Response fields 98 // Response fields
89 optional AuthResponse response = 2; 99 optional AuthResponse response = 2;
90 optional AuthError error = 3; 100 optional AuthError error = 3;
91 } 101 }
OLDNEW
« no previous file with comments | « extensions/browser/api/cast_channel/logger.cc ('k') | extensions/common/api/cast_channel/logging.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698