mesh: Separate functions for app key add and update
authorInga Stotland <inga.stotland@intel.com>
Thu, 14 Feb 2019 03:45:25 +0000 (19:45 -0800)
committerAnupam Roy <anupam.r@samsung.com>
Tue, 17 Dec 2019 14:14:43 +0000 (19:44 +0530)
commitcb924b83c87c75f53879f827ca58acb90e6e295d
tree81259eec0ec50bd484dc61226bea89b19bbde95e
parent4a78aa058a539f059752ba0e16d4c28a24bcc6d8
mesh: Separate functions for app key add and update

This splits appkey_key_add() into two separate functions:
app_key_add() and app_key_update().
Fix checks for miscellaneous invalid conditions and return
appropriate error status.

Change-Id: I938afa1eb355337f43b3c2e4f23205edbb7c3834
Signed-off-by: Anupam Roy <anupam.r@samsung.com>
mesh/appkey.c
mesh/appkey.h
mesh/cfgmod-server.c