sm.c (11d10bda60903bb0c6edf9c9d86c54333cd5dde5) | sm.c (67f708e073a3b5c01fde35c3f01722ed61d4b6a3) |
---|---|
1/* 2 * Copyright (C) 2014 BlueKitchen GmbH 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 8 * 1. Redistributions of source code must retain the above copyright --- 4625 unchanged lines hidden (view full) --- 4634void sm_register_sc_oob_data_callback( int (*get_sc_oob_data_callback)(uint8_t address_type, bd_addr_t addr, uint8_t * oob_sc_peer_confirm, uint8_t * oob_sc_peer_random)){ 4635 sm_get_sc_oob_data = get_sc_oob_data_callback; 4636} 4637 4638void sm_add_event_handler(btstack_packet_callback_registration_t * callback_handler){ 4639 btstack_linked_list_add_tail(&sm_event_handlers, (btstack_linked_item_t*) callback_handler); 4640} 4641 | 1/* 2 * Copyright (C) 2014 BlueKitchen GmbH 3 * 4 * Redistribution and use in source and binary forms, with or without 5 * modification, are permitted provided that the following conditions 6 * are met: 7 * 8 * 1. Redistributions of source code must retain the above copyright --- 4625 unchanged lines hidden (view full) --- 4634void sm_register_sc_oob_data_callback( int (*get_sc_oob_data_callback)(uint8_t address_type, bd_addr_t addr, uint8_t * oob_sc_peer_confirm, uint8_t * oob_sc_peer_random)){ 4635 sm_get_sc_oob_data = get_sc_oob_data_callback; 4636} 4637 4638void sm_add_event_handler(btstack_packet_callback_registration_t * callback_handler){ 4639 btstack_linked_list_add_tail(&sm_event_handlers, (btstack_linked_item_t*) callback_handler); 4640} 4641 |
4642void sm_remove_event_handler(btstack_packet_callback_registration_t * callback_handler){ 4643 btstack_linked_list_remove(&sm_event_handlers, (btstack_linked_item_t*) callback_handler); 4644} 4645 |
|
4642void sm_set_accepted_stk_generation_methods(uint8_t accepted_stk_generation_methods){ 4643 sm_accepted_stk_generation_methods = accepted_stk_generation_methods; 4644} 4645 4646void sm_set_encryption_key_size_range(uint8_t min_size, uint8_t max_size){ 4647 sm_min_encryption_key_size = min_size; 4648 sm_max_encryption_key_size = max_size; 4649} --- 537 unchanged lines hidden --- | 4646void sm_set_accepted_stk_generation_methods(uint8_t accepted_stk_generation_methods){ 4647 sm_accepted_stk_generation_methods = accepted_stk_generation_methods; 4648} 4649 4650void sm_set_encryption_key_size_range(uint8_t min_size, uint8_t max_size){ 4651 sm_min_encryption_key_size = min_size; 4652 sm_max_encryption_key_size = max_size; 4653} --- 537 unchanged lines hidden --- |