From 01031fdc489b87c2b5d66770582f7fccd4c7a0e9 Mon Sep 17 00:00:00 2001 From: Alexander Vdolainen Date: Sun, 26 Jun 2016 16:53:01 +0300 Subject: [PATCH] sxt: basic init/finalize added; --- sxt/core.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/sxt/core.c b/sxt/core.c index 2cf948b..a708706 100644 --- a/sxt/core.c +++ b/sxt/core.c @@ -44,11 +44,10 @@ #include #endif -#if 0 + #include #include #include -#endif #include #include @@ -58,11 +57,18 @@ int sxt_init(void) { - return 0; + /* init SSL library */ + SSL_library_init(); + + OpenSSL_add_all_algorithms(); + + return lcrypt_init_ciphers(); } int sxt_finish(void) { + EVP_cleanup(); + CRYPTO_cleanup_all_ex_data(); return 0; }