Matthias Ringwald
264d2bd80e
fix build
2015-08-07 23:38:17 +02:00
Matthias Ringwald
3f6c2cdd26
sm: only request encryption information if bonding enabled
2015-08-07 23:34:01 +02:00
Matthias Ringwald
6191541dd0
sm: handle security request in master role
2015-08-07 22:39:57 +02:00
Matthias Ringwald
e8d5dc2445
sm: update existing le device db entry, fix use of ediv/rand/ltk of bonded connections
2015-08-05 15:48:53 +02:00
Matthias Ringwald
68b0e067d4
sm: use peer address in client notifications instead of master address
2015-08-05 12:11:31 +02:00
Matthias Ringwald
46452f47d3
sm: remove debug message
2015-08-04 14:40:43 +02:00
Matthias Ringwald
2de22786db
sm: implement general address resolution using linked list
2015-08-04 13:59:51 +02:00
Matthias Ringwald
d3862db066
sm: convert address resolution into state machine
2015-08-04 12:13:14 +02:00
Matthias Ringwald
2e71710150
sm: introduce address resolution events and mode
2015-08-04 11:28:53 +02:00
Matthias Ringwald
53544995a3
extract sm_address_resolution_succeeded and _failed
2015-08-03 17:43:34 +02:00
Matthias Ringwald
ce1e26281b
make address resolution/identify resolving public
2015-07-31 16:59:07 +02:00
Matthias Ringwald
3299fc1742
rename sm_address_resolution_device* into sm_address_resolution*
2015-07-31 16:25:27 +02:00
Matthias Ringwald
69d313c5b0
rename sm_central_device* into sm_address_resolution*
2015-07-31 16:19:02 +02:00
Matthias Ringwald
07a9209480
generalize sm_csrk context arguments
2015-07-31 15:59:18 +02:00
Matthias Ringwald
71b2c14530
generalize context argument for aes128 and random number generation
2015-07-31 15:55:31 +02:00
Matthias Ringwald
341d229cfc
fix list of expected keys in master role, trigger sm_run on sm_authorization_request
2015-07-30 23:28:46 +02:00
Milanka Ringwald
c4350632cc
annotate/update api, handle multiline function def
2015-07-01 17:04:51 +02:00
Matthias Ringwald
45c102fdda
add helper hci_le_advertisements_set_params function to avoid call to sm from hci, gap ddvertisement control complete
2015-06-12 19:28:46 +02:00
Matthias Ringwald
9cc64000ad
provide getter for random address mode
2015-06-11 23:12:25 +02:00
Matthias Ringwald
f243b7dfe2
fix compile error from last commit
2015-05-21 15:48:14 +02:00
Matthias Ringwald
4fdd1cade1
handle call to sm_send_security_request before hci le connection complete was handled in sm
2015-05-21 15:45:55 +02:00
Matthias Ringwald
71de195ed3
fix c99 warnings for missing argument of functions with no arguments, fix more warnings
2015-05-13 10:30:46 +02:00
Sean Wilson
6da48142ef
Fix C99 warnings.
2015-04-28 10:31:53 -04:00
Matthias Ringwald
ea35cda86d
fix sending of security request by le responder
2015-04-24 12:12:37 +02:00
Pete Blois
a2366dc9d3
Setting correct length for BTSTACK_EVENT_STATE event.
...
The second byte of the data is the length of the remaining data (in this case the HCI_STATE_WORKING byte). This was passing 0 indicating that there was no data when in fact there was.
2015-03-30 13:17:10 -07:00
matthias.ringwald@gmail.com
c1899d25d0
pass sign counter into CMAC calculation functions
2015-03-05 14:42:26 +00:00
matthias.ringwald@gmail.com
5c52231480
added sm_le_device_index for use by gatt client/server
2015-03-05 10:48:26 +00:00
matthias.ringwald@gmail.com
85cacb82ec
sm starts encryption using ltk/ediv/rand from previous bonding
2015-03-03 22:17:47 +00:00
matthias.ringwald@gmail.com
9ec080fd8e
new states for re-establishing secure connection
2015-03-03 21:38:29 +00:00
matthias.ringwald@gmail.com
b9b968bb23
rename central_device_db_index into le_device_db_index
2015-03-02 21:44:16 +00:00
matthias.ringwald@gmail.com
3a3e1c9119
renamed central_device_db* files into le_device_db*
2015-03-02 21:40:56 +00:00
matthias.ringwald@gmail.com
c5d3944d90
rename central_device_db into le_device_db
2015-03-02 21:30:12 +00:00
matthias.ringwald@gmail.com
d2d764240d
add encryption info to central db
2015-03-02 21:12:29 +00:00
matthias.ringwald@gmail.com
2e77e513be
Stop using pointer to array for bd_addr_t and link_key_t
2015-03-01 20:51:08 +00:00
matthias.ringwald@gmail.com
24b0319d94
refactored stk setup
2015-02-27 19:56:00 +00:00
matthias.ringwald@gmail.com
334856fa1b
move code to start timer on pairing request
2015-02-27 19:14:15 +00:00
matthias.ringwald@gmail.com
abace5deec
extracted sm_initiator_setup2
2015-02-27 16:53:54 +00:00
matthias.ringwald@gmail.com
bf214029e8
remove peer_csrk from setup
2015-02-27 16:06:07 +00:00
matthias.ringwald@gmail.com
6811cadec6
removed dead code
2015-02-27 16:02:56 +00:00
matthias.ringwald@gmail.com
dc438c837d
fix LTK setup using ediv and rand
2015-02-27 15:53:53 +00:00
matthias.ringwald@gmail.com
d19b56e8be
use single timer for SM, stop timer on sm_done_for_handle
2015-02-27 14:17:45 +00:00
matthias.ringwald@gmail.com
6189a1c676
Security Manager extended for multiple LE connections
2015-02-27 10:52:33 +00:00
matthias.ringwald@gmail.com
477200f2ef
use sm_active_connection as mutex for setup context struct
2015-02-26 21:32:16 +00:00
matthias.ringwald@gmail.com
a911672806
track if sm_setup is used
2015-02-26 16:11:09 +00:00
matthias.ringwald@gmail.com
362481ca52
sort sm_init_setup, fix compile
2015-02-26 15:31:52 +00:00
matthias.ringwald@gmail.com
3143670f4d
call sm_init_setup from sm_run()
2015-02-26 15:07:24 +00:00
matthias.ringwald@gmail.com
6731b28f11
extracted sm_init_setup
2015-02-26 15:02:59 +00:00
matthias.ringwald@gmail.com
fe9e7f880a
fix regression in r3160 that broke security manager
2015-02-26 14:30:51 +00:00
matthias.ringwald@gmail.com
3e58ab5fb0
finish removal of global sm_connection_t * connection.
2015-02-12 23:04:15 +00:00
matthias.ringwald@gmail.com
befc8792ad
pass in sm_connection_t to sm_central_start_lookup, reset CSRK state when done now
2015-02-12 21:36:06 +00:00