nordic

Fork of nRF51822 by Nordic Semiconductor

Revision:
371:295f76db798e
Parent:
363:6fa0d4d555f6
Child:
372:8f7d2137727a
--- a/btle/btle_security.h	Thu Jul 02 09:08:45 2015 +0100
+++ b/btle/btle_security.h	Mon Jul 06 10:13:26 2015 +0100
@@ -17,8 +17,7 @@
 #ifndef _BTLE_SECURITY_H_
 #define _BTLE_SECURITY_H_
 
-#include "ble/Gap.h"
-#include "ble/SecurityManager.h"
+#include "Gap.h"
 
 /**
  * Enable Nordic's Device Manager, which brings in functionality from the
@@ -35,10 +34,10 @@
  *
  * @return BLE_ERROR_NONE on success.
  */
-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);
+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);
 
 /**
  * Get the security status of a link.
@@ -50,7 +49,7 @@
  *
  * @return BLE_SUCCESS Or appropriate error code indicating reason for failure.
  */
-ble_error_t btle_getLinkSecurity(Gap::Handle_t connectionHandle, SecurityManager::LinkSecurityStatus_t *securityStatusP);
+ble_error_t btle_getLinkSecurity(Gap::Handle_t connectionHandle, Gap::LinkSecurityStatus_t *securityStatusP);
 
 /**
  * Function for deleting all peer device context and all related bonding