File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
features/FEATURE_BLE/source/generic Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -782,7 +782,7 @@ bool GenericSecurityManager::crypto_toolbox_f4(
782
782
void GenericSecurityManager::set_mitm_performed (connection_handle_t connection, bool enable) {
783
783
ControlBlock_t *cb = get_control_block (connection);
784
784
if (cb) {
785
- cb->mitm_performed = true ;
785
+ cb->mitm_performed = enable ;
786
786
}
787
787
}
788
788
@@ -859,7 +859,7 @@ void GenericSecurityManager::on_pairing_request(
859
859
cb->set_initiator_key_distribution (initiator_dist);
860
860
cb->set_responder_key_distribution (responder_dist);
861
861
862
- set_mitm_performed (connection, false ) ;
862
+ cb-> mitm_performed = false ;
863
863
864
864
if (_pairing_authorisation_required) {
865
865
eventHandler->pairingRequest (connection);
@@ -905,11 +905,6 @@ void GenericSecurityManager::on_pairing_completed(connection_handle_t connection
905
905
if (cb->encryption_requested ) {
906
906
enable_encryption (connection);
907
907
}
908
-
909
- /* sc doesn't need to exchange ltk */
910
- if (cb->secure_connections_paired ) {
911
- cb->ltk_mitm_protected = cb->mitm_performed ;
912
- }
913
908
}
914
909
915
910
// set the distribution flags in the db
You can’t perform that action at this time.
0 commit comments