-
Notifications
You must be signed in to change notification settings - Fork 3k
BLE: call secure connections versions of ltk functions #7688
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
/morph build |
2062a4b
to
fbb926d
Compare
/morph build |
Build : FAILUREBuild number : 2733 |
seems to fail to the ci-morph-build on the NRF52840_DK. Since the changes seem to affect this board I'm assuming this is not coincidental. |
that sdk doesn't support that feature so replaced it with an uglier but more compatible check, should be good to go |
/morph build |
Build : SUCCESSBuild number : 2737 Triggering tests/morph test |
@@ -948,34 +956,44 @@ bool nRF5xSecurityManager::sm_handler(const ble_evt_t *evt) | |||
peer_dist = pairing_cb->initiator_dist; | |||
} | |||
|
|||
if (own_dist.get_encryption()) { | |||
handler->on_keys_distributed_local_ltk( | |||
uint8_t invalid_rand[BLE_GAP_SEC_RAND_LEN] = { 0 }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you factorize the test in a function ? It is used to handle BLE_GAP_EVT_SEC_INFO_REQUEST
too.
Note that if it is in a function a for loop can be used to minimize stack allocation.
Exporter Build : SUCCESSBuild number : 2371 |
Test : SUCCESSBuild number : 2464 |
/morph build |
/morph build |
Build : SUCCESSBuild number : 2765 Triggering tests/morph test |
Exporter Build : SUCCESSBuild number : 2394 |
Test : SUCCESSBuild number : 2491 |
BLE: call secure connections versions of ltk functions
Description
NRF implementation of the security manager called legacy pairing functions for storing the ltk instead of the secure connections versions which need to be called for correct flags to be set.
Pull request type