sxt: basic init/finalize added;
This commit is contained in:
parent
0509cf4abe
commit
01031fdc48
12
sxt/core.c
12
sxt/core.c
@ -44,11 +44,10 @@
|
||||
#include <uuid/uuid.h>
|
||||
#endif
|
||||
|
||||
#if 0
|
||||
|
||||
#include <openssl/ssl.h>
|
||||
#include <openssl/err.h>
|
||||
#include <openssl/engine.h>
|
||||
#endif
|
||||
#include <openssl/rand.h>
|
||||
|
||||
#include <tdata/list.h>
|
||||
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user