test
Fork of nRF51822 by
Diff: source/btle/btle_security.cpp
- Revision:
- 389:5982ee136c47
- Parent:
- 388:db85a09c27ef
- Child:
- 390:d9f7f0134e24
--- a/source/btle/btle_security.cpp Tue Jul 21 13:23:44 2015 +0100 +++ b/source/btle/btle_security.cpp Tue Jul 21 13:23:44 2015 +0100 @@ -17,8 +17,8 @@ #include "btle.h" #include "pstorage.h" -#include "nRF5xGap.h" -#include "nRF5xSecurityManager.h" +#include "nRF51Gap.h" +#include "nRF51SecurityManager.h" #include "device_manager.h" #include "btle_security.h" @@ -154,14 +154,14 @@ switch (p_event->event_id) { case DM_EVT_SECURITY_SETUP: /* started */ { const ble_gap_sec_params_t *peerParams = &p_event->event_param.p_gap_param->params.sec_params_request.peer_params; - nRF5xSecurityManager::getInstance().processSecuritySetupInitiatedEvent(p_event->event_param.p_gap_param->conn_handle, + nRF51SecurityManager::getInstance().processSecuritySetupInitiatedEvent(p_event->event_param.p_gap_param->conn_handle, peerParams->bond, peerParams->mitm, (SecurityManager::SecurityIOCapabilities_t)peerParams->io_caps); break; } case DM_EVT_SECURITY_SETUP_COMPLETE: - nRF5xSecurityManager::getInstance(). + nRF51SecurityManager::getInstance(). processSecuritySetupCompletedEvent(p_event->event_param.p_gap_param->conn_handle, (SecurityManager::SecurityCompletionStatus_t)(p_event->event_param.p_gap_param->params.auth_status.auth_status)); break; @@ -195,11 +195,11 @@ break; } - nRF5xSecurityManager::getInstance().processLinkSecuredEvent(p_event->event_param.p_gap_param->conn_handle, resolvedSecurityMode); + nRF51SecurityManager::getInstance().processLinkSecuredEvent(p_event->event_param.p_gap_param->conn_handle, resolvedSecurityMode); break; } case DM_EVT_DEVICE_CONTEXT_STORED: - nRF5xSecurityManager::getInstance().processSecurityContextStoredEvent(p_event->event_param.p_gap_param->conn_handle); + nRF51SecurityManager::getInstance().processSecurityContextStoredEvent(p_event->event_param.p_gap_param->conn_handle); break; default: break;