summaryrefslogtreecommitdiff
path: root/src/core/core.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2018-12-01 11:16:12 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2018-12-01 11:16:12 (GMT)
commit29eae5126251eb0f10d02700bb87dac9893bb445 (patch)
tree34e8906f0d6f3948b80cf59b86f2d5179fa379ad /src/core/core.c
parent09f07c9a523dce7b8d7e013857f988f727f1a72b (diff)
Encrypted all communications using TLS.
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();
+
}