1 /* 2 * Copyright (c) 2022 Nordic Semiconductor ASA 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 */ 6 7 #include <zephyr/bluetooth/addr.h> 8 9 /* BT (ID, Address) pair */ 10 struct id_addr_pair { 11 uint8_t id; /* ID */ 12 bt_addr_le_t *addr; /* Pointer to the address */ 13 }; 14 15 /* BT Key (ID, Address, type) info */ 16 struct id_addr_type { 17 uint8_t id; /* ID */ 18 bt_addr_le_t *addr; /* Pointer to the address */ 19 int type; /* Key type */ 20 }; 21 22 /* keys.c declarations */ 23 struct bt_keys *bt_keys_get_key_pool(void); 24 #if defined(CONFIG_BT_KEYS_OVERWRITE_OLDEST) 25 uint32_t bt_keys_get_aging_counter_val(void); 26 struct bt_keys *bt_keys_get_last_keys_updated(void); 27 #endif 28 29 /* keys_help_utils.c declarations */ 30 void clear_key_pool(void); 31 int fill_key_pool_by_id_addr(const struct id_addr_pair src[], int size, struct bt_keys *refs[]); 32 int fill_key_pool_by_id_addr_type(const struct id_addr_type src[], int size, 33 struct bt_keys *refs[]); 34 bool check_key_pool_is_empty(void); 35