mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-27 06:35:20 +00:00
fix set of keys to distribute
This commit is contained in:
parent
8c2a45628d
commit
78390e1e97
@ -846,12 +846,14 @@ static void sm_distribute_keys(){
|
||||
// TODO: handle initiator case here
|
||||
|
||||
// distribute keys as requested by initiator
|
||||
if (sm_key_distribution_set & SM_KEYDIST_ENC_KEY)
|
||||
if (sm_key_distribution_set & SM_KEYDIST_ENC_KEY){
|
||||
sm_send_encryption_information = 1;
|
||||
sm_send_master_identification = 1;
|
||||
if (sm_key_distribution_set & SM_KEYDIST_ID_KEY)
|
||||
sm_send_master_identification = 1;
|
||||
}
|
||||
if (sm_key_distribution_set & SM_KEYDIST_ID_KEY){
|
||||
sm_send_identity_information = 1;
|
||||
sm_send_identity_address_information = 1;
|
||||
sm_send_identity_address_information = 1;
|
||||
}
|
||||
if (sm_key_distribution_set & SM_KEYDIST_SIGN)
|
||||
sm_send_signing_identification = 1;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user