summaryrefslogtreecommitdiff
path: root/src/core/core.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/core.c')
-rw-r--r--src/core/core.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/core/core.c b/src/core/core.c
index fe8ccbb..cdcfce5 100644
--- a/src/core/core.c
+++ b/src/core/core.c
@@ -27,6 +27,7 @@
#include <stdlib.h>
#include <time.h>
#include <unistd.h>
+#include <openssl/err.h>
#include <openssl/ssl.h>
@@ -82,11 +83,12 @@ bool load_all_basic_components(void)
(GBoxedCopyFunc)dup_vmpa,
(GBoxedFreeFunc)delete_vmpa);
- result &= load_main_config_parameters();
-
+ ERR_load_crypto_strings();
SSL_load_error_strings();
SSL_library_init();
+ result &= load_main_config_parameters();
+
result &= ensure_user_has_rsa_keys();
result &= g_generic_config_read(get_main_configuration());
@@ -140,4 +142,6 @@ void unload_all_basic_components(void)
unload_main_config_parameters();
+ ERR_free_strings();
+
}