Home | History | Annotate | Download | only in proto
      1 /* Copyright 2018 Google LLC
      2  *
      3  * Licensed under the Apache License, Version 2.0 (the "License");
      4  * you may not use this file except in compliance with the License.
      5  * You may obtain a copy of the License at
      6  *
      7  *     https://www.apache.org/licenses/LICENSE-2.0
      8  *
      9  * Unless required by applicable law or agreed to in writing, software
     10  * distributed under the License is distributed on an "AS IS" BASIS,
     11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     12  * See the License for the specific language governing permissions and
     13  * limitations under the License.
     14  */
     15 syntax = "proto2";
     16 
     17 import "securegcm.proto";
     18 
     19 package securegcm;
     20 
     21 option java_package = "com.google.security.cryptauth.lib.securegcm";
     22 option java_outer_classname = "SecureGcmProximityAuthProto";
     23 option objc_class_prefix = "SGCM";
     24 
     25 // Message used when one device wants to initiate a Proximity Auth pairing with another device
     26 // DEPRECATED. DO NOT USE
     27 message CloudToDeviceProximityAuthPairing {
     28 // The name or description of the device that wants to pair with another
     29 // personal device of the user.  This is a string that may be shown to the
     30 // user or may be kept in logs.
     31   optional string initiating_device_name = 1;
     32 
     33   // The original device's Bluetooth address in human readable form
     34   // (e.g., <code>AA:BB:CC:DD:EE:FF</code>)
     35   optional string initiating_device_bt_address = 2;
     36 
     37   // A symmetric key that was generated by the original device.
     38   optional bytes ephemeral_symmetric_key = 3;
     39 
     40   // Optional additional metadata that the initiating device can choose to send.
     41   // Used for quick protocol iteration.
     42   optional bytes additional_metadata = 4;
     43 }
     44 
     45 // Message to push to eligible unlock devices so that they can contact the
     46 // device to be unlocked. Used by FindEligibleUnlockDevicesRequest, with
     47 // PayloadType = DEVICE_PROXIMITY_CALLBACK.
     48 message DeviceProximityCallback {
     49   // Required. The bluetooth MAC address that should be contacted by the unlock
     50   // device.
     51   optional string callback_bluetooth_address = 1;
     52 
     53   // Required. The type of the device that triggered this callback to be sent.
     54   optional DeviceType source_device_type = 2;
     55 
     56   // The version of the setup protocol that the source device expects to use.
     57   optional int32 protocol_version = 3;
     58 }
     59