Commit Graph

13523 Commits (467b36eaaf47967d3b1870b413cd049a979b0b3e)

Author SHA1 Message Date
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
paul-szczepanek-arm ff690ee8d6 removed redundant settings funcstions from pal 2018-01-12 14:17:57 +00:00
paul-szczepanek-arm ccd1c92bfe params needs to be ref 2018-01-12 13:37:54 +00:00
paul-szczepanek-arm ce6f032970 pairing params added 2018-01-12 12:41:43 +00:00
paul-szczepanek-arm c202076d1e clear up type confusion, added key funcs to pal 2018-01-12 12:00:34 +00:00
paul-szczepanek-arm 7325ca90fd make clear which event handler it is, remove pairing result as that's covered by security complete 2018-01-12 11:36:03 +00:00
paul-szczepanek-arm 9a948b73da minor name and compilation fixes 2018-01-12 11:18:26 +00:00
paul-szczepanek-arm a45237dc51 split interfaces 2018-01-11 18:45:27 +00:00
paul-szczepanek-arm 6655b67dd6 legacy oob and pairing cancel 2018-01-11 18:27:45 +00:00
paul-szczepanek-arm 8a0aba398b boilerplate 2018-01-11 13:17:47 +00:00
paul-szczepanek-arm da3ecfc2e4 add keysize set and split up settings 2018-01-11 11:54:21 +00:00
paul-szczepanek-arm 827af85476 fixed call 2018-01-10 18:01:41 +00:00
paul-szczepanek-arm 1e3c1a96ec fixed deafult event handler init and reset 2018-01-10 15:12:59 +00:00
paul-szczepanek-arm 67d1148a56 added timeout changed pointers to refs 2018-01-09 16:55:12 +00:00
paul-szczepanek-arm b1f73b4a5c file rename to match class name 2018-01-08 12:12:47 +00:00
paul-szczepanek-arm 580bfdfcb2 authorisation for pairing 2018-01-08 11:40:27 +00:00
paul-szczepanek-arm 0dcb9efb3e add missing pal funcs, deprecate misnamed get link security 2018-01-08 11:28:48 +00:00
paul-szczepanek-arm a268b6b831 decided to keep auth and sec mode and ditch ssp 2018-01-08 10:44:32 +00:00
paul-szczepanek-arm 2a05581177 no auth needed, security status for att 2018-01-07 23:18:14 +00:00
paul-szczepanek-arm 9863d71f44 requesting pair, force sc option 2018-01-07 22:22:55 +00:00
paul-szczepanek-arm e1676dc1cc added MITM to user facing security manager api 2018-01-05 17:32:49 +00:00
paul-szczepanek-arm e75042e3e4 handle legacy callbacks
this way you can have both old porting code and new app code and new porting code and old app code and they both work
2018-01-04 15:08:40 +00:00
paul-szczepanek-arm 69b248ae68 generic security manager using the pal 2018-01-03 18:04:22 +00:00
paul-szczepanek-arm eee2ddf709 class interface to avoid multiplying boilerplate code for the callbacks 2018-01-03 15:03:13 +00:00
paul-szczepanek-arm 6f7da0ce1d mitm callbacks 2018-01-02 17:54:22 +00:00
paul-szczepanek-arm ed405e1849 moving cbs to evt block 2017-12-22 16:41:45 +00:00
paul-szczepanek-arm 6fd1859881 draft pal 2017-12-22 16:37:28 +00:00
Martin Kojtal 9cce4d2b06
Merge pull request #5745 from kjbracey-arm/k64f_init_order
K64F Ethernet: avoid using NULL thread during init
2017-12-22 13:26:26 +00:00
Martin Kojtal dd5bd73a88
Merge pull request #5720 from kjbracey-arm/STM32F7_DMB
Add memory barriers to STM32F7xx Ethernet
2017-12-22 11:07:46 +00:00
Martin Kojtal 1ae20c5659
Merge pull request #5748 from SeppoTakalo/FIX_PR5578
Fix PR5578
2017-12-21 14:31:01 +00:00
Seppo Takalo 6c3f307257 Fix PR5578 2017-12-21 12:22:11 +02:00
Kevin Bracey 9daf450eb3 K64F Ethernet: avoid using NULL thread during init
The K64F Ethernet driver installs an interrupt handler that sets thread
flags, and this could be called before the thread was initialised, so it
would use a NULL thread ID.

This triggers an RTX error-checking trap in debug builds, and could also
lead to other problems with received packets not being processed.

Adjusted so the RX interrupt handler does nothing if the thread isn't
initialised yet, and manually trigger a RX event flag after initialising
the thread in case any interrupts were ignored.

An alternative would have been to implement eth_arch_enable_interrupts,
but this mechanism is not present in the EMAC world - drivers will have
to start returning interrupts in their power up.

Fixes #5680
2017-12-21 11:14:08 +02:00