diff --git a/features/FEATURE_BLE/ble/pal/MemorySecurityDB.h b/features/FEATURE_BLE/ble/pal/MemorySecurityDB.h index b0c6f7088e..c6c627b66b 100644 --- a/features/FEATURE_BLE/ble/pal/MemorySecurityDB.h +++ b/features/FEATURE_BLE/ble/pal/MemorySecurityDB.h @@ -17,6 +17,7 @@ #ifndef PAL_MEMORY_SECURITY_DB_H_ #define PAL_MEMORY_SECURITY_DB_H_ +#include "ble/Gap.h" #include "SecurityDB.h" namespace ble { @@ -174,6 +175,19 @@ public: cb(entry_handle, key); } + virtual void get_entry_identity( + SecurityEntryIdentityDbCb_t cb, + entry_handle_t entry_handle + ) { + entry_t *entry = as_entry(entry_handle); + if (entry && entry->flags.irk_stored) { + cb(entry_handle, &entry->peer_identity); + } else { + cb(entry_handle, NULL); + } + } + + /* set */ virtual void set_entry_peer_ltk(