summaryrefslogtreecommitdiff
path: root/srcs/wae_initializer.c
diff options
context:
space:
mode:
authorKyungwook Tak <k.tak@samsung.com>2016-12-07 17:22:40 +0900
committerKyungwook Tak <k.tak@samsung.com>2016-12-08 15:09:41 +0900
commit66f4515064566676869fd3c3a8970fcf24b00b5f (patch)
treeab44c28901de718ad736b8e0517d591b50961eef /srcs/wae_initializer.c
parent9efcb91aed4e7365aa945fc9c6ffe2d111ca1496 (diff)
downloadlibwebappenc-66f4515064566676869fd3c3a8970fcf24b00b5f.tar.gz
libwebappenc-66f4515064566676869fd3c3a8970fcf24b00b5f.tar.bz2
libwebappenc-66f4515064566676869fd3c3a8970fcf24b00b5f.zip
Remove reload option to wae initializer service
Reload option is not needed anymore. To be secure, remove all KEKs from dek store (also adek) after loading preloaded adeks once. Loaded adeks are stored in key-manager so they're useless. Related test cases are added. (load preloaded app deks) (TODO) To use key-manager initial value feature is highly considered to store KEK private key more securely. Change-Id: I2f6c645398277968cd7d480236d1802a07fa33df Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
Diffstat (limited to 'srcs/wae_initializer.c')
-rw-r--r--srcs/wae_initializer.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/srcs/wae_initializer.c b/srcs/wae_initializer.c
index 956b04d..f01c8e8 100644
--- a/srcs/wae_initializer.c
+++ b/srcs/wae_initializer.c
@@ -23,14 +23,9 @@
#include "web_app_enc.h"
#include "wae_log.h"
-int main(int argc, char *argv[])
+int main()
{
- bool reload = false;
-
- if (argc == 2 && strcmp(argv[1], "--reload") == 0)
- reload = true;
-
- int ret = load_preloaded_app_deks(reload);
+ int ret = load_preloaded_app_deks();
if (ret == WAE_ERROR_NONE) {
WAE_SLOGI("WAE INITIALIZER was finished successfully.");