mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-26 03:35:20 +00:00
sm: add SM_STK_GENERATION_METHOD_NUMERIC_COMPARISON
This commit is contained in:
parent
52f9cf635b
commit
b434342875
@ -2537,7 +2537,7 @@ static int sm_validate_stk_generation_method(void){
|
||||
case OOB:
|
||||
return (sm_accepted_stk_generation_methods & SM_STK_GENERATION_METHOD_OOB) != 0;
|
||||
case NK_BOTH_INPUT:
|
||||
// TODO check sm_accepted_stk_generation_methods
|
||||
return (sm_accepted_stk_generation_methods & SM_STK_GENERATION_METHOD_NUMERIC_COMPARISON) != 0;
|
||||
return 1;
|
||||
default:
|
||||
return 0;
|
||||
@ -2885,7 +2885,9 @@ void sm_init(void){
|
||||
// defaults
|
||||
sm_accepted_stk_generation_methods = SM_STK_GENERATION_METHOD_JUST_WORKS
|
||||
| SM_STK_GENERATION_METHOD_OOB
|
||||
| SM_STK_GENERATION_METHOD_PASSKEY;
|
||||
| SM_STK_GENERATION_METHOD_PASSKEY
|
||||
| SM_STK_GENERATION_METHOD_NUMERIC_COMPARISON;
|
||||
|
||||
sm_max_encryption_key_size = 16;
|
||||
sm_min_encryption_key_size = 7;
|
||||
|
||||
|
@ -986,9 +986,10 @@ typedef enum {
|
||||
#define SM_KEYDIST_FLAG_SIGNING_IDENTIFICATION 0x10
|
||||
|
||||
// STK Generation Methods
|
||||
#define SM_STK_GENERATION_METHOD_JUST_WORKS 0x01
|
||||
#define SM_STK_GENERATION_METHOD_OOB 0x02
|
||||
#define SM_STK_GENERATION_METHOD_PASSKEY 0x04
|
||||
#define SM_STK_GENERATION_METHOD_JUST_WORKS 0x01
|
||||
#define SM_STK_GENERATION_METHOD_OOB 0x02
|
||||
#define SM_STK_GENERATION_METHOD_PASSKEY 0x04
|
||||
#define SM_STK_GENERATION_METHOD_NUMERIC_COMPARISON 0x08
|
||||
|
||||
// Pairing Failed Reasons
|
||||
#define SM_REASON_RESERVED 0x00
|
||||
|
Loading…
x
Reference in New Issue
Block a user