From 7e043ead968f185d0b6bd6f6927eef667a86e03c Mon Sep 17 00:00:00 2001 From: Vincent Coubard Date: Wed, 2 May 2018 17:52:39 +0100 Subject: [PATCH] Nordic BLE: Add stub implementation of remove_peer_csrk in security manager. --- .../TARGET_NRF5/source/nRF5xPalSecurityManager.cpp | 5 +++++ .../TARGET_NRF5/source/nRF5xPalSecurityManager.h | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_NRF5/source/nRF5xPalSecurityManager.cpp b/features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_NRF5/source/nRF5xPalSecurityManager.cpp index dfad1a671d..42fb338e22 100644 --- a/features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_NRF5/source/nRF5xPalSecurityManager.cpp +++ b/features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_NRF5/source/nRF5xPalSecurityManager.cpp @@ -527,6 +527,11 @@ ble_error_t nRF5xSecurityManager::set_peer_csrk( return BLE_ERROR_NOT_IMPLEMENTED; } +ble_error_t nRF5xSecurityManager::remove_peer_csrk(connection_handle_t connection) +{ + return BLE_ERROR_NOT_IMPLEMENTED; +} + //////////////////////////////////////////////////////////////////////////// // Authentication // diff --git a/features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_NRF5/source/nRF5xPalSecurityManager.h b/features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_NRF5/source/nRF5xPalSecurityManager.h index 35de6ba86b..0afb6c4deb 100644 --- a/features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_NRF5/source/nRF5xPalSecurityManager.h +++ b/features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_NRF5/source/nRF5xPalSecurityManager.h @@ -249,6 +249,11 @@ public: sign_count_t sign_counter ); + /** + * @see ::ble::pal::SecurityManager::remove_peer_csrk + */ + virtual ble_error_t remove_peer_csrk(connection_handle_t connection); + //////////////////////////////////////////////////////////////////////////// // Authentication