mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-30 10:47:19 +02:00
feat(nimble): Added option in menuconfig to enable Secure Connections Only mode
This commit is contained in:
@ -230,6 +230,13 @@ config BT_NIMBLE_SM_SC_LVL
|
|||||||
3. Authenticated pairing with encryption
|
3. Authenticated pairing with encryption
|
||||||
4. Authenticated LE Secure Connections pairing with encryption using a 128-bit strength encryption key.
|
4. Authenticated LE Secure Connections pairing with encryption using a 128-bit strength encryption key.
|
||||||
|
|
||||||
|
config BT_NIMBLE_SM_SC_ONLY
|
||||||
|
int "Enable Secure Connections Only Mode"
|
||||||
|
depends on BT_NIMBLE_SECURITY_ENABLE
|
||||||
|
default 0
|
||||||
|
help
|
||||||
|
Enable Secure Connections Only Mode
|
||||||
|
|
||||||
config BT_NIMBLE_DEBUG
|
config BT_NIMBLE_DEBUG
|
||||||
bool "Enable extra runtime asserts and host debugging"
|
bool "Enable extra runtime asserts and host debugging"
|
||||||
default n
|
default n
|
||||||
|
@ -957,8 +957,12 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef MYNEWT_VAL_BLE_SM_SC_ONLY
|
#ifndef MYNEWT_VAL_BLE_SM_SC_ONLY
|
||||||
|
#ifdef CONFIG_BT_NIMBLE_SM_SC_ONLY
|
||||||
|
#define MYNEWT_VAL_BLE_SM_SC_ONLY CONFIG_BT_NIMBLE_SM_SC_ONLY
|
||||||
|
#else
|
||||||
#define MYNEWT_VAL_BLE_SM_SC_ONLY (0)
|
#define MYNEWT_VAL_BLE_SM_SC_ONLY (0)
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#ifndef MYNEWT_VAL_BLE_SM_THEIR_KEY_DIST
|
#ifndef MYNEWT_VAL_BLE_SM_THEIR_KEY_DIST
|
||||||
|
Reference in New Issue
Block a user