Commit Graph

13454 Commits (dcce428c40fb7711cbdc1d06d95397f95fde6c97)

Author SHA1 Message Date
paul-szczepanek-arm dcce428c40 conversion of passkeys, uniform calls 2018-01-16 19:39:25 +00:00
paul-szczepanek-arm c03c7fc587 Merge branch 'palsm' of https://github.com/paul-szczepanek-arm/mbed-os into palsm 2018-01-16 19:38:44 +00:00
Paul Szczepanek 71d8d902c6
Merge pull request #4 from pan-/palsm-cordio-implementation
Palsm cordio implementation: skeleton
2018-01-16 19:38:06 +00:00
paul-szczepanek-arm 53f0b6a187 keypress notification setting 2018-01-16 18:16:15 +00:00
Vincent Coubard 9bd0fa5708 BLE Cordio: Fix call to SafeEnum<>::value() 2018-01-16 18:11:38 +00:00
Vincent Coubard e4b5681563 Cordio: Add SecurityManager singleton 2018-01-16 18:09:35 +00:00
Vincent Coubard c3c24d8641 Cordio: Implementation of base functions necessary for legacy pairing. 2018-01-16 18:04:40 +00:00
Vincent Coubard 0cd4f93041 Add skeleton of the PalSecurityManager for the Cordio Stack. 2018-01-16 17:19:26 +00:00
Vincent Coubard 6aa3d35d82 Set virtual specifier to on_keys_distributed . 2018-01-16 17:18:49 +00:00
paul-szczepanek-arm 83d582827d legacy pairing support call in api 2018-01-16 14:48:08 +00:00
paul-szczepanek-arm e02ae313ac added on_ prefixes, added split key distribution 2018-01-16 12:46:59 +00:00
paul-szczepanek-arm f9ed3b2456 passkey types fixed 2018-01-16 12:43:25 +00:00
Paul Szczepanek cc41857ab6
Merge pull request #3 from pan-/palsm-interface-improvement
Palsm interface improvement
2018-01-16 12:38:27 +00:00
paul-szczepanek-arm f93ed1087d split keys dsitribution, unirm on_ prefix, docs 2018-01-16 12:22:12 +00:00
Vincent Coubard f71490b59b Merge with palsm. 2018-01-16 12:19:41 +00:00
Vincent Coubard 75c7460575 Remove setPinCode function (not needed) and oob related functions. 2018-01-16 12:13:14 +00:00
Vincent Coubard 323bae44e1 Fixe compilation errors 2018-01-16 12:12:30 +00:00
Vincent Coubard 4df41f3ee8 Add mention of function that sets a default passkey. 2018-01-16 12:11:04 +00:00
paul-szczepanek-arm f33d93345b random data request 2018-01-16 11:50:49 +00:00
Vincent Coubard 9d08b2ddb3 Fixes:
* replace invalid using statement by typedef
* replace SecurityIOCapabilities_t by io_capability_t in send_pairing_response
* fix failure type in cancel_pairing
2018-01-16 11:29:38 +00:00
paul-szczepanek-arm 8e89dfbbfd redundant types removed 2018-01-16 11:23:36 +00:00
Vincent Coubard aede2a5680 Move ::SecurityManagerEventHandler and ::LegacySecurityManagerEventHandler into ::SecurityManager .
Fixes access right and compilation error.
2018-01-16 11:23:33 +00:00
paul-szczepanek-arm 4d3a4c530d removed bredr oob 2018-01-16 11:21:45 +00:00
paul-szczepanek-arm daab0b4fe1 fix error type name and unified connection handle name 2018-01-16 11:15:39 +00:00
paul-szczepanek-arm 52669fff98 match accept pairing with request pairing 2018-01-16 11:10:03 +00:00
Paul Szczepanek ab0451e929
Merge pull request #2 from pan-/palsm-interface-improvement
REfactoring
2018-01-16 10:50:08 +00:00
Vincent Coubard d11fff4dcd
Merge branch 'palsm' into palsm-interface-improvement 2018-01-16 10:24:44 +00:00
Vincent Coubard d3ca4a9cb3
Merge branch 'palsm' into palsm-interface-improvement 2018-01-16 10:23:45 +00:00
paul-szczepanek-arm b95943b28e added more missing implementations for generic
removed virtual keyword since this is implementation
2018-01-15 22:32:57 +00:00
paul-szczepanek-arm 4dd5e7d124 match generic sm order with the rest, added missing set secure funcs 2018-01-15 22:17:05 +00:00
paul-szczepanek-arm a5d98d9c66 rearrange security manager so it matches pal, insert missing paring funcs 2018-01-15 22:05:44 +00:00
paul-szczepanek-arm 585f60d1fc missing irk added, authorisation for pairing optional, minor cleanup of names 2018-01-15 21:46:02 +00:00
paul-szczepanek-arm c86d13a7cc removed redundant param from pair req 2018-01-15 21:44:54 +00:00
paul-szczepanek-arm b818b87965 remove redundant pal api calls 2018-01-15 20:22:13 +00:00
Vincent Coubard e78840427a Add few new types.
Remove c192, r192, c256 and r256 references.
Refactor function names
2018-01-15 19:42:32 +00:00
paul-szczepanek-arm 92a83cf526 generic security manager implements the pal handler, added first db entry handler 2018-01-15 19:02:53 +00:00
paul-szczepanek-arm f308702b1d split security entry 2018-01-15 18:14:39 +00:00
Paul Szczepanek ab754728dc
Merge pull request #1 from pan-/palsm-interface-improvement
SM interface improvements
2018-01-15 17:34:18 +00:00
Vincent Coubard 03f07bb7ce Refactor resolving list management.
Use address type from gap rather than BLEProtocol::AddressBytes_t .
2018-01-15 15:05:50 +00:00
Vincent Coubard 81904fd867 Remove bonded list storage from the adaptation layer.
Such processing should be handled at the upper layer.

Initiating encryption of a given connection should be made with the start
encryption command. This command accepts the parameters Rand, EDIV and
LTK.

A request of encryption request generate an LTK request event that is
forwarded to the upper layer which then reply with the LTK presents in the
Security DB or reject the request.
2018-01-15 14:36:32 +00:00
Vincent Coubard be664d1c33 Remove whitelist management: already present in the gap addaptation layer. 2018-01-15 14:32:12 +00:00
Vincent Coubard 1ee56f6b83 Convert SecurityManagerEventHandler into a pure interface.
Convert most functions of SecurityManager into virtual pure functions.
Protect access to the get_event_handler function and remove function set_app_event_handler.
2018-01-15 14:25:27 +00:00
paul-szczepanek-arm 2f49b66c52 callbacks allow updates 2018-01-15 11:45:52 +00:00
paul-szczepanek-arm 145fcc5791 security db iface draft 2018-01-15 08:31:33 +00:00
paul-szczepanek-arm bbe408e82b naming fix 2018-01-12 15:55:26 +00:00
paul-szczepanek-arm 5474083469 use direct params not struct for pairing 2018-01-12 15:51:24 +00:00
paul-szczepanek-arm af4bdc7562 typo 2018-01-12 15:40:15 +00:00
paul-szczepanek-arm 8a01d8fcb0 encryption funcs 2018-01-12 15:32:11 +00:00
paul-szczepanek-arm b81a2b9fdb corrected list funcs 2018-01-12 14:55:13 +00:00
paul-szczepanek-arm 749e39b175 missing error messages for paring 2018-01-12 14:50:09 +00:00