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; }