test
Fork of nRF51822 by
Diff: btle/btle_security.h
- Revision:
- 356:55ede9fd5279
- Parent:
- 150:44c40836c82f
- Child:
- 360:7c68c8d67e1f
diff -r c3637b4e7aff -r 55ede9fd5279 btle/btle_security.h --- a/btle/btle_security.h Fri Jun 19 15:55:36 2015 +0100 +++ b/btle/btle_security.h Fri Jun 19 15:55:37 2015 +0100 @@ -18,6 +18,7 @@ #define _BTLE_SECURITY_H_ #include "Gap.h" +#include "SecurityManager.h" /** * Enable Nordic's Device Manager, which brings in functionality from the @@ -34,10 +35,10 @@ * * @return BLE_ERROR_NONE on success. */ -ble_error_t btle_initializeSecurity(bool enableBonding = true, - bool requireMITM = true, - Gap::SecurityIOCapabilities_t iocaps = Gap::IO_CAPS_NONE, - const Gap::Passkey_t passkey = NULL); +ble_error_t btle_initializeSecurity(bool enableBonding = true, + bool requireMITM = true, + SecurityManager::SecurityIOCapabilities_t iocaps = SecurityManager::IO_CAPS_NONE, + const SecurityManager::Passkey_t passkey = NULL); /** * Get the security status of a link. @@ -49,7 +50,7 @@ * * @return BLE_SUCCESS Or appropriate error code indicating reason for failure. */ -ble_error_t btle_getLinkSecurity(Gap::Handle_t connectionHandle, Gap::LinkSecurityStatus_t *securityStatusP); +ble_error_t btle_getLinkSecurity(Gap::Handle_t connectionHandle, SecurityManager::LinkSecurityStatus_t *securityStatusP); /** * Function for deleting all peer device context and all related bonding