mesh: Create or re-use a node storage directory for keyring
authorInga Stotland <inga.stotland@intel.com>
Sun, 14 Jul 2019 23:23:19 +0000 (16:23 -0700)
committerAnupam Roy <anupam.r@samsung.com>
Tue, 17 Dec 2019 16:22:11 +0000 (21:52 +0530)
commit0e99983c9b42cf837beebc5f3b95cf0097a31087
tree34027cb38c829b66ea57f4d24a86e97099dcd073
parente48fa1f34cbe2fade2ef1b8a7a02799aeb8f3c1b
mesh: Create or re-use a node storage directory for keyring

This adds APIs to set a directory for storing node's key ring info.
The directory is named MESH_STORAGE_DIR/<node uuid>. This directory
may contain additional node info plus node configuration, if node
configuration storage follows the same layout (as it does when
JSON based config file format is used).

Change-Id: I7e85b5742dd44e33e7c64e87468ec78b8a7ffd00
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
mesh/keyring.c
mesh/node.c
mesh/node.h