From b0c7d729fc64532a152d8dba7a870db8724c335b Mon Sep 17 00:00:00 2001 From: paul-szczepanek-arm <33840200+paul-szczepanek-arm@users.noreply.github.com> Date: Tue, 27 Feb 2018 10:00:07 +0000 Subject: [PATCH] variable name updated in the undefed cmac blocks --- .../FEATURE_BLE/source/generic/GenericSecurityManager.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/features/FEATURE_BLE/source/generic/GenericSecurityManager.cpp b/features/FEATURE_BLE/source/generic/GenericSecurityManager.cpp index 8eb9881113..b017cea157 100644 --- a/features/FEATURE_BLE/source/generic/GenericSecurityManager.cpp +++ b/features/FEATURE_BLE/source/generic/GenericSecurityManager.cpp @@ -986,13 +986,13 @@ void GenericSecurityManager::on_oob_data_verification_request( crypto_toolbox_f4( peer_public_key_x, peer_public_key_y, - _peer_oob_random, + _peer_sc_oob_random, confirm_verify ); - if (cb && (cb->peer_address == _peer_oob_address) - && (confirm_verify == _peer_oob_confirm)) { - _pal.oob_data_verified(connection, _local_oob_random, _peer_oob_random); + if (cb && (cb->peer_address == _peer_sc_oob_address) + && (confirm_verify == _peer_sc_oob_confirm)) { + _pal.oob_data_verified(connection, _local_sc_oob_random, _peer_sc_oob_random); } else { _pal.cancel_pairing(connection, pairing_failure_t::CONFIRM_VALUE_FAILED); }