deepikabhavnani
a228fd0f3b
Add common define to enable all statistics
...
As part of Device Health requirement, all mbed OS statistics should be
enabled with single macro `MBED_ALL_STATS_ENABLED`
2018-05-02 14:14:07 -05:00
Vincent Coubard
0a59e00b23
Nordic BLE: Update GATT server security management
...
This patch refines permission applied to characteristic and descriptors; instead of a single level of permission , each characteristic receives a permission for the read operation, one for the write operation and another one for the update operation.
As a consequence, updates are not sent if the link does not cover the update permission requirement.
Descriptors also benefits individually from read and write permission.
2018-05-02 19:15:24 +01:00
Vincent Coubard
4f1e574eff
Cordio GattServer: Fix uses of designated initializer.
...
These are not legal in C++ code.
2018-05-02 18:14:54 +01:00
Vincent Coubard
7e043ead96
Nordic BLE: Add stub implementation of remove_peer_csrk in security manager.
2018-05-02 17:52:39 +01:00
Vincent Coubard
4e5639f5ca
BLE: Support encryption with secure connection key.
2018-05-02 17:51:48 +01:00
Vincent Coubard
a2f206f882
Merge pull request #37 from donatieng/fix_sec_db_casing
...
Fix casing in MemorySecurityDb.h
2018-05-02 17:43:30 +01:00
Donatien Garnier
ba0f18c9ab
Fix casing in MemorySecurityDb.h
2018-05-02 17:39:10 +01:00
Brendan McDonnell
33a2116042
reduce variable scope
2018-05-02 11:17:25 -04:00
Jimmy Brisson
0579c7e572
Check call to get_config in test_api tests
2018-05-02 09:55:36 -05:00
Jimmy Brisson
0f7e900417
Pass app config to get config
...
This corrects a bug which would manifest as --app-config not having
much of an affect on test builds (not the first libary bulid)
2018-05-02 09:38:44 -05:00
Brendan McDonnell
ba29bd9315
use separate variable to resolve compiler warning
2018-05-02 09:33:24 -04:00
Vincent Coubard
f79eeb0173
Cordio: Update stack and pal to support LE security mode 2 level 2.
2018-05-02 14:32:38 +01:00
Mahesh Mahadevan
87244a969b
KW41Z: Update SDK TPM driver
...
Certain instances of the TPM are missing some registers, updated
TPM driver handles this variation. This issue was discovered when
running the PWMOUT tests using the ci-test-shield
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-05-01 14:48:12 -05:00
deepikabhavnani
d43d9b134b
Moved stats test to platform folder
2018-05-01 14:03:31 -05:00
Mahesh Mahadevan
0fb2f01ce7
KL82Z: Fix clock selection for PWMOUT driver
...
This was verified using the ci-test shield
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-05-01 12:22:04 -05:00
Jimmy Brisson
111f086796
Create Mock notifier for use in tests
2018-05-01 09:10:59 -05:00
Vincent Coubard
01e3a004a6
Cordio: register server authorization callback.
2018-05-01 12:29:03 +01:00
Vincent Coubard
549a513dfb
Cordio: Enable client and server signing
2018-05-01 12:28:37 +01:00
Vincent Coubard
d0c4d7a8a3
Cordio: Forward server related events to CordioGattServer
2018-05-01 12:27:49 +01:00
Vincent Coubard
0f64b1c988
CordioGattServer: Global refactoring
...
The registration process has been breaked down into several functions that register the service attribute, characteristic declaration attributes, characteristic value attributes and characteristic descriptors.
Service registration now consider all characteristics permissions: read, write and update. Permissions are also considered when updates needs to be propagated to peers.
Handling of user authorization is also a change introduced by this refactoring.
2018-05-01 12:26:24 +01:00
Vincent Coubard
55eb7033b2
Generic Security Manager: Set csrk to stored when the peer csrk has been received.
2018-05-01 11:54:25 +01:00
Vincent Coubard
41a3442474
Generic Security Manager: Set ltk to stored when the peer ltk has been recveived.
2018-05-01 11:54:03 +01:00
Vincent Coubard
f90eacfd27
Generic Security Manager: remove peer csrk at disconnection
2018-05-01 11:53:18 +01:00
Vincent Coubard
1ac95e105b
ble - Generic Security Manager: set signing unconditionnal to role reversal.
...
A peripheral can act as a GATT client whether it is in the peripheral role or the central role therefore it doesn't make sense to enable signing only if roles will be reversed latter.
2018-05-01 11:50:59 +01:00
Vincent Coubard
9880db7543
Generic Security Manager: Improve formating
2018-05-01 11:48:22 +01:00
Vincent Coubard
2e3c7e8ab7
Generic Security Manager: Set LinkKey to false unconditionally.
...
This key distribution flags is for dual mode devices; mbed does not support BR/EDR.
2018-05-01 11:45:24 +01:00
Vincent Coubard
e39bb4b92c
BLE - GenericGattClient: Exploit ENCRYPTED_WITH_SC_AND_MITM encryption.
...
IF link is encrypted, authenticated or authenticated with lesc then signed write must be transformed into regular write commands.
2018-05-01 11:38:30 +01:00
Vincent Coubard
2da6fa3947
Cordio PAL security manager: Copy locally own CSRK
...
The stack does not copy csrk when DmSecSetLocalCsrk is invoked; it just retains a pointer to it. Therefore a copy is kept inside the pal.
2018-05-01 11:35:16 +01:00
Vincent Coubard
e4813f4fe9
Cordio PAL Security Manager: Copy locally own IRK.
...
The IRK needs to be stored somewhere as it is not copied inside the stack, the stack just keeps a reference to it.
2018-05-01 11:33:36 +01:00
Vincent Coubard
2924bb4c86
Cordio PAL ATT Client: initialize the local sign counter to 0.
2018-05-01 11:29:45 +01:00
Vincent Coubard
74bc214961
BLE - Security Manager PAL: Add a function to remove the peer csrk.
...
If the the upper layer has registered a peer csrk on the pal security manager then it must remove it once the connection is closed.
This API allows the upper layer to remove the peer csrk registered earlier.
2018-05-01 11:27:38 +01:00
Vincent Coubard
1e277bad50
BLE: Lookup for non identity addresses when a secure entry is opened.
...
A peer may not share a valid IRK and identity address during pairing (in that case the identity address received is all zeros). When this happens, the entry must be retrieved by looking at the address used by the peer during the connection.
2018-05-01 11:24:44 +01:00
Vincent Coubard
c4b78ada0e
BLE: Set default mac address to 00:00:00:00:00:00
...
Both mac addresses are invalid but the bluetooth specification prefers to use all 0 addresses to represent an invalid address.
2018-05-01 11:17:47 +01:00
Vincent Coubard
80941af0f6
BLE: Add : LESC authenticated encryption to the list of possible link encryption.
2018-05-01 11:16:41 +01:00
Keyur Hariya
ca4937d40d
Add support for open drain leds
2018-04-30 15:27:07 -05:00
Jimmy Brisson
dc006d6aa3
Remove silent from test invocation
...
apparently I forgot earlier
2018-04-30 14:44:02 -05:00
Jimmy Brisson
d422a5aadc
Use notifier api in export
2018-04-30 14:42:33 -05:00
Jimmy Brisson
c686c6cb8b
Rework cc_verbose
2018-04-30 14:09:35 -05:00
Jimmy Brisson
bfc598d041
Use kwargs for formatting
2018-04-30 13:54:48 -05:00
Jimmy Brisson
d08c819830
Merge pull request #6746 from marcuschangarm/fix-vector-relocation
...
Fix vector table relocation for NRF52
2018-04-30 13:51:22 -05:00
Amanda Butler
e7a082f0ad
Copy edit issue_template.md
...
Make minor copy edits for grammar.
2018-04-30 13:47:37 -05:00
Jimmy Brisson
f67592afc9
Correct non-verbose printing
2018-04-30 13:43:08 -05:00
Cruz Monrreal
4e66f218fd
Merge pull request #6700 from geky/mbr-add-partition-asserts
...
mbr: Added assertions for overlapping partitions
2018-04-30 11:59:44 -05:00
Cruz Monrreal
a1307d423a
Merge pull request #6590 from 0xc0170/dev_astyle_only_changed
...
AStyle addition to travis
2018-04-30 11:59:22 -05:00
Cruz Monrreal
46379d8438
Merge pull request #6741 from kivaisan/refactor_maccommand
...
Lora: Split add_mac_command() into separate methods
2018-04-30 11:58:33 -05:00
Cruz Monrreal
0196ba7ccb
Merge pull request #6747 from OpenNuvoton/nuvoton_build_no_rtos_secure
...
Support RTOS-less secure image build with Cortex-M23/M33
2018-04-30 11:52:02 -05:00
Cruz Monrreal
e1cc4559cf
Merge pull request #6748 from andrewleech/nrf52_serial_match_assert
...
nrf5x: Fix assert test on SERIAL_RESERVED_CHAR_MATCH
2018-04-30 11:50:05 -05:00
Cruz Monrreal
4ca512d755
Merge pull request #6750 from hasnainvirk/mem_corruption_fix
...
LoRaWAN: Memory corruption due to band mishandling
2018-04-30 11:43:39 -05:00
Jimmy Brisson
b6b6866d38
Extend a local version of the asm cmd list
...
I was extending an object-local one instead of a call-local one
2018-04-30 09:34:32 -05:00
Jimmy Brisson
beb6d7802a
Cleanup extraneous spaces on empty lines
2018-04-30 09:30:32 -05:00