This set of patches fixes the application key add/update processing. An application key needs to be saved to a local node configuration file when: - a new application key is added by a configuration client - an existing application key is updated by a configuration client during key refresh procedure. Also, fix error codes for AppKey List operation Inga Stotland (3): mesh: Separate functions for app key add and update mesh: Save newly added or updated app key to config file mesh: Return correct error code for Appkey List command mesh/appkey.c | 92 ++++++++++++++++++++++--------------- mesh/appkey.h | 4 +- mesh/cfgmod-server.c | 8 +++- mesh/mesh-db.c | 107 ++++++++++++++++++++----------------------- mesh/mesh-db.h | 4 +- mesh/storage.c | 5 +- 6 files changed, 120 insertions(+), 100 deletions(-) -- 2.17.2