OSDN Git Service

GD Security Facade
authorMartin Brabham <optedoblivion@google.com>
Fri, 13 Nov 2020 03:38:40 +0000 (19:38 -0800)
committerMartin Brabham <optedoblivion@google.com>
Mon, 16 Nov 2020 18:35:01 +0000 (10:35 -0800)
Add CreateBondOutOfBand and OobDataBondMessage

Bug: 162984360
Tag: #gd-refactor
Test: cert/run --host SecurityTest
Change-Id: I4386b836810be50c2e49b505ccec9cad08a63b89

gd/security/facade.proto

index 299ff97..3e86481 100644 (file)
@@ -9,6 +9,7 @@ import "hci/facade/le_initiator_address_facade.proto";
 
 service SecurityModuleFacade {
   rpc CreateBond(facade.BluetoothAddressWithType) returns (google.protobuf.Empty) {}
+  rpc CreateBondOutOfBand(OobDataBondMessage) returns (google.protobuf.Empty) {}
   rpc CreateBondLe(facade.BluetoothAddressWithType) returns (google.protobuf.Empty) {}
   rpc CancelBond(facade.BluetoothAddressWithType) returns (google.protobuf.Empty) {}
   rpc RemoveBond(facade.BluetoothAddressWithType) returns (google.protobuf.Empty) {}
@@ -37,6 +38,12 @@ message OobDataMessage {
   bytes le_sc_random_value = 3;
 }
 
+message OobDataBondMessage {
+  facade.BluetoothAddressWithType address = 1;
+  OobDataMessage p192_data = 2;
+  OobDataMessage p256_data = 3;
+}
+
 enum UiMsgType {
   DISPLAY_YES_NO_WITH_VALUE = 0;
   DISPLAY_YES_NO = 1;