diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2025-02-08 15:57:23 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2025-02-08 15:57:23 (GMT) |
commit | 71d0b80eca2fd2aed5883e2a6a57cb8c03aa27ff (patch) | |
tree | 74c9654c9c6d02059ba9aff4536ce0ea25e7763c /src/core/core.c | |
parent | c928f8abb669d37e77bd9056240074941a945bb9 (diff) |
Introduce a secure storage.
Diffstat (limited to 'src/core/core.c')
-rw-r--r-- | src/core/core.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/core.c b/src/core/core.c index 9514ee1..eaf7763 100644 --- a/src/core/core.c +++ b/src/core/core.c @@ -25,6 +25,7 @@ #include "global.h" +#include "secstorage.h" @@ -53,6 +54,8 @@ bool load_core_components(AvailableCoreComponent flags) if ((flags & ACC_GLOBAL_VARS) != 0 && (__loaded & ACC_GLOBAL_VARS) == 0) { + init_secret_storage(); + set_work_queue(g_work_queue_new()); __loaded |= ACC_GLOBAL_VARS; @@ -82,6 +85,8 @@ void unload_core_components(AvailableCoreComponent flags) { set_work_queue(NULL); + exit_secret_storage(); + __loaded &= ~ACC_GLOBAL_VARS; } |