mirror of https://github.com/ARMmbed/mbed-os.git
style fix
parent
cfa53d5e6c
commit
b979c4a2c8
|
@ -906,7 +906,9 @@ void GenericSecurityManager::on_valid_mic_timeout(connection_handle_t connection
|
||||||
(void)connection;
|
(void)connection;
|
||||||
}
|
}
|
||||||
|
|
||||||
void GenericSecurityManager::on_signature_verification_failure(connection_handle_t connection) {
|
void GenericSecurityManager::on_signature_verification_failure(
|
||||||
|
connection_handle_t connection
|
||||||
|
) {
|
||||||
ControlBlock_t *cb = get_control_block(connection);
|
ControlBlock_t *cb = get_control_block(connection);
|
||||||
if (!cb) {
|
if (!cb) {
|
||||||
return;
|
return;
|
||||||
|
@ -921,9 +923,9 @@ void GenericSecurityManager::on_signature_verification_failure(connection_handle
|
||||||
if (cb->csrk_failures == 3) {
|
if (cb->csrk_failures == 3) {
|
||||||
cb->csrk_failures = 0;
|
cb->csrk_failures = 0;
|
||||||
if (cb->is_master) {
|
if (cb->is_master) {
|
||||||
requestPairing(connection);
|
requestPairing(connection);
|
||||||
} else {
|
} else {
|
||||||
slave_security_request(connection);
|
slave_security_request(connection);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue