line wrap

pull/6188/head
paul-szczepanek-arm 2018-01-21 19:41:18 +00:00
parent e2a4c08d1f
commit 0ef6740fc3
1 changed files with 25 additions and 6 deletions

View File

@ -349,7 +349,10 @@ public:
authentication.set_keypress_notification(enabled); 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); SecurityEntry_t *entry = db.get_entry(connection);
if (!entry) { if (!entry) {
return BLE_ERROR_INVALID_PARAM; return BLE_ERROR_INVALID_PARAM;
@ -536,7 +539,11 @@ public:
csrk_t csrk csrk_t csrk
) { ) {
if (_app_event_handler) { 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; return DB_CB_ACTION_NO_UPDATE_REQUIRED;
} }
@ -818,7 +825,11 @@ public:
); );
if (_app_event_handler) { 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); db.update_entry_csrk(connection, csrk);
if (_app_event_handler) { 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 ediv_t ediv,
const rand_t rand 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: private: