mirror of https://github.com/ARMmbed/mbed-os.git
line wrap
parent
e2a4c08d1f
commit
0ef6740fc3
|
@ -349,7 +349,10 @@ public:
|
|||
authentication.set_keypress_notification(enabled);
|
||||
}
|
||||
|
||||
virtual ble_error_t enableSigning(connection_handle_t connection, bool enabled = true) {
|
||||
virtual ble_error_t enableSigning(
|
||||
connection_handle_t connection,
|
||||
bool enabled = true
|
||||
) {
|
||||
SecurityEntry_t *entry = db.get_entry(connection);
|
||||
if (!entry) {
|
||||
return BLE_ERROR_INVALID_PARAM;
|
||||
|
@ -536,7 +539,11 @@ public:
|
|||
csrk_t csrk
|
||||
) {
|
||||
if (_app_event_handler) {
|
||||
_app_event_handler->signingKey(connection, csrk, db.get_entry(connection)->mitm);
|
||||
_app_event_handler->signingKey(
|
||||
connection,
|
||||
csrk,
|
||||
db.get_entry(connection)->mitm
|
||||
);
|
||||
}
|
||||
return DB_CB_ACTION_NO_UPDATE_REQUIRED;
|
||||
}
|
||||
|
@ -818,7 +825,11 @@ public:
|
|||
);
|
||||
|
||||
if (_app_event_handler) {
|
||||
_app_event_handler->signingKey(connection, csrk, db.get_entry(connection)->mitm);
|
||||
_app_event_handler->signingKey(
|
||||
connection,
|
||||
csrk,
|
||||
db.get_entry(connection)->mitm
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -863,7 +874,11 @@ public:
|
|||
db.update_entry_csrk(connection, csrk);
|
||||
|
||||
if (_app_event_handler) {
|
||||
_app_event_handler->signingKey(connection, csrk, db.get_entry(connection)->mitm);
|
||||
_app_event_handler->signingKey(
|
||||
connection,
|
||||
csrk,
|
||||
db.get_entry(connection)->mitm
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -872,7 +887,11 @@ public:
|
|||
const ediv_t ediv,
|
||||
const rand_t rand
|
||||
) {
|
||||
db.get_entry_keys(mbed::callback(this, &GenericSecurityManager::set_ltk_cb), ediv, rand);
|
||||
db.get_entry_keys(
|
||||
mbed::callback(this, &GenericSecurityManager::set_ltk_cb),
|
||||
ediv,
|
||||
rand
|
||||
);
|
||||
}
|
||||
|
||||
private:
|
||||
|
|
Loading…
Reference in New Issue