Skip to content

mesh: Save/restore network keys

Inga Stotland linux-bluetooth 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 1 replyIn review
  2. v15 patches 1 replySuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5mesh: Separate functions for net key add and updatemesh/cfgmod-server.c mesh/net.c mesh/net.h +2 more+24 -250 replies
2/5mesh: Add function to restore net key state from storagemesh/net.c mesh/net.h mesh/storage.c+82 -160 replies
3/5mesh: Declare internal functions as staticmesh/net.c mesh/net.h+73 -750 replies
4/5mesh: Save key refresh phase state to node config filemesh/mesh-db.c mesh/mesh-db.h mesh/net.c +2 more+72 -10 replies
5/5mesh: Save newly added or updated net key to config filemesh/mesh-db.c mesh/mesh-db.h mesh/net.c +3 more+80 -820 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH BlueZ 0/5 v2] mesh: Save/restore network keys

Rev.2: addressed Brina's comments.

This set of patches fixes the network key add/update processing. Network keys need to be saved to a local node configuration file when:
- a new node is provisioned
- new network key are added by a configuration client
- existing network key is updated by a configuration client during key refresh procedure.

Also, each saved network key is accompanied by a proper key refresh phase setting.

Inga Stotland (5):
mesh: Separate functions for net key add and update
mesh: Add function to restore net key state from storage
mesh: Declare internal functions as static
mesh: Save key refresh phase state to node config file
mesh: Save newly added or updated net key to config file

 mesh/cfgmod-server.c |   8 +-
 mesh/mesh-db.c       | 178 +++++++++++++++++-----------
 mesh/mesh-db.h       |   6 +-
 mesh/net.c           | 268 +++++++++++++++++++++++++++----------------
 mesh/net.h           |  12 +-
 mesh/node.c          |  19 ++-
 mesh/storage.c       |  22 ++--
 mesh/storage.h       |   7 +-
 8 files changed, 326 insertions(+), 194 deletions(-)
Signature · 1 line
2.17.2