From dc54da0a2d19b5a93cb972a62f55ed5c1f9ee61d Mon Sep 17 00:00:00 2001 From: Vincent Coubard Date: Tue, 15 May 2018 09:12:55 +0100 Subject: [PATCH] Nordic BLE: Force signing and link requirements to false. --- .../TARGET_NRF5x/source/nRF5xPalSecurityManager.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_NRF5x/source/nRF5xPalSecurityManager.cpp b/features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_NRF5x/source/nRF5xPalSecurityManager.cpp index 0be03868c6..b08c707012 100644 --- a/features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_NRF5x/source/nRF5xPalSecurityManager.cpp +++ b/features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_NRF5x/source/nRF5xPalSecurityManager.cpp @@ -797,6 +797,14 @@ bool nRF5xSecurityManager::sm_handler(const ble_evt_t *evt) ); if (pairing_cb && pairing_cb->role == PAIRING_INITIATOR) { + // override signing parameter + initiator_dist.set_signing(false); + responder_dist.set_signing(false); + + // override link parameter + initiator_dist.set_link(false); + responder_dist.set_link(false); + // when this event is received by an initiator, it should not be // forwarded via the handler; this is not a behaviour expected // by the bluetooth standard ...