summaryrefslogtreecommitdiff
path: root/src/main/proto/ukey.proto
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/proto/ukey.proto')
-rw-r--r--src/main/proto/ukey.proto47
1 files changed, 24 insertions, 23 deletions
diff --git a/src/main/proto/ukey.proto b/src/main/proto/ukey.proto
index 155b279..327d8d3 100644
--- a/src/main/proto/ukey.proto
+++ b/src/main/proto/ukey.proto
@@ -1,21 +1,22 @@
-/* Copyright 2018 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * https://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
+// Copyright 2020 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// https://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
syntax = "proto2";
package securegcm;
+option optimize_for = LITE_RUNTIME;
option java_package = "com.google.security.cryptauth.lib.securegcm";
option java_outer_classname = "UkeyProto";
@@ -36,12 +37,12 @@ message Ukey2Message {
message Ukey2Alert {
enum AlertType {
// Framing errors
- BAD_MESSAGE = 1; // The message could not be deserialized
- BAD_MESSAGE_TYPE = 2; // message_type has an undefined value
- INCORRECT_MESSAGE = 3; // message_type received does not correspond to
- // expected type at this stage of the protocol
- BAD_MESSAGE_DATA = 4; // Could not deserialize message_data as per
- // value inmessage_type
+ BAD_MESSAGE = 1; // The message could not be deserialized
+ BAD_MESSAGE_TYPE = 2; // message_type has an undefined value
+ INCORRECT_MESSAGE = 3; // message_type received does not correspond to
+ // expected type at this stage of the protocol
+ BAD_MESSAGE_DATA = 4; // Could not deserialize message_data as per
+ // value inmessage_type
// ClientInit and ServerInit errors
BAD_VERSION = 100; // version is invalid; server cannot find
@@ -54,9 +55,9 @@ message Ukey2Alert {
BAD_PUBLIC_KEY = 104; // The public key could not be parsed
// Other errors
- INTERNAL_ERROR = 200; // An internal error has occurred. error_message
- // may contain additional details for logging
- // and debugging.
+ INTERNAL_ERROR = 200; // An internal error has occurred. error_message
+ // may contain additional details for logging
+ // and debugging.
}
optional AlertType type = 1;