sxt: basic init/finalize added;

master
Alexander Vdolainen 9 years ago
parent 0509cf4abe
commit 01031fdc48

@ -44,11 +44,10 @@
#include <uuid/uuid.h> #include <uuid/uuid.h>
#endif #endif
#if 0
#include <openssl/ssl.h> #include <openssl/ssl.h>
#include <openssl/err.h> #include <openssl/err.h>
#include <openssl/engine.h> #include <openssl/engine.h>
#endif
#include <openssl/rand.h> #include <openssl/rand.h>
#include <tdata/list.h> #include <tdata/list.h>
@ -58,11 +57,18 @@
int sxt_init(void) int sxt_init(void)
{ {
return 0; /* init SSL library */
SSL_library_init();
OpenSSL_add_all_algorithms();
return lcrypt_init_ciphers();
} }
int sxt_finish(void) int sxt_finish(void)
{ {
EVP_cleanup();
CRYPTO_cleanup_all_ex_data();
return 0; return 0;
} }

Loading…
Cancel
Save