mirror of https://github.com/ARMmbed/mbed-os.git
don't require master sends keys for signing key
parent
a99a4b8593
commit
d1f3e4fd27
|
|
@ -177,6 +177,8 @@ ble_error_t GenericSecurityManager::acceptPairingRequest(connection_handle_t con
|
|||
|
||||
KeyDistribution initiator_distribution = cb->get_initiator_key_distribution();
|
||||
|
||||
bool master_signing = initiator_distribution.get_signing();
|
||||
|
||||
if (_master_sends_keys) {
|
||||
initiator_distribution &= _default_key_distribution;
|
||||
} else {
|
||||
|
|
@ -184,7 +186,7 @@ ble_error_t GenericSecurityManager::acceptPairingRequest(connection_handle_t con
|
|||
}
|
||||
|
||||
/* signing has to be offered and enabled on the link */
|
||||
if (initiator_distribution.get_signing()) {
|
||||
if (master_signing) {
|
||||
initiator_distribution.set_signing(
|
||||
cb->signing_override_default ? cb->signing_requested : _default_key_distribution.get_signing()
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in New Issue