Gilles Boccon-Gibod
640b9cd53a
refactor pyiodide support and add examples
2023-08-15 13:36:58 -07:00
Josh Wu
6399c5fb04
Auto add device to resolving list after pairing
2023-08-03 20:51:00 +08:00
Josh Wu
cbbada4748
SMP: Delegate distributed address type
2023-08-01 08:38:03 -07:00
Josh Wu
dbf878dc3f
SMP: Remove PairingMethod.__str__
2023-07-27 08:00:36 -07:00
Josh Wu
f6c0bd88d7
SMP: Do not send phase 2 commands in CTKD
2023-07-27 08:00:36 -07:00
Josh Wu
8440b7fbf1
SMP: Refactor pairing method as enum
2023-07-27 08:00:36 -07:00
Lucas Abel
a84df469cd
pairing: handle user errors from all delegate calls
2023-07-12 11:03:21 -07:00
Gilles Boccon-Gibod
6826f68478
fix linter warnings
2023-05-05 16:16:55 -07:00
Gilles Boccon-Gibod
3de35193bc
rebase
2023-05-05 16:09:01 -07:00
uael
5d4f811a65
smp: add simple Session proxy
...
This allow modifying the SMP behavior at runtime for testing purpose.
2023-05-04 04:33:50 +00:00
uael
3c81b248a3
smp: add type hints
2023-05-04 04:33:50 +00:00
Gilles Boccon-Gibod
3442358dea
refactor PairingDelegate
2023-04-18 15:04:53 -07:00
Gilles Boccon-Gibod
bf3e05ef91
Merge pull request #174 from google/gbg/pairing-fix
...
fix role state for classic connections
2023-04-11 20:32:29 -07:00
Gilles Boccon-Gibod
859aea5a99
fix role state for classic connections
2023-04-07 10:24:26 -07:00
Josh Wu
85496aaff5
SMP: Determine initiator by direction instead of role
...
Though in the spec this is not allowed, but in some ambiguous cases such
as SMP over BR/EDR or we want to test how remote devices handle invalid
pairing requests, we still need to allow this behavior, with some logs
to let users know it's invalid.
2023-04-08 00:02:48 +08:00
Lucas Abel
044597de66
Merge pull request #161 from google/uael/smp-get-number-type-hint
...
smp: fix `PairingDelegate.get_number` return type
2023-03-28 11:48:09 -07:00
Hui Peng
423a5a95d8
add get_string API in PairingDelegate
2023-03-27 17:02:12 -07:00
Lucas Abel
8e881fdb18
smp: fix PairingDelegate.get_number return type
...
This function can return `None` to indicate a negative reply,
update the type hint accordingly.
2023-03-27 22:51:23 +00:00
uael
d21da78aa3
overall: host a minimal copy of ainsicolors
2023-02-23 20:53:06 +00:00
Gilles Boccon-Gibod
fbc7cf02a3
Merge pull request #129 from google/gbg/smp-improvements
...
improve smp compatibility with other OS flows
2023-02-14 19:10:51 -08:00
Gilles Boccon-Gibod
2d44de611f
make pylint happy
2023-02-14 16:04:20 -08:00
uael
6645ad47ee
smp: add a small type hint
2023-02-14 21:04:39 +00:00
Gilles Boccon-Gibod
e6fc63b2d8
improve smp compatibility with other OS flows
2023-02-13 10:53:00 -08:00
uael
b731f6f556
overall: add types hints to the small subset used by avatar
2023-02-02 19:37:55 +00:00
Gilles Boccon-Gibod
99758e4b7d
add basic support for mypy type checking
2023-01-20 00:20:50 -08:00
Gilles Boccon-Gibod
c2959dadb4
formatting and linting automation
...
Squashed commits:
[cd479ba] formatting and linting automation
[7fbfabb] formatting and linting automation
[c4f9505] fix after rebase
[f506ad4] rename job
[441d517] update doc (+7 squashed commits)
[2e1b416] fix invoke and github action
[6ae5bb4] doc for git blame
[44b5461] add GitHub action
[b07474f] add docs
[4cd9a6f] more linter fixes
[db71901] wip
[540dc88] wip
2022-12-15 23:07:17 -08:00
Abel Lucas
287df94090
host: spawn each asynchronous task with the right aliveness
2022-12-15 17:02:21 +00:00
Gilles Boccon-Gibod
135df0dcc0
format with Black
2022-12-10 09:40:12 -08:00
Lucas Abel
0d70cbde64
Merge pull request #75 from google/uael/fixes
...
Pairing: device/host fixes & improvements
2022-11-28 21:42:43 -08:00
Abel Lucas
02a474c44e
smp: emit enough information on pairing complete to deduce security level
2022-11-29 00:28:38 +00:00
Alan Rosenthal
a3e4674819
Fix test failures
...
a. `DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead`
Updated call in `bumble/smp.py`
b. `ModuleNotFoundError: No module named 'bumble.apps'`
Updated imports in `tests/import_test.py`
c. Added `pytest-html` for easier viewing of test results
Added package in `setup.cfg`, and hook in `tasks.py`
d. Updated workflows to use `invoke test`
This is a partial fix of #81
2022-11-23 11:31:27 -05:00
Abel Lucas
eb46f60c87
le: save own_address_type on ACL connection for SMP to be able to use the right self address
2022-11-10 02:06:37 +00:00
Abel Lucas
8bbba7c84c
pairing: always ask user for confirmation, even in JUST_WORKS method
2022-11-10 01:58:02 +00:00
Gilles Boccon-Gibod
624e860762
support empty distributions in both directions
2022-08-30 18:50:48 -07:00
Gilles Boccon-Gibod
159cbf7774
support pairing with no key distribution
2022-08-30 18:28:24 -07:00
Josh Wu
99cba19d7c
Support CTKD over BR/EDR
...
Self test is not available Bumble BR/EDR local transport is not
implemented yet.
Test: Internal test - CTKD over BR/EDR
2022-08-30 11:19:22 +08:00
Gilles Boccon-Gibod
472702a9d9
Merge pull request #12 from google/gbg/more-hci-types
...
more hci types
2022-07-26 18:00:21 -07:00
Josh Wu
2f949a1182
Delegate SMP key distribution
...
* Delegate SMP key distribution
* Align LE pairing key expectation
* Parametrize SMP self test, and add key distribution coverage
2022-07-21 01:19:36 +08:00
Josh Wu
4e2fae5145
Implement CTKD over LE
2022-07-21 01:19:25 +08:00
Gilles Boccon-Gibod
ebd0a0c8ca
more complete set of HCI types and constants
2022-07-19 19:53:18 -07:00
Gilles Boccon-Gibod
b4e2f21d2a
add classic pairing io delegation
2022-06-11 01:33:51 -07:00
Gilles Boccon-Gibod
6ac91f7dec
initial import
2022-05-16 19:42:31 -07:00