258 Commits

Author SHA1 Message Date
Matthias Ringwald
c1ab6cc1be MISRAC2012-Rule-12.1: add suggested parentheses 2019-11-19 14:31:48 +01:00
Matthias Ringwald
c61cfe5aa7 sm: inline dm helper to help c-stat 2019-11-15 17:12:30 +01:00
Matthias Ringwald
9ad0dd7c75 sm: inline dm helper to help c-stat 2019-11-15 17:06:00 +01:00
Matthias Ringwald
968b2eaf63 MISRAC2012-Rule-20.7: use parentheses around macro parameters [a2383] 2019-11-15 14:36:44 +01:00
Matthias Ringwald
0467876438 sm: improve tracking of sm_aes128_state 2019-10-10 12:52:36 +02:00
Matthias Ringwald
1bf086dae6 sm: restart random address updates after power cycle 2019-08-27 08:49:37 +02:00
Matthias Ringwald
b90c4e75aa sm: generate local nonce for confirm value in JW+NC+PK in sc responder role 2019-08-22 19:31:42 +02:00
Matthias Ringwald
6ca80073ab sm: sort sm_handle_random_result_sc_* functions 2019-08-22 17:35:52 +02:00
Matthias Ringwald
0d58c2cef9 sm: remove unused states 2019-08-22 16:26:21 +02:00
Matthias Ringwald
e061bbd447 sm: start encryption upon receiving slave securiy request if bonded 2019-07-08 22:24:58 +02:00
Matthias Ringwald
8b3ffec5c9 sm: fixed regression introduced in f3582630 2019-07-08 22:11:25 +02:00
Matthias Ringwald
f3582630aa sm: avoid potential use-after-free on immediate disconnect (lookup connection via con handle instead of storing pointer) 2019-05-17 20:42:35 +02:00
Matthias Ringwald
e501bae083 Use BTSTACK_FILE__ without __ prefix (MISRAC2012-Rule-21.1) 2019-05-11 19:31:55 +02:00
Matthias Ringwald
9790be5f20 fix build without ENABLE_LE_SIGNED_WRITE 2019-05-01 23:24:24 +02:00
Matthias Ringwald
715a43d1c0 sm: fix store local CSRK 2019-05-01 23:17:39 +02:00
Matthias Ringwald
e1086030d9 sm: set IR lookup state to 'succceeded' on pairing complete 2019-05-01 20:11:26 +02:00
Matthias Ringwald
51bd74d1a8 sm: init le_device_db from sm_init 2019-05-01 18:08:22 +02:00
Matthias Ringwald
ba394633cf sm: add sm_identity_resolving_state 2019-04-30 18:56:56 +02:00
Matthias Ringwald
6d80b49579 test/avrcp: fix compilation 2019-03-30 22:13:17 +01:00
Matthias Ringwald
489a58de68 fix compilation 2019-03-30 21:30:47 +01:00
Matthias Ringwald
28cb1f14b8 sm: use provided authentication requirements in slave security request 2019-03-06 16:14:27 +01:00
Matthias Ringwald
3224a7f690 sm: track sc flag 2019-03-06 15:10:20 +01:00
Matthias Ringwald
3dc3a67de7 le_device_db: add secure connection field 2019-03-06 12:58:53 +01:00
Matthias Ringwald
a9987c8e28 sm: fix identity resolving - regression introduced in adf5eaa9 2019-03-06 12:58:09 +01:00
Matthias Ringwald
7f3f442d49 sm: avoid SM_EVENT_PAIRING_COMPLETE with ERROR_CODE_REMOTE_USER_TERMINATED_CONNECTION after successful pairing in responder role 2019-02-19 11:48:18 +01:00
Matthias Ringwald
adf5eaa96b sm: fix check for unused entries when looking up devices in le_device_db 2019-02-07 08:08:16 +01:00
Matthias Ringwald
8d9b6072af sm: triger DHK/IRK calculation after ER/IR is set 2019-01-26 22:49:50 +01:00
Matthias Ringwald
21045273fa sm: fix warnings 2018-12-04 10:25:00 +01:00
Matthias Ringwald
899e6e028a sm: generate and store ER / IR keys in TLV, unless manually set by application 2018-12-04 10:20:20 +01:00
Matthias Ringwald
5b4dd59758 sm: fix internal buffer overrun during random address generation 2018-12-03 20:26:40 +01:00
Matthias Ringwald
103fa6b079 sm: reduce logic to trigger IRK generation 2018-12-03 20:26:36 +01:00
Matthias Ringwald
fbd4e238e2 sm: trigger random generation for private address in sm_run() 2018-12-03 20:25:54 +01:00
Matthias Ringwald
c245ca32b5 sm: ENABLE_LE_CENTRAL_AUTO_ENCRYPTION triggers automatic encryption on connect to bonded devices 2018-11-27 11:25:13 +01:00
Matthias Ringwald
aacfafc3ac sm: ignore Slave Security Request after sending own Pairing Request 2018-11-26 20:19:47 +01:00
Matthias Ringwald
47ba4de1ce sm: GAP_RANDOM_ADDRESS_TYPE_STATIC does not need periodic updates 2018-11-20 15:05:23 +01:00
Milanka Ringwald
1b93b0cf97 cleanup: remove unused std libs 2018-11-13 09:39:07 +01:00
Matthias Ringwald
f43b5c9071 sm: fix internal buffer overrun that can cause storing of bonding information to fail 2018-11-08 09:25:40 +01:00
Matthias Ringwald
4395a00033 fix warnings: missing cast, unreachable code 2018-10-05 10:53:00 +02:00
Matthias Ringwald
fccb5f315e sm: fix event format of SM_EVENT_IDENTITY_CREATED, fix SM_EVENT_IDENTITY_CREATED and SM_EVENT_IDENTITY_RESOLVING_SUCCEEDED 2018-08-24 15:51:05 +02:00
Matthias Ringwald
f55bd52945 sm: drop LTK flag from Pairing Response for Secure Connections 2018-08-21 17:59:19 +02:00
Matthias Ringwald
44263cccde sm: fix pairing for Secure Connections with Bonding if remote sends additional keys 2018-08-21 17:26:47 +02:00
Matthias Ringwald
349d0adb5f sm: use SM_REASON_DHKEY_CHECK_FAILED if received public key is invalid, simulate invalid public key for testing 2018-07-24 14:46:14 +02:00
Matthias Ringwald
c085d9ff20 sm: generate new EC Public Keypair after each pairing 2018-07-13 13:54:28 +02:00
Matthias Ringwald
34b6528f7c sm: wait for ec key before pairing 2018-07-13 13:48:43 +02:00
Matthias Ringwald
674e5b4ae9 sm: extract sm_ec_generate_new_key 2018-07-13 11:40:46 +02:00
Matthias Ringwald
34c39fbd75 sm: only start encryption using stored bonding info as central after address resolution success 2018-05-18 11:14:27 +02:00
Matthias Ringwald
03a9359afe sm: encryption change event concludes re-encryption for bonded devices (even if it fails) 2018-05-17 16:13:25 +02:00
Matthias Ringwald
c7e2c1a542 sm: improve le_device_db lookup and storing of IRK 2018-05-15 09:25:02 +02:00
Matthias Ringwald
dcd6c9b595 gap: add gap_reconnect_security_setup_active indicating security setup as central 2018-05-14 17:08:16 +02:00
Matthias Ringwald
d4af1595c7 sm: start encryption as central if bonded 2018-05-14 17:08:10 +02:00