File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
features/FEATURE_BLE/source/generic Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -177,14 +177,16 @@ ble_error_t GenericSecurityManager::acceptPairingRequest(connection_handle_t con
177
177
178
178
KeyDistribution initiator_distribution = cb->get_initiator_key_distribution ();
179
179
180
+ bool master_signing = initiator_distribution.get_signing ();
181
+
180
182
if (_master_sends_keys) {
181
183
initiator_distribution &= _default_key_distribution;
182
184
} else {
183
185
initiator_distribution &= KeyDistribution (KeyDistribution::KEY_DISTRIBUTION_IDENTITY | KeyDistribution::KEY_DISTRIBUTION_LINK);
184
186
}
185
187
186
188
/* signing has to be offered and enabled on the link */
187
- if (initiator_distribution. get_signing () ) {
189
+ if (master_signing ) {
188
190
initiator_distribution.set_signing (
189
191
cb->signing_override_default ? cb->signing_requested : _default_key_distribution.get_signing ()
190
192
);
You can’t perform that action at this time.
0 commit comments