Bluetooth: Add error return to authentication APIs
The authentication APIs may fail, so it's fair to give the application a chance to catch these errors. Change-Id: I323df86b94a823b201fe22d412e6bbcaa9029550 Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
parent
8bf880a388
commit
0df7a2fac6
3 changed files with 39 additions and 23 deletions
|
@ -56,14 +56,17 @@ int bt_auth_cb_register(const struct bt_auth_cb *cb)
|
|||
return -ENOSYS;
|
||||
}
|
||||
|
||||
void bt_auth_passkey_entry(struct bt_conn *conn, unsigned int passkey)
|
||||
int bt_auth_passkey_entry(struct bt_conn *conn, unsigned int passkey)
|
||||
{
|
||||
return -ENOSYS;
|
||||
}
|
||||
|
||||
void bt_auth_cancel(struct bt_conn *conn)
|
||||
int bt_auth_cancel(struct bt_conn *conn)
|
||||
{
|
||||
return -ENOSYS;
|
||||
}
|
||||
|
||||
void bt_auth_passkey_confirm(struct bt_conn *conn, bool match)
|
||||
int bt_auth_passkey_confirm(struct bt_conn *conn, bool match)
|
||||
{
|
||||
return -ENOSYS;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue