283 Commits

Author SHA1 Message Date
Matthias Ringwald
f747e0fc9d mesh: pass netkey_index to mesh_application_key_set 2019-07-20 08:50:27 +02:00
Matthias Ringwald
8d3c795711 mesh: appkey management - add/delete key to/from linked list 2019-07-20 08:50:27 +02:00
Matthias Ringwald
fe49119220 mesh: use mesh_transport_key in config_appkey_add 2019-07-20 08:50:27 +02:00
Matthias Ringwald
04c527dc21 mesh: add netkey_index to mesh_transport_key_t 2019-07-20 08:50:27 +02:00
Matthias Ringwald
042ce6c5b9 mesh: add mesh_transport_key_calc_aid 2019-07-20 08:50:27 +02:00
Matthias Ringwald
fa5e639f2c mesh: index -> appkey_index in mesh_transport_key_t 2019-07-20 08:50:27 +02:00
Matthias Ringwald
019580686c mesh: replace individual getters with getter for provisioning network key 2019-07-20 08:50:27 +02:00
Matthias Ringwald
fd35fd379e mesh: simulate resource limit for netkey list 2019-07-20 08:50:27 +02:00
Matthias Ringwald
350ee7e2ea mesh: store NetKey and IdentityKey in provisioning data 2019-07-20 08:50:27 +02:00
Matthias Ringwald
300c31f618 mesh: store NetKey in provisioning data 2019-07-20 08:50:27 +02:00
Matthias Ringwald
59988a1a07 mesh: avoid deleting last netkey, read keys as big-endian in access messages 2019-07-20 08:50:27 +02:00
Matthias Ringwald
a6f6e623b5 mesh: provide mesh_network_key_list_count 2019-07-20 08:50:27 +02:00
Matthias Ringwald
04ca154102 mesh: handle config_netkey_delete 2019-07-20 08:50:27 +02:00
Matthias Ringwald
758a854c99 mesh: handle config_netkey_update 2019-07-20 08:50:27 +02:00
Matthias Ringwald
dad44b83b9 mesh: allow to modify network keys 2019-07-20 08:50:27 +02:00
Matthias Ringwald
9dd1a2b9b3 mesh: handle config_netkey_add and config_netkey_get 2019-07-20 08:50:27 +02:00
Matthias Ringwald
a4f63a5f4d mesh: add general mesh_network_key_iterator 2019-07-20 08:50:27 +02:00
Matthias Ringwald
1f32e0a720 mesh: rename mesh_network_key_iterator into mesh_network_key_nid_iterator 2019-07-20 08:50:27 +02:00
Matthias Ringwald
13894af284 mesh: use mesh_network_key_derive in provisioning_device 2019-07-20 08:50:27 +02:00
Matthias Ringwald
190358c6cc mesh: add mesh_network_key_derive to mesh_crypto.h 2019-07-20 08:50:27 +02:00
Matthias Ringwald
4a0ab6ffc5 mesh: implement netkey list management 2019-07-20 08:50:27 +02:00
Matthias Ringwald
1c4e808439 mesh: extract network key managment from mesh_network into mesh_keys 2019-07-20 08:50:27 +02:00
Matthias Ringwald
8e94013fd8 mesh: defer call to mesh_access_message_processed after crypto operations 2019-07-20 08:50:27 +02:00
Matthias Ringwald
0c1ab6c301 mesh: explicitly call mesh_access_message_processed after message processed 2019-07-20 08:50:27 +02:00
Matthias Ringwald
bbc7a0af3e mesh: single mesh_upper_transport_setup_access_pdu_header instead of segmented/unsegmented 2019-07-20 08:50:27 +02:00
Matthias Ringwald
109de5eff3 mesh: single mesh_upper_transport_setup_access_pdu instead of segmented/unsegmented 2019-07-20 08:50:27 +02:00
Matthias Ringwald
d984d09471 mesh: single mesh_upper_transport_send_access_pdu instead of segmented/unsegmented 2019-07-20 08:50:27 +02:00
Matthias Ringwald
dd5179955b mesh: single mesh_upper_transport_setup_control_pdu instead of segmented/unsegmented 2019-07-20 08:50:27 +02:00
Matthias Ringwald
f804bd819f mesh: single mesh_upper_transport_send_control_pdu instead of segmented/unsegmented 2019-07-20 08:50:27 +02:00
Matthias Ringwald
9b1db5eacc mesh: fix mesh_upper_transport_message_processed_by_higher_layer 2019-07-20 08:50:27 +02:00
Matthias Ringwald
c4e43a88c2 mesh: single mesh_upper_transport_message_processed_by_higher_layer instead of segmented/unsegmented 2019-07-20 08:50:27 +02:00
Matthias Ringwald
9cee7f1f66 mesh: single mesh_upper_transport_register_control_message_handler instead of segmented/unsegmented 2019-07-20 08:50:27 +02:00
Matthias Ringwald
c9e8931a1a mesh: single mesh_upper_transport_register_access_message_handler instead of segmented/unsegmented 2019-07-20 08:50:27 +02:00
Matthias Ringwald
2343b7d3c2 mesh: use mesh_lower_transport_send_pdu instead of send segmented/unsegmented 2019-07-20 08:50:27 +02:00
Matthias Ringwald
46f4dee88b mesh: extract mesh_foundation 2019-07-20 08:50:27 +02:00
Matthias Ringwald
de78999b38 mesh: add missing config server operations to dispatch table 2019-07-20 08:50:27 +02:00
Matthias Ringwald
c80b334efa mesh: handle get/set friend state 2019-07-20 08:50:27 +02:00
Matthias Ringwald
c5fa658b92 mesh: simplify mesh_access_parser 2019-07-20 08:50:27 +02:00
Matthias Ringwald
24c4300fb0 mesh: add mesh_upper_transport_register_control_message_handler 2019-07-20 08:50:27 +02:00
Matthias Ringwald
5ae3767212 mesh: rename callback registration for access messages 2019-07-20 08:50:26 +02:00
Matthias Ringwald
30453c8d4c mesh: add config_server_send_unsegmented_message 2019-07-20 08:50:26 +02:00
Matthias Ringwald
721964ccac mesh: add mesh_upper_transport_setup_unsegmented_access_pdu_header 2019-07-20 08:50:26 +02:00
Matthias Ringwald
e9738c0e98 mesh: update foundation code to handle segmented and unsegmented messages 2019-07-20 08:50:26 +02:00
Matthias Ringwald
b90f51a2b6 mesh: add mesh_access_parser for mesh_pdu_t, use to parse foudation messages 2019-07-20 08:50:26 +02:00
Matthias Ringwald
539cb6b23e mesh: use config_server_send_message to setup headers and send, use netkey_index from incoming message where directly available 2019-07-20 08:50:26 +02:00
Matthias Ringwald
d757226224 mesh: pass model, netkey_index, dest to all status functions 2019-07-20 08:50:26 +02:00
Matthias Ringwald
4e37c452f7 mesh: add mesh_upper_[un]segmented_message_processed_by_higher_layer 2019-07-20 08:50:26 +02:00
Matthias Ringwald
619f4f6a3a mesh: add all missing foundation operations defines, handle foundation model publication get/set messages 2019-07-20 08:50:26 +02:00
Matthias Ringwald
a7b9793fd7 mesh: send status messages to sender of access message 2019-07-20 08:50:26 +02:00
Matthias Ringwald
151c959ebe mesh: use template engine for access messages 2019-07-20 08:50:26 +02:00