Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5bfa62ae authored by Thomas Girardier's avatar Thomas Girardier Committed by Android Build Coastguard Worker
Browse files

Revert "Fix an authentication bypass bug in SMP"

This reverts commit bac3e50f.

Reason for revert: b/331855635
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:34ee990ee72693cd534d7d696f3a52c9c5a5bfd8)
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:e214741ee05dd6bad9bf1d7a62c1448c7eee4332)
Merged-In: I471269cb5ecd4aef32c6648ad575baea44b562d1
Change-Id: I471269cb5ecd4aef32c6648ad575baea44b562d1
parent 50e71dd5
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -1977,14 +1977,6 @@ void smp_process_secure_connection_oob_data(tSMP_CB* p_cb,

  if (!p_sc_oob_data->peer_oob_data.present) {
    log::verbose("peer OOB data is absent");

    if (IS_FLAG_ENABLED(fix_le_oob_pairing_bypass)) {
      tSMP_INT_DATA smp_int_data{};
      smp_int_data.status = SMP_OOB_FAIL;
      smp_sm_event(p_cb, SMP_AUTH_CMPL_EVT, &smp_int_data);
      return;
    }

    p_cb->peer_random = {0};
  } else {
    p_cb->peer_random = p_sc_oob_data->peer_oob_data.randomizer;