Add a tool for accessing encrypted database 51/47251/5
authorKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Tue, 1 Sep 2015 11:05:10 +0000 (13:05 +0200)
committerKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Thu, 3 Sep 2015 13:07:16 +0000 (15:07 +0200)
commit96a64db011ddc1f7da23deb1bbb7811d99866012
treeddd4f72d436422669a7e0fe5a5bfc5288c6f0101
parent33860153791e816020a392c7ca235f1bb3e983f9
Add a tool for accessing encrypted database

[Problem] No way of debugging an encrypted database
[Solution] Tool added

[Verification] Run:
ckm_db_tool
ckm_db_tool 0
ckm_db_tool 0 <sql_command>
ckm_db_tool <uid> <password>
    > .tables
    > .schema
    > <sql_command>
    > help
    > exit
ckm_db_tool <uid> <password> <sql_command>

Change-Id: I87662831808b0397b01db1e54c38b4dc4ad69129
12 files changed:
packaging/key-manager.spec
src/manager/dpl/db/include/dpl/db/sql_connection.h
src/manager/dpl/db/src/sql_connection.cpp
src/manager/service/ckm-logic.h
src/manager/service/db-crypto.h
tools/CMakeLists.txt
tools/ckm_db_tool/CMakeLists.txt [new file with mode: 0644]
tools/ckm_db_tool/ckm-logic-ext.cpp [new file with mode: 0644]
tools/ckm_db_tool/ckm-logic-ext.h [new file with mode: 0644]
tools/ckm_db_tool/ckm_db_tool.cpp [new file with mode: 0644]
tools/ckm_db_tool/db-crypto-ext.cpp [new file with mode: 0644]
tools/ckm_db_tool/db-crypto-ext.h [new file with mode: 0644]