Bluetooth: Add config option to disable security checks
This adds CONFIG_BT_CONN_DISABLE_SECURITY which can be used to disable security checks for incoming requests enabling to test accessing GATT attributes and L2CAP channels that would otherwise require encryption/authentication in order to be accessed. It depends on BT_TESTING to indicate to the users that this is a testing feature which shall not be used in production. Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
This commit is contained in:
parent
38997a5719
commit
75f47a56b5
5 changed files with 36 additions and 2 deletions
|
@ -77,3 +77,11 @@ if(CONFIG_BT_USE_DEBUG_KEYS OR CONFIG_BT_STORE_DEBUG_KEYS)
|
|||
Do not use in production."
|
||||
)
|
||||
endif()
|
||||
if(CONFIG_BT_CONN_DISABLE_SECURITY)
|
||||
message(WARNING "CONFIG_BT_CONN_DISABLE_SECURITY is enabled.
|
||||
Security is disabled for incoming requests for GATT attributes and L2CAP
|
||||
channels that would otherwise require encryption/authentication in order to
|
||||
be accessed.
|
||||
Do not use in production."
|
||||
)
|
||||
endif()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue