No changes
Fork of nRF51822 by
Diff: source/nRF5xSecurityManager.h
- Revision:
- 598:814c1ce92947
- Parent:
- 575:7023a8204a1b
- Child:
- 599:3e66e1eb264d
--- a/source/nRF5xSecurityManager.h Mon Jan 11 10:19:35 2016 +0000 +++ b/source/nRF5xSecurityManager.h Mon Jan 11 10:19:35 2016 +0000 @@ -19,6 +19,7 @@ #include <stddef.h> +#include "nRF5xGap.h" #include "ble/SecurityManager.h" #include "btle_security.h" @@ -60,6 +61,10 @@ return BLE_ERROR_NONE; } + bool hasInitialized(void) const { + return btle_hasInitializedSecurity(); + } + public: /* * Allow instantiation from nRF5xn when required. @@ -73,6 +78,15 @@ private: nRF5xSecurityManager(const nRF5xSecurityManager &); const nRF5xSecurityManager& operator=(const nRF5xSecurityManager &); + + ble_error_t createWhitelistFromBondTable(ble_gap_whitelist_t &whitelistFromBondTable) const { + return btle_createWhitelistFromBondTable(&whitelistFromBondTable); + } + + bool matchAddressAndIrk(ble_gap_addr_t *address, ble_gap_irk_t *irk) const { + return btle_matchAddressAndIrk(address, irk); + } + friend class nRF5xGap; }; #endif // ifndef __NRF51822_SECURITY_MANAGER_H__ \ No newline at end of file