OSDN Git Service

ClassicPairingHandler: Add Out of Band support.
authorMartin Brabham <optedoblivion@google.com>
Tue, 17 Nov 2020 01:14:01 +0000 (17:14 -0800)
committerMyles Watson <mylesgw@google.com>
Fri, 20 Nov 2020 01:18:59 +0000 (17:18 -0800)
commit083fe68fa73ca135e091002c50b54bb5499d15e5
treec0975893a0e74a30c01e710d178357193d36b67e
parent9b5717eb38e2ee4b00ed9a1c6228ba3f1cb22557
ClassicPairingHandler: Add Out of Band support.

Adds support for p192, p256, and both.  As well as
secure connections "extended data" versions of the
RemoteOobDataRequestReply.

Add several unit tests to verify the pairing handler
correctly behaves.

Bug: 162984360
Tag: #gd-refactor
Test: cert/run --host SecurityTest
Test: atest --host bluetooth_test_gd -- --test-arg com.android.tradefed.testtype.GTest:native-test-flag:--gtest_filter=ClassicPairingHandlerTest*
Change-Id: I72016f380a29ad11ec9bdd9e0dcb3383c092c830
12 files changed:
gd/cert/py_security.py
gd/security/cert/cert_security.py
gd/security/facade.cc
gd/security/facade.proto
gd/security/facade_configuration_api.cc
gd/security/facade_configuration_api.h
gd/security/internal/security_manager_impl.cc
gd/security/internal/security_manager_impl.h
gd/security/pairing/classic_pairing_handler.cc
gd/security/pairing/classic_pairing_handler.h
gd/security/pairing/classic_pairing_handler_unittest.cc
gd/security/pairing/pairing_handler.h