mirror of
https://github.com/espressif/esp-nimble.git
synced 2026-09-24 18:07:22 +00:00
NimBLE: Fix build failures due to non static declarations in RPA feature
Closes IDFGH-2891
This commit is contained in:
committed by
Abhinav Kudnar
parent
5c79268c74
commit
035365f033
@@ -129,11 +129,6 @@ void ble_hs_notifications_sched(void);
|
||||
struct ble_npl_eventq *ble_hs_evq_get(void);
|
||||
void ble_hs_stop_init(void);
|
||||
|
||||
int
|
||||
ble_sm_alg_encrypt(const uint8_t *key, const uint8_t *plaintext,
|
||||
uint8_t *enc_data);
|
||||
|
||||
|
||||
struct ble_mqueue {
|
||||
STAILQ_HEAD(, os_mbuf_pkthdr) head;
|
||||
struct ble_npl_event ev;
|
||||
|
||||
@@ -37,8 +37,10 @@ struct ble_hs_resolv_entry {
|
||||
uint8_t rl_peer_rpa[BLE_DEV_ADDR_LEN];
|
||||
};
|
||||
|
||||
#if MYNEWT_VAL(BLE_STORE_CONFIG_PERSIST)
|
||||
/* Persist peer records in NVS. XXX Need to handle this in `store` module */
|
||||
int ble_store_persist_peer_records(void);
|
||||
#endif
|
||||
|
||||
struct ble_hs_peer_sec {
|
||||
ble_addr_t peer_addr;
|
||||
|
||||
@@ -395,6 +395,8 @@ int ble_sm_slave_initiate(uint16_t conn_handle);
|
||||
int ble_sm_enc_initiate(uint16_t conn_handle, uint8_t key_size,
|
||||
const uint8_t *ltk, uint16_t ediv,
|
||||
uint64_t rand_val, int auth);
|
||||
int ble_sm_alg_encrypt(const uint8_t *key, const uint8_t *plaintext,
|
||||
uint8_t *enc_data);
|
||||
int ble_sm_init(void);
|
||||
#else
|
||||
|
||||
@@ -411,6 +413,9 @@ int ble_sm_init(void);
|
||||
|
||||
#define ble_sm_init() 0
|
||||
|
||||
#define ble_sm_alg_encrypt(key, plaintext, enc_data) \
|
||||
BLE_HS_ENOTSUP
|
||||
|
||||
#endif
|
||||
|
||||
struct ble_l2cap_chan *ble_sm_create_chan(uint16_t handle);
|
||||
|
||||
Reference in New Issue
Block a user