summaryrefslogtreecommitdiff
path: root/src/core/core.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2025-02-08 15:57:23 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2025-02-08 15:57:23 (GMT)
commit71d0b80eca2fd2aed5883e2a6a57cb8c03aa27ff (patch)
tree74c9654c9c6d02059ba9aff4536ce0ea25e7763c /src/core/core.c
parentc928f8abb669d37e77bd9056240074941a945bb9 (diff)
Introduce a secure storage.
Diffstat (limited to 'src/core/core.c')
-rw-r--r--src/core/core.c5
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;
}