mirror of https://github.com/ARMmbed/mbed-os.git
only bother reacting to verification failures if we want to use signing
parent
c0f390f2cd
commit
cfa53d5e6c
|
@ -912,6 +912,11 @@ void GenericSecurityManager::on_signature_verification_failure(connection_handle
|
|||
return;
|
||||
}
|
||||
|
||||
const bool signing = cb->signing_override_default ?
|
||||
cb->signing_requested
|
||||
: _default_key_distribution.get_signing();
|
||||
|
||||
if (signing) {
|
||||
cb->csrk_failures++;
|
||||
if (cb->csrk_failures == 3) {
|
||||
cb->csrk_failures = 0;
|
||||
|
@ -921,6 +926,7 @@ void GenericSecurityManager::on_signature_verification_failure(connection_handle
|
|||
slave_security_request(connection);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void GenericSecurityManager::on_slave_security_request(
|
||||
|
|
Loading…
Reference in New Issue