Add consistent error messages to ckm_db_tool 00/239200/8
authorMateusz Cegielka <m.cegielka@samsung.com>
Wed, 22 Jul 2020 09:23:37 +0000 (11:23 +0200)
committerMateusz Cegielka <m.cegielka@samsung.com>
Thu, 27 Aug 2020 07:32:33 +0000 (09:32 +0200)
commit9ea674f06681e732d98be7b433ce8db7a9ee7b05
tree9fed6f9309d80e5ca4319c48bab930d7507d6c79
parent5ce2a43ca9f0ffd18f9b7768ec644d13f38c3605
Add consistent error messages to ckm_db_tool

ckm_db_tool is a set of CLI utilities for debugging key-manager. Various
displayed error messages are inconsistent, do not display all available
information, and contain minor gramatical errors. Also, new interactive
features are planned to be introduced, which will require reading and
writing more information to the terminal.

A simple helper functions has been created for displaying error, warning
and info messages. All error messages have been changed to use them,
received grammar fixes, started displaying APICodeToString result when
possible, and rewritten to follow a consistent style. Finally, warning
and askPassword functions were implemented to prepare for next patches.

Change-Id: Ifd0608637f3f4ef3ce31c2fe7c79074da9a93bbb
misc/ckm_db_tool/CMakeLists.txt
misc/ckm_db_tool/ckm_db_merge.cpp
misc/ckm_db_tool/ckm_db_tool.cpp
misc/ckm_db_tool/db-wrapper.cpp
misc/ckm_db_tool/ui.cpp [new file with mode: 0644]
misc/ckm_db_tool/ui.h [new file with mode: 0644]