let the stack know whether csrk is authenticated

pull/6932/head
paul-szczepanek-arm 2018-03-29 15:24:40 +01:00
parent eb66461e29
commit c36a8d7dba
4 changed files with 10 additions and 4 deletions

View File

@ -885,7 +885,8 @@ public:
*/
virtual ble_error_t set_peer_csrk(
connection_handle_t connection,
const csrk_t &csrk
const csrk_t &csrk,
bool authenticated
) = 0;
////////////////////////////////////////////////////////////////////////////

View File

@ -711,7 +711,10 @@ void GenericSecurityManager::set_peer_csrk_cb(
return;
}
_pal.set_peer_csrk(cb->connection, *csrk);
_pal.set_peer_csrk(
cb->connection,
*csrk,
cb->csrk_mitm_protected);
}
void GenericSecurityManager::return_csrk_cb(

View File

@ -244,7 +244,8 @@ public:
*/
virtual ble_error_t set_peer_csrk(
connection_handle_t connection,
const csrk_t &csrk
const csrk_t &csrk,
bool authenticated
);
////////////////////////////////////////////////////////////////////////////

View File

@ -274,7 +274,8 @@ ble_error_t CordioSecurityManager::set_csrk(const csrk_t& csrk)
ble_error_t CordioSecurityManager::set_peer_csrk(
connection_handle_t connection,
const csrk_t &csrk
const csrk_t &csrk,
bool authenticated
) {
/* TODO implement */
return BLE_ERROR_NOT_IMPLEMENTED;