Properly handle errors related to key storage plugin 37/162037/1
authorKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Tue, 28 Nov 2017 15:13:12 +0000 (16:13 +0100)
committerKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Tue, 28 Nov 2017 15:34:48 +0000 (16:34 +0100)
commit1c1b80f855e3aa252de60de504ba41d8d0928c7d
tree05b327b4395d47e5ae4ae95c86f19daa9e538a0f
parentafc41c687f67df554bdc136f8cb3f7f917fd5616
Properly handle errors related to key storage plugin

- Don't fail if an attempt to remove a non-existing token is made
- Don't fail if the plugin does not recognize the token used for key removal
- Ask the plugin to remove the key before overwriting the token
- Use error codes from ksp API

Change-Id: I9d6e60917b933506cd431d852f859f5c2a29b55f
server/upgrade-support.cpp