Commit 4ea414b4 authored by munjal@chromium.org's avatar munjal@chromium.org

Auth work to support new auth protocol

BUG=345759

Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=269445

Review URL: https://codereview.chromium.org/254083007

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@270007 0039d316-1c4b-4281-b951-d872f2087c98
parent a586abda
...@@ -53,19 +53,31 @@ message CastMessage { ...@@ -53,19 +53,31 @@ message CastMessage {
optional bytes payload_binary = 7; optional bytes payload_binary = 7;
} }
enum SignatureAlgorithm {
UNSPECIFIED = 0;
RSASSA_PKCS1v15 = 1;
RSASSA_PSS = 2;
}
// Messages for authentication protocol between a sender and a receiver. // Messages for authentication protocol between a sender and a receiver.
message AuthChallenge { message AuthChallenge {
optional SignatureAlgorithm signature_algorithm = 1
[default = RSASSA_PKCS1v15];
} }
message AuthResponse { message AuthResponse {
required bytes signature = 1; required bytes signature = 1;
required bytes client_auth_certificate = 2; required bytes client_auth_certificate = 2;
repeated bytes intermediate_certificate = 3;
optional SignatureAlgorithm signature_algorithm = 4
[default = RSASSA_PKCS1v15];
} }
message AuthError { message AuthError {
enum ErrorType { enum ErrorType {
INTERNAL_ERROR = 0; INTERNAL_ERROR = 0;
NO_TLS = 1; // The underlying connection is not TLS NO_TLS = 1; // The underlying connection is not TLS
SIGNATURE_ALGORITHM_UNAVAILABLE = 2;
} }
required ErrorType error_type = 1; required ErrorType error_type = 1;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment