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

Side by Side Diff: chrome/browser/extensions/api/cast_channel/cast_channel.proto

Issue 278383002: Revert of Auth work to support new auth protocol (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/extensions/api/cast_channel/cast_auth_util_nss.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/cast_channel/cast_auth_util_nss.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698