summaryrefslogtreecommitdiff
path: root/client/prefs.c
diff options
context:
space:
mode:
Diffstat (limited to 'client/prefs.c')
-rw-r--r--client/prefs.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/client/prefs.c b/client/prefs.c
index 5b6b7d1..7bf0101 100644
--- a/client/prefs.c
+++ b/client/prefs.c
@@ -31,6 +31,7 @@
const char *prefs_pkcs11_module;
#endif
const char *prefs_bankid_emulatedversion;
+bool prefs_debug_dump;
/**
* Loads the preferences from ~/.config/fribid/config
@@ -41,9 +42,12 @@ void prefs_load(void) {
/* Set defaults */
prefs_pkcs11_module = DEFAULT_PKCS11_MODULE;
prefs_bankid_emulatedversion = NULL;
+ prefs_debug_dump = false;
if (cfg) {
char *s;
+ bool b;
+
/* Which PKCS#11 module to use */
#if ENABLE_PKCS11
if (platform_getConfigString(cfg, "pkcs11", "module", &s)) {
@@ -56,6 +60,11 @@ void prefs_load(void) {
prefs_bankid_emulatedversion = s;
}
+ /* Should debug data be dumped on errors etc.? */
+ if (platform_getConfigBool(cfg, "debug", "dump", &b)) {
+ prefs_debug_dump = b;
+ }
+
platform_freeConfig(cfg);
}
}