client: Add agent auto argument support
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Wed, 23 Aug 2023 20:31:07 +0000 (13:31 -0700)
committerAyush Garg <ayush.garg@samsung.com>
Fri, 5 Jan 2024 13:34:03 +0000 (19:04 +0530)
commitdd939b47df493794af58a82617296f5d30f737f3
tree0f81005a9e31b2e68e9bc480c7eba1caf27fc4f8
parent6012c21271706cc6be7aed9f4b0f26cd6b169852
client: Add agent auto argument support

This adds "auto" capability which behaves like "on" but instead of
asking user to confirm/autorize it automatically accepts, which is
not secure to be used thus a warning is printed when user selects it.

Usage:

  [bluetoothctl]# agent auto
  Warning: setting auto response is not secure, it bypass user
  confirmation/authorization, it shall only be used for test automation.

  or

  client/bluetoothctl -a auto
client/agent.c
client/main.c