sm: generate new EC Public Keypair after each pairing

This commit is contained in:
Matthias Ringwald 2018-07-13 13:54:28 +02:00
parent 34b6528f7c
commit c085d9ff20
2 changed files with 15 additions and 3 deletions

View File

@ -6,15 +6,20 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
## [Unreleased]
## Fixed
### Changed
- SM: Generate new EC Public Keypair after each pairing
## Changes June 2018
### Fixed
- HFP: Fix Wide Band Speech bit in SDP record for both HF/AG. Missing bit prevents macOS from using mSBC
- ATT Server: send ATT_EVENT_HANDLE_VALUE_INDICATION_COMPLETE with status ATT_HANDLE_VALUE_INDICATION_DISCONNECT on disconnect
- AVRCP Controller: fix parsing of now playing info
## Changed
### Changed
- ATT Server: ATT_HANDLE_VALUE_INDICATION_DISCONNECT is delivered to service handler if registered
## Added
### Added
- ATT Server: packet handler field added to att_service_handler_t to receive: connect/disconnect, atu exchange, indication complete
## Changes May 2018

View File

@ -972,6 +972,13 @@ static void sm_done_for_handle(hci_con_handle_t con_handle){
sm_timeout_stop();
sm_active_connection_handle = HCI_CON_HANDLE_INVALID;
log_info("sm: connection 0x%x released setup context", con_handle);
#ifdef ENABLE_LE_SECURE_CONNECTIONS
// generate new ec key after each pairing (that used it)
if (setup->sm_use_secure_connections){
sm_ec_generate_new_key();
}
#endif
}
}