mirror of https://github.com/ARMmbed/mbed-os.git
let the stack know whether csrk is authenticated
parent
eb66461e29
commit
c36a8d7dba
|
@ -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;
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -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
|
||||
);
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue